Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

rt_wait (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: rt

Requires: Real-Time Module and MathScript RT Module

Syntax

rt_wait(count)

rt_wait(count, unit)

t = rt_wait(count)

t = rt_wait(count, unit)

Description

Delays execution of the thread in which the current MathScript Node runs. The thread sleeps for the count time you specify, then this function returns the value of a free-running counter and the thread continues execution. Both the t output and the free-running counter are 32-bit unsigned integers.

Details

Examples

Inputs

Name Description
count Specifies the amount of time to wait. 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.

Outputs

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

Details

This function is equivalent to the Wait Express VI.

Examples

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

Related Topics

rt_tickcount
timerstart
timerstop
rt_waitmultiple


 

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