The Difference between the Wait (ms) Function and the Wait Until Next ms Multiple FunctionPrimary Software: LabVIEW Development Systems>>LabVIEW Base Development System
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Professional Development System
What is the difference between the Wait (ms) and Wait Until Next ms Multiple functions in LabVIEW?
The Wait (ms) function is typically used as a programmatic delay between code segments. For example, you could place a Wait (ms) function in a Sequence structure between two segments of code.
Refer to the attached VI for an example of how the Wait (ms) function works in parallel with the executing code.Wait Until Next ms Multiple
The Wait Until Next ms Multiple function is typically used as timing control for a While Loop to prevent LabVIEW from using too much of the processor. As the name suggests, it will cause the loop to wait until the next multiple of that number of milliseconds before running. Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU.
Refer to the LabVIEW Help (linked below) for more information about the differences between the Wait (ms) function and the Wait Until Next ms Multiple function.
Tutorial: Software Timed Loops using Wait (ms) and Wait Until Next ms Multiple
KnowledgeBase 2G27ANEW: Wait Until Next ms Multiple.vi Does Not Wait Properly on First Loop Iteration
LabVIEW 2013 Help: Wait (ms) Function
LabVIEW 2013 Help: Wait Until Next ms Multiple Function
Wait_ms_example (LabVIEW 7.1).vi
Wait_ms_example (LabVIEW 2010).vi
Report Date: 10/16/1995
Last Updated: 04/10/2014
Document ID: 0EF854SG