LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does labview decide?

How does labview decide what it do first when inside a loop, a for loop or a flat sequence structure?
0 Kudos
Message 1 of 2
(2,506 Views)
I assume that your question is related to this post? A basic tenent of LabVIEW is those things that are not connected by dataflow, the LabVIEW compiler will attempt to run in parallel. You do not have dataflow between the VISA commands and your wait statement. The wait pauses execution and may actually be started before the VISA stuff. Putting a wait to the right side of some other code does absolutely nothing in determining execution order. You should always make use of error in/error out connections to enforce execution order. LabVIEW has the Time Delay function which does have error connections, you can make your own Wait (ms) function that has them, you can use Wait+(ms) that is on the NI Measurements>Data Acquisition>Counter>Intermediate counter palette, or add another sequence frame that only has the wait (ms) function.
Message 2 of 2
(2,493 Views)