NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

RunState Dexcription

I'm trying to update the description of a step to show the current TestSocket Index that is being executed.
However the description field RunState property appears to be for the StepType, not the current execution. Is that correct?
Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer

measX GmbH & Co. KG.
http://www.measx.com
0 Kudos
Message 1 of 3
(3,522 Views)
Howdy Simon -

You are correct that the description of a step is a step type property.  This is because each step type defines how the description is formed.  Thus, it would make sense for this property to be at that level.

Are you attempting to specify the Test Socket index, and the description for the step is not showing this index?  Could you provide me with a little more information on the expected behavior versus what you are actually seeing?


Regards,
Andrew W || Applications Engineer
National Instruments

Message Edited by Andrew W on 02-09-2006 02:57 PM

0 Kudos
Message 2 of 3
(3,509 Views)
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
Download All
0 Kudos
Message 3 of 3
(3,498 Views)