NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a global fail when using batch model?

Hello,

i am using the batch model with 4 DUTS in Teststand 2020

 

In the attached demo sequence i have in the first line a nonadapter test which is always fail and is set to Synchronisation = One Thread Only.

 

This is followed by:

IF (RunState.SequenceFailed == False)

----MessagePopup(RunState.TestSockets.MyIndex)

END

 

Now i see the MessagePopup three times for Sockets 1,2 and 3 only the first socket (0) is skipped.

 

is there a variable to know in each sockets if there was a fail somewhere else?

 

If the first line would be an initialize of an instrument then i want to skip the following teststeps inside the IF for all other sockets.

 

Thx

0 Kudos
Message 1 of 3
(745 Views)

Hi,

 

I don't know an easy way to retrieve status of another socket, though maybe it's available somewhere in the RunState scope. 

Instead, you can use a boolean Locals variable that is updated in that "one thread only" step. If it was actually updated, that socket executed that step. If it wasn't, the socket skipped that. 

Alternatively you can also play with FileGlobals, but please remember to configure them to share value across executions.

Mateusz Owczarek

Certified LabVIEW Architect
Certified TestStand Architect
Message 2 of 3
(724 Views)

Hi @Mateusz,

that the samee way how i do it also currently.

I am saving the RunState.SequenceFailed of the "One thread only"-part in a StationGlobal that is then checked in the following IF.

 

0 Kudos
Message 3 of 3
(721 Views)