Can I read or get enumeration data type set in TestStand with LabVIEW?

Updated Apr 3, 2024

Reported In

Software

  • TestStand
  • LabVIEW

Issue Details

I would like to communicate directly from the running VI using TestStand's API instead of communicating with terminals.
I used LabVIEW standard "Get Property Value" and "Set Property Value" but unfortunately errors occur for both.
How to get or write data from a VI in LabVIEW for the "Enumeration" type Variables registered in TestStand's Types.
I tried to check for the sample example but could not found any of it.

Solution

You can do that by using either SetValString or SetValNumber, along with the PropOption_CoerceToEnum option parameter.
Here is an example that works as you want.

螢幕擷取畫面 2024-03-25 140020.png

Additional Information

Note:

Using the TS API in code modules is not encouraged.
The reason is that the code module is then bound to TS and cannot be reused in any other context.
However, there is obviously an exception:
Termination Monitor for extended test time modules (>single digit seconds) and using TS synchronization tools like queues and notifications in parallel running VIs