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

RT Get Timestamp VI

LabVIEW 2009 Real-Time Module Help

Edition Date: June 2009

Part Number: 370622G-01

»View Product Info

Owning Palette: RT Utilities VIs

Requires: RT Module

Inserts a 64-bit timestamp value from a high-precision timing source into a preallocated array at an index value specified by iteration. The timestamp value indicates the time when the RT Get Timestamp VI executes on the RT target.

Use the RT Timestamp Analysis VI to analyze the timestamp array returned by the RT Get Timestamp VI.

Details  Example

timestamp array in specifies the preallocated array used to store timestamps for each iteration of the RT Get Timestamp VI. You must preallocate an array with enough elements to store all of the timestamps you want to collect.
iteration specifies the index value where the RT Get Timestamp VI inserts the current timestamp in the timestamp array. Wire a loop iteration terminal to index the timestamps relative to their execution order.
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.
timestamp array out returns an array that contains a timestamp for each iteration of the RT Get Timestamp VI.
error out contains error information. This output provides standard error out functionality.

RT Get Timestamp Details

You can use the RT Get Timestamp VI in a For or While Loop to benchmark code. However, you must ensure that the RT Get Timestamp VI executes in the benchmarking application at the same point relative to the code for each iteration. You also must preallocate the timestamp array that you wire to timestamp array in to avoid memory allocations that can affect the timestamp value.

Example

Refer to the Benchmark Project.lvproj in the labview\examples\Real-Time\RT Benchmarking directory for an example of using the RT Get Timestamp VI.


 

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