Write Array TestStand Variable From LabVIEW Code Module

Updated May 3, 2018

Reported In

Software

  • TestStand
  • LabVIEW

Issue Details

I woud like to write a boolean value array from a vi which is also a code module of a TestStand sequence and then use the array values as TestStand property, how can I do? 
 

Solution

Exchanging variable values (or in general properties values) from TestStand and LabVIEW (or in general between TestStand and others adapters) requires the use of TestStand API
  1. You create an array local variable in TestStand.
  2. Than you include in the sequence an action step (LabVIEW Adapter) configured as follow: 
  3. You create a VI that use the Set Property Value node (TestStand API) and pass as input the Sequence Context of your sequence.
You can find the complete example in C:\Users\Public\Documents\National Instruments\TestStand 2016 (32-bit)\Examples\TestStand API\Accessing Arrays Using API.

Additional Information

Obviously in order to read an array from Labview (inverse procedure) just use the Get Properties Value node in LabVIEW to read the array values from an indicator.

WAS THIS ARTICLE HELPFUL?

Not Helpful