NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Status of a socket

Solved!
Go to solution

Hello

 

I use Teststand 2014 with the batch model and 6 sockets. I use several batch synchronization enter/exits in the sequences.

When a measurement in one sections fails, it goes to cleanup of the sequence. In the batch synchronization of next sequence i want to skip the measurement for this failed socket. How can i retrieve the status (passed, failed) of a socket in a batch synchronization block ?

0 Kudos
Message 1 of 2
(2,500 Views)
Solution
Accepted by topic author Tonnie

In the synchronized sections, RunState.SequenceFailed is the sequence pass/fail for the current unit in the batch. Before leaving the synchronized section, you could store its value to an array.

 

I like having file globals shared by all executions in batch mode so that I can store results like this in a file global (Edit->Sequence File Properties then under Sequence File Globals select "All executions share the same file globals). Otherwise you can use a station global array.

 

Then in subsequent synchronization sections you can query the array value for the current unit. For example: FileGlobals.unit_passfail_status[RunState.TestSockets.MyIndex ].

0 Kudos
Message 2 of 2
(2,400 Views)