NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I wait for a VeriStand alarm in TestStand?

I would like to wait for a VeriStand alarm in TestStand, then continue execution of the sequence.  Is this functionality built in or will I have to construct something from the VeriStand API?

0 Kudos
Message 1 of 3
(3,115 Views)

I would also need a timeout for the wait, in case the alarm does is not tripped.

0 Kudos
Message 2 of 3
(3,114 Views)

Hi jnclaker,

 

Admittedly, I am more familiar with VeriStand than I am with TestStand, but I would think you would just use the NI VeriStand Get Alarm Status.vi.  

 

You would just drop this as an action step, and link the step to the NI VeriStand Get Alarm Status vi. From there, you would take in the alarm statuses into TestStand via loading the outputs into variables in the Value column, shown in the reference image below (which uses the Read PNG File.vi rather than the NI VeriStand Get Alarm Status vi, but you get the idea).

 

TestStand Action Step.jpg

 

If you need to constantly monitor these alarms via this method, it would probably be best to create a custom step type and place that at key points in your sequence where the alarm values need to be read. If this needs to be done constantly throughout the sequence, it might be best to run a subsequence in a separate thread and call the vi in that.

 

For more information, here is a more generalized tutorial describing the process for Adding an NI VeriStand Step Type to NI TestStand.

 

I hope this all helps. Post back if you need any further clarification.

 

~kgarrett

 

District Sales Engineer
0 Kudos
Message 3 of 3
(3,094 Views)