I am using TestStand 2014 SP1 and LabVIEW 2014 SP1 as the test adapter to test up to two UUTs (Unit Under Test) using BatchModel.seq. The test sequence has been running fine until recently when the
RunState.TestSockets.MyIndex
variable has been returning a "-1" and causing my array index selection and the dynamic report path generations to go awry (nasty runtime errors). I have an expression in the ReportOptions to use RunState.TestSockets.MyIndex value to create the report paths at runtime.
I am new to TestStand and I am no expert in using the Batch Model but, from my understanding, if I only test 1 UUT, RunState.TestSockets.MyIndex = 0. If I test 2 UUTs, RunState.TestSockets.MyIndex = 1 (so I can then use the index of "0" or "1" in the my array, say, testInfo[0,1], or uutInfo[0,1], blah, blah.
But if RunState.TestSockets.MyIndex = -1, testInfo[-1] or uutInfo[-1] would be invalid and return a step execution error, crashing the test basically.
Again, this RunState.TestSockets.MyIndex = -1 state is only recent. My TestStand "Model Options" is set for 4 test sockets (default, I think). In the ModelOptions.seq it is overriding the default with expression:
Parameters.ModelOptions.NumTestSockets = 2
I did not change anything to the TestStand's batchmodel.seq as that is restricted from edits. So I am at a loss where this "RunState.TestSockets.MyIndex = -1" is coming from.
Thanks in advance, Aldrin