One of the ways to do it:
For labview vi which runs in parallel and reads the barcode :
In station globals have a array where in stationglobals.slno="socket_0_information",stationglobals.slno="socket_1_information"....
The labview vi which runs in parallel can put the information in the respective socket station global variable.
For the tests sequence :
Override pre uut and remove the default behaviour of serial number popping.(skip/delete those steps).Add the following :
check stationglobals.slno[RunState.TestSockets.MyIndex] != "" // by default it will be empty else valid data will be present
Copy the value to a local variable
reset the station global value to empty for next iteration
time delay 1 second ( avoiding tight looping)
if(read value == "stop") \\ This is required for the final stopping of the tests
parameters.continue testing = False
The Runstate.Root property can also be used to access socket information when using the batch or parallel models through the ModelData parameter. The following example shows how to access whether the current socket is enabled:
Keep in mind that the available properties will change depending on the entry point used.