Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

rt_waitmultiple (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: rt

Requires: Real-Time Module and MathScript RT Module



rt_waitmultiple(count, unit)

t = rt_waitmultiple(count)

t = rt_waitmultiple(count, unit)


Delays execution of the thread in which the current MathScript Node runs. You can use this function to establish the phase of a loop. The thread sleeps until the value of a free-running counter reaches a multiple of count, then this function returns the value of the counter and the thread continues execution. Both the t output and the internal counter are 32-bit unsigned integers.




Name Description
count Specifies an integer value you can use to establish the phase of a loop. count is a 32-bit unsigned integer.
unit Specifies the unit to use for the internal counter and the t output of this function. unit is a string that accepts the following values.

'ticks' Specifies the units used by the RT OS clock, nanoseconds.
'uSec' Specifies microseconds.
'mSec' Specifies milliseconds.
The default is uSec.


Name Description
t Returns the value of the free-running counter in the units you specify.


(Real-Time Module) This function is equivalent to the Wait Until Next Multiple Express VI.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


A = 1;
X = 1;
while X<10
     A = A+1;
     X = X+1;
     rt_waitmultiple(100, 'mSec');

Related Topics



Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit