06-05-2012 10:00 AM
06-06-2012 06:44 AM
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[0]="socket_0_information",stationglobals.slno[1]="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 :
for loop
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
end loop
06-06-2012 07:15 AM
Thank you very much! This was really helpful!
06-06-2012 09:07 AM
Hi
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:
RunState.Root.Parameters.ModelData.TestSockets[RunState.TestSockets.MyIndex].Disabled
Keep in mind that the available properties will change depending on the entry point used.