Hi Andrew,
I think I've figured out my question, but here's a little sequence to show what I mean. (You need to run this with the Batch or Parallel Model)
In the ShowTestSocketIndex Step Type, I have the description
"Test Socket Index: " + Str(RunState.TestSockets.MyIndex)
But this always shows the TestSocket Index as being 0.
In the ShowTestSocketIndex2 Step Type, I added the Pre-Expression
Step.TestSocketIndex = RunState.TestSockets.MyIndex
Then set the description to
"Test Socket Index: " + Str(Step.TestSocketIndex)
This will now display the current test socket in the description field, BUT only after the step has been executed.
The reason for this, is because we are testing multiple DUTs using Switch Exec for all the routing,
To connect to DUT 0 I have a Route Group "Connect_DUT_0"
To connect to DUT 1 I have a Route Group "Connect_DUT_1"
I have a step to connect the DUT with a switch expression
"Connect_DUT_" + Str(RunState.TestSockets.MyIndex)
However I would like the description to show the evaluated expression so its clear what route has been connected.
EG:
Socket #0 Description: "Connect_DUT_0"
Socket #1 Description: "Connect_DUT_1"
It looks like I can only get this to work after executing a step.
Thanks
Simon
Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer
measX GmbH & Co. KG.
http://www.measx.com