Example Code

TestStand Data Access Library

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Programming Language

  • LabVIEW G

    Other

  • TestStand

Code and Documents

Attachment

Description

This library extends the data access functions for accessing TestStand data from LabVIEW.

 

APIs

The library contains the following APIs,

  • TS.ReadData
  • TS.WriteData
  • TS.CheckVariableExist
  • TS.DeleteData
  • TS.CastDataName
  • Advanced
    • TSPropObj.ReadData
    • TSPropObj.WriteData
    • TSPropObj.CheckVariableExist
    • TSPropObj.DeleteData
    • TS.GetEnvironment
    • TS.ConfigureEnvironment
    • TS.SetFlag
    • TS.ResetFlag

 

Supported Data Type

LvData Element 1DArray 2DArray 3DArray Comments
Number LvData - I8, I16, I32, I64, U8, U16, U32, U64, SGL, DBL, EXT
TsData - DBL
Enum x x x LvData - Enum U8, Enum U16, Enum U32, Enum U64
TsData - DBL
Boolean  
String  
Timestamp LvData - LabVIEW Timestamp - ni.com
TsData - DBL
Waveform x x LvData - LabVIEW Waveform (DBL) { t0, dt, Y, attributes }
TsData - Container { t0, dt, Y }
Cluster x x  

 

Software Environment

  • LabVIEW 2019 or newer version
  • TestStand 2019 or newer version

 

Dependencies

  • OpenG Toolkit

 

How to Use

In order to use this library,

  1. Open VI Package Manager, browse and install OpenG Toolkit
  2. Download and install the *.vip from the attachments section
  3. The library APIs are located in Functions Palette >> Addons >> TestStand Data Access

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.