11-05-2012 04:09 AM
Hello,
I want to perform a parallel testing on two UUTs using the Example OverrideSerialNumForParallelModel.seq.
The fact is that the execution shows the UUT serial number popups of the two sockets simulatneously. My need is to enter the serial number of the first socket, perform some test's on it, then insert the second socket in the bench and enter it's serial number at that time. After that the test program will continue performing tests on the two sockets.
Thanks.
11-05-2012 08:45 AM
You need to modify the pre uut sequence.
runstate.testsockets.myindex gives you which socket(UUT) is running.
one of the methods to do it :
if(runstate.testsockets.myindex==0) \\ first UUT is running
{
serial message popup and continue....
}
else
{
while (flag1)
{
delay(1) ------- keeep looping and wait for socket 0 to set the flag.
}
Serial message popup and continue...
}
Since the flag is shared between two threads it can be in a common place like station global ( or fileglobals if its shared between all threads).
Hope this helps.