What channel will write first?

I use series commands to control motors, and the sequence of commands are written in the motor controller is important.

In the general structure shown by the attached vi, will be 'String' will be written 1000 ms before '75 "?

Alternatively, will the "75" written before the WAIT 1000 ms function count down?  Is this structure a good way to control the order in which the series commands are written on a unit

Thank you!!!

dav2010,

Your example shows how the LabVIEW data flow model works. Any node - which can be a primitive element such as add, or something more complex like a while loop - can begin to run when the data is present in all its inputs and its outputs will not be valid until the end of the execution.  Nodes that have no dependencies on the data can run in parallel.

Now, to apply this principle to your code.  At the highest level, the code has four nodes: taking orders in the name of resource VISA, VISA open, the while loop and near VISA. Because they have wires passing from one to the other, the dependence on data to run in that order.  In the while loop are three blocks of independent code in parallel. Forward (ms) and the constant = 50. The structure of the case and the VISA Write more following the constant 1000 and the True constant. The switch terminal and the terminal end of loop.

When the while loop begins to run, none of these three blocks can run first.  If your computer has the necessary resources, they can all run in parallel. Most likely the value of stop switch will be read very early in the iteration, but if it is True, the loop will not stop until everything inside the loop to the end of execution. The waiting will also probably almost immediately begin. Because there is a wait of 1000 ms within the structure of the case, the expectation of 50 ms end well before the structure of the case. When the structure of the case begins to run, the True constant will be evaluated and selected the real case. Entry VISA will send "String". Waiting for 1000 ms and the 50 + 25 Add followed by string conversion runs in parallel. When both are completed, the ends of the second execution of case of structure as well as the entry VISA will send "75". If the stop button was wrong at the beginning of the iteration of the loop when the terminal was read, the loop starts another iteration. After you stop the loop, closing VISA will run.

So the answer to your first question is: Yes.

On the question about the choice of architecture, it has some severe limitations. As indicated in my verbose description above, you will almost always an extra iteration (and wait a second) between the time you press the Stop key and time stops the VI.  In the worst case, there might be a few microseconds of less than two seconds between the stop is pressed to stop the VI and "string" and "75" would be written twice.  If you need to change anything on what is sent or the calendar, you need to modify the program.

A better choice of architecture may be to use a design of producer/consumer model (events) and implementation of the loop of the consumer as a simple state machine.  This will give you a more robust structure, one that easily adapts to changes in future needs and which is very sensitive to user input.

Lynn

Tags: NI Hardware

Similar Questions

  • When you use Excel or my Peachtree Accounting program, entered digital as "$152(32 in the accounting package or the same number with a square symbol as the decimal point in Excel.)". No idea what I should check first?

    When you use Excel or my Peachtree Accounting program, entered digital as "$152(32 in the accounting package or the same number with a square symbol as the decimal point in Excel.)".  No idea what I should check first?

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Office Excel and would be better suited to the office community. Please visit the link below to find a community that will support what ask you

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?d=1

    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • What should I write in the countries of the zone/download MediaGo region when my country is not listed

    I am from Pakistan. My country is not so what should I write in the country / area when I download sony vaio software for example media go? I just bought Sony Vaio model CXW 14125 EVS

    Hi imranqureshi,

    Why don't you try application Playmemories that comes with the new VAIO computer installed with Windows 8. It has almost the same features as Media Go.

    And your country, not in the list, I would say try selecting another country... U.S. / Canada will also...

    http://eSupport.Sony.com/docs/dvimag/PMH_Help_guide/en-us/index.html

  • Vista Home Premium will not write to CD - RW; will write to the CD - R and DVD

    I installed all the updates window vista Home premium. I have a DVD/R/W/drive. Vista will write a CD - R disc and the DVD disc. Vista will open the media on a CD - R, DVD, and CD - RW, which is what I use.  Vista will not write on a CD - RW disc, sending the files on the drive, pop - up Vista says "insert writable disc in the drive", or he'll want to format the drive, formatting always fails; I removed the filter upper and lower; I used MR. FixIt, and she came back with "media in the CD/DVD drive is not writable '; the disks are writable, but they are not recognized by Vista in writing. Here are the nine on box Maxell CD - RW discs. I have no problem with vista, write files to a CD - R or a DVD to burn. Windows Media Player will burn music to these CD - RW discs. How can I get Vista to recognize a CD - RW as a recordable disc?

    Hello
     
    1. what program do you use to burn files to CD - RW discs?
    2. what type of files you are trying to burn?
    3. this happens with all new CD - RW discs?
     
    Try these steps and check.
     
    Step 1: Lower the burn speed and check.
     
    Step 2: Reinstall the driver of DVD player.
    a. click Start, click run, type sysdm.cpland then clickOK.
    b. in the hardware tab, click Device Manager.
    c. expand ligthscribe-ROM readers, right-click on the drive and choose uninstall.
    When you are prompted to confirm the deletion, click OK.
    d. on the Action menu, click on Search the hardware changes.
     
    Step 3: If you have still the CD for your burning software, uninstall all the other DVD burning software on your computer and check. You can install their return after verification.
    Reference:
    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program
    http://Windows.Microsoft.com/en-us/Windows7/install-a-program

    Step 4: Try to use the same disks on another computer and check if you are able to burn on these disks.

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • What applications will be delivered with the Playbook as default

    I'm hoping to get an understanding as to what apps will be available by default with the Playbook.

    This will help to decide what to build as my first communication of the app.

    Thanks in advance.

    We cannot tell exactly what apps will be available right out of the box, but those I can say will be there (in addition to others) are:

    • Web browser
    • Video player
    • Music player
    • Sync with BB phones
    • Camera captures (photos and film)
    • Manipulation and photo library
    • Some games
    • App World
  • When I open the games online I can't get into the game, and they will write check your firewall

    can you please answer

    When I open the games online I can't get into the game, and they will write chek your firewall

    Original title: network programs network networking Internet Web site Site Web Web Site URL

    can you please answer

    When I open the games online I can't get into the game, and they will write chek your firewall

    Hello

    I'm sorry for the inconvenience, but I should be able to help.
    Internet connection issues are widely available and vary from one case to another. Your question, however it seems that the most likely cause is that your computer's firewall prevents your applications to connect to the internet. You can check this easily by:

    1. go to the Start Page of Windows 'default Page of Windows 8.
    2 mouse hover in the top right of the screen then click on the search"" button.
    3. type in 'Control Panel' after a brief search you will see a button at the top of the page left labled 'Control Panel' click on this button and you go in desktop mode and allow you to navigate in the control panel.
    4 from there, click on the tab labeled "system and security."
    5. then, click on the second option in the list titled "Windows Firewall"
    6. the first thing you want to do is to check if you are on a "private" or "Public network" (a private network is usually the safest and although on this type of network, you are less likely to be vulnerable to attacks, Public network are accessible by anyone and give a greater risk).
    7 the right it will say Private Networks Connected / not connected and below that it will say comments or connected/not connected networks public. Most computer security settings differ based on your type of connection, if you are on a network audience of settings on your computer will be more strict and could prevent your programs connected to the internet. (Say if you are connected to a private network, you can probably exclude this.)
    8. If you are connected to a private network and your programs don't always work correctly in the top left of the window under "Control Panel Home" you want to click on the option "allow an app or feature through Windows Firewall."
    9 a list first your "Internet Capable of programs" quickly browse and find that you are having problems with and take note of the checkboxes next to them. If no box is checked, you will want to allow them to connect. Do this by clicking on the "Edit settings" button located in upper right
    10 you want then allow your program through the firewall, this by simply checking the box next to it. (Note that if the Public network that can leave your computer vulnerable or higher risk)
    11 after doing this click ok, now go back and try to run your program and see if the problem is resolved.
    12. If you cannot find your program, click the "Allow" another app... button and navigate to your programs (usually in the folder C: / drive in the folder programs.) and choose your program and adjust the settings to allow through the firewall.
    13 if this does not solve your problem, and the problem persists, try to go into Internet Explorer, by clicking on the gear in the top right and open Internet Options. Go to the Security tab and check how strict your settings are. You should be able to click on "Reset to Default" to solve this problem, if that's the problem. (Located at the right bottom)
    I hope that this helps if not let me know and I'll give you some suggestions.
    Thanks for your time, I hope this has helped.
    -Ian
  • 5.1 channel list in first elements

    Compared to the 6 channels of the 5.1, which track corresponds to before rear and subwoofer?

    roqui4

    Thank you for your response.

    Dolby Digital 5.1 channels has a typical speaker configuration without any contact with Premiere Elements (any version).

    http://www.Dolby.com/us/en/technologies/Dolby-Digital.PDF

    Speakers - left, Center, right, left surround, right surround, and subwoofer.

    And I don't have any information indicating the import of the 5.1 channel file in first Elements alter this arrangement.

    As to put the numbers of channels on each of these players, I can't confirm that at this time.

    If you ask only about the Identification of channel, the following article online

    Surround sound - Wikipedia, the free encyclopedia

    Please see the information under channel Identification in this link.

    If you ask for details of a "Dolby Digital 5.1 channels Decoder" in Premiere Elements, I never saw any

    information to the user on that level.

    Please read the above and let me know if I am is what you are looking for.

    for Premiere Elements if the channel 1 = front left, C2 = front right, = C3, C4 = subwoofer, left rear central front = C5 and C6 = rear right

    Thank you.

    RTA

  • First Pro CC blocks when you scroll through the sequence in the timeline - Audio Waveform will Virgin first

    The description is in the title: first Pro CC blocks when you scroll through the sequence in the timeline - Audio Waveform will Virgin first.

    Just started today, will not stop now blocks after a minute or two, and he always does when I scroll through the timeline of a sequence.  First of all, the audio waveform becomes empty.

    What is going on?

    Date/time:2014-10-22 12:16:16.078-0400
    OS version:Mac OS X 10.9.5 (13F34)

    Report Version: 11

    Anonymous UUID: E1BCDCD7-6284-3012-9151-FF85491060DA

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGBUS)

    Exception codes: KERN_PROTECTION_FAILURE at 0x000000011d74b000

    VM regions near 0x11d74b000:

    VM_ALLOCATE000000011d 748000-000000011d74b000 [12K] rw-/ rwx SM = PRV
    -> BATTERY CARE[000000011d74b000-000000011d74c0004 K]-/ rwx SM ZERO battery guard for threading 4 =.
    Battery000000011d74c000-000000011d7ce000 [520K] rw-/ rwx SM = COW 4 wire

    Thread 0 crashed: Dispatch queue: com.apple.main - wire

    Hi 5 deadly venoms

    This problem is resolved in the 9.0.1 update. Please update the application of a patch.

    Thank you

    Kevin

  • OT: What questions will look like in the new forum

    Hi all

    Please do not respond to this message. I just want to see "what questions will look like in the new forum.

    Thank you

    Hans-Günter

    Hi all

    Table in which I have summarized your concerns has been assigned to the Backr room as well. If it is OK to continue the discussion here, you can do this by using the Backroom as well because it gets more visibility than what you post here.

    As I understand it, the Forums team works with Jive for the biggest of the first road.  Given that we are less than a week, with the new interface, I suggest that we have waited some time for patches.

    Thank you

    Preran

  • what setting in adobe first elements to capture video

    what setting in adobe first items should I use to capture video from my sony model hd avchd handy cam HDR CX580?

    What link is also better USB?  I always have to use fire wire but its been a while that I made the video.  Son of the late seems to be old school now

    Welcome to the forum and thanks to Barbara to move the post.

    With a camera AVCHD, the USB connection will be used, but this isn't really a catch, in itself. You will copy the folder structure full of the CF card on any HARD drive on the camera to disk of your computer (not only the multimedia files). Then, in a corresponding AVCHD project, use get the media to only import images in the project.

    True Capture is used with a cassette miniDV, SD or HDV camera. Both very different than AVCHD.

    Good luck

    Hunt

  • Defining what songs will be available in offline mode after joining apple music

    Hello

    I have an itunes library that contains 20 GB of songs. I used to sync my library of music manually on my iphone so my iphone contained 14 GB of music.

    Now I joined apple music and all downloaded itunes my music library in the library of music to icloud and all songs appear on my iphone. The songs I used to sync with my iphone has a "local version" and the songs that I chose to not synchronize with the iphone are appearing as a 'cloud' with the symbol cloude version so that they not use my iphone storage.

    All of this is great. But - that's the problem: now, when I connect my iphone to my computer and enter in the music sync iphone settings, I can't change like before sync settings because I use the music to icloud service.

    Now what can I do if I want to change my songs will be available in offline mode (and use my iphone storage) and what songs will be available in their version of cloud? The only way I've found that I am able to do is to choose one song from the library on my iphone and press 'delete '. Then he turned to the version of cloud. But I have thousands of songs! I need to free up space on my iphone and its driving me crazy that I can't control accully of music that is on my iphone.

    Based on the iOS 9 (I have no iOS 10 in front of me)...

    On the device ' settings app > general > storage management > music '. You can select artists to remove or navigate to Albums & songs.

    I think that iOS 10 has also an option to delete in-app music...

    http://www.McElhearn.com/the-hidden-delete-song-button-in-the-iOS-10-music-app/

    I don't know what will happen if you re-sync with iTunes, it's probably going to copy any return, so you will need change the settings for synchronization if you always connect to iTunes.

  • MacBook Pro 13 inch mid 2012 model No. A1278. Has he a player SATA or SATA III. What are its write speeds?

    MacBook Pro 13 inch mid 2012 model No. A1278. Has he a player SATA or SATA III. What are its write speeds?

    The following is from http://www.everymac.com/systems/apple/macbook_pro/specs/macbook-pro-core-i5-2.5-13-mid-2012-unibody-usb3-specs.html

    In addition, the 6 Gb/s it is SATA III

    Standard hard drive: 500 GB (5400 RPM) Int. HD Interface: Serial ATA (6 Gb/s)
  • Well this version allows to update your browser all the minutes as would be the former, and if not what version will leave you well do this?

    Well this version allows to update your browser all the minutes as would be the former, and if not what version will leave you well do this?

    This?

  • Satellite C660 - Touchpad pointing out everything on what it will

    I have a problem with my C660 satellite with the Synaptics touchpad V7.2 sensitivity. The cursor keeps pointing out everything on what he will and by dragging files or programs, or open them.

    He drives me crazy and restore to an earlier date does not, or not clicking on deactivate to tap into the Synaptics or returning to default properties box.

    Anyone out there able to help?

    Hello

    Try to install the latest Synaptics driver from Synaptics driver page:
    http://www.Synaptics.com/en/drivers.php

    In addition, you can adjust the touchpad settings in Control Panel-> mouse-> device-> settings button settings

    Here you will find many different options that would improve the functionality of the touchpad.

  • What application will not work if I switch to El Capitan?

    I need to update my (OSX10.8) Mac Book pro to use Turbo tax. What applications will not work with El Capitan? Mircosoft Word 2008 will work?

    1. click here and check.

    2. Yes.

    (138783)

Maybe you are looking for

  • Cannot convert llb in directory

    I have a local keyboard llb someone shared. When I open it, convert it to button directory is disabled, as are the buttons cut and copy. I need to extract it. Why would he do that? Thank you Jim

  • M277d MFP: Scan to PDF

    How can I scan directly to PDF? The fax windows scan utility only allows me to record on types of image files. I don't want to open a file converter to get a pdf doc?

  • Windows Movie Maker will post video

    Hi, I made a video Minecraft with CamStudio. It is in AVI. I put it int WMM and it is now a project folder. I publish, so it is possible to download on YouTube. Whenever I do and check the "best quality for my Computer (reccomended). Then it hangs at

  • DVD station reageert niet meer (stuurprogramma works niet code 10 foutmelding)

    ACER, geplaatstse schijfjes niet worden van Het door het ingebouwde dvd station wordt niet herkend meer. Spelletjes die door een cd opgestart due werken niet meer worden.

  • Trouble with the voice and data Vlan vlan translate between CT3905 and SF300 - 24 p

    Hey actually, we have the solution to monitoring of implementation with CT3905 phone, SF300 - switches 24 p cameras and AIR-AP1041N Access Points We have the problem with the vlan tag in SF300 switch ports - 24 p we can´t tag vlan of the voice and da