01-13-2021 12:04 PM
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
01-14-2021 02:02 AM
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.
01-14-2021 02:46 AM
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.