From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what the difference between "Wait Until Next ms Multiple" and "wait" vi's ?

Hi all.
 
1) What the difference between "Wait Until Next ms Multiple" and  "wait"   vi's ?
2) If i put thos vi's inside state machine, for example, inside state number 3, when the program reach to this state, the delay will ganerate  
    before or after the execution of other component in this state  ?
 
 
thanks 🙂
0 Kudos
Message 1 of 3
(5,201 Views)
Both will start in parallel to all the other nodes in the same frame but they still have different finctionality. You cannot guarantee what starts first. The main differences show up if you have other slow tasks in other frames of the same state or the slow task starts before the wait.
 
Wait next ms multiple: This is only useful in a loop, because it tries to keep the same time frequency, irrespective of how long other nodes take. The first call might be way off.
 
Analogy: Do something always 10 minutes after the hour.
(If you start working on the hour, the first wait will only take 10 minutes, but then all further tasks will be spaced exactly one hour.)
 
Wait(ms) Wait a give amount of time before continuing.
 
Analogy: do something, take a 1 hour break, do something, take another 1 hour break, etc. The repetition rate will somewhat depend on the lenght it takes to do the other tasks.
 
Message 2 of 3
(5,197 Views)
Here's a nice write-up by NI:
 
 
 
0 Kudos
Message 3 of 3
(5,189 Views)