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

rt_tickcount (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

Syntax

rt_tickcount

rt_tickcount(unit)

t = rt_tickcount

t = rt_tickcount(unit)

Description

Returns the value of a free-running counter in the units you specify. Both the output and the internal counter are 32-bit unsigned integers. Use this function to obtain high-precision timing information for MathScript code running on an RT target.

Details

Examples

Inputs

Name Description
unit Specifies the unit to use for the internal counter and the 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 units you specify.

Details

This function is equivalent to the Tick Count 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

Examples

A = rt_tickcount('ticks');
B = rt_tickcount('ticks');
ElapsedTime = B - A;

Related Topics

rt_wait
rt_waitmultiple
timerstart
timerstop


 

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