11-25-2015 02:51 AM
Hello,
i have a batchmodel that executes a testplan with 4 batches.
How can i use different switch-positions (NI SwitchExec) for each batch?
Is there a variable that i can readout that returns the current batch-number so that i can use a simple "if"
if (x.batchnr ==1)
locals.switch = "POS1"
else if (x.batchnr ==2)
locals.switch = "POS2"
else if (x.batchnr ==3)
locals.switch = "POS3"
else if (x.batchnr ==4)
locals.switch = "POS4"
and then use locals.switch as exepression in "Routes to connect".
Or how is this typically done?
Thx & BR
TM
Solved! Go to Solution.
11-25-2015 05:59 AM
Solved:
Simply had to put everything in a subsequence and set StepProperty "Synchronisation" to Serial.
11-25-2015 07:25 AM
The current Batchnumber is stored in: RunState.TestSockets.MyIndex