NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

When does switching occour when executing a step?

I'm trying to figure out when switching occours in the order of execution of a step.
The TestStand 3.1 Manual (Table 3-4) does not apper to have been updated to include this information.

I'm trying to evaluate routes at runtime (based on the RunState.TestSocket.MyIndex).
It appears that switching occours before the Pre-Expression or Pre-Substep is executed. Is this correct?

Thanks
Simon Holman
Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer

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

I see where your concern lies.  I am also unsure off the top of my head where the switching execution order is when the switching is being specified from the step properties dialog box.  I will check into that further, and let you know exactly where the execution points are.

As one possible alternative, you could specify your switching through expressions.  You could then be sure that the switching is executed in the pre and post-expression execution points.  To do this, on a step which requires switching, right-click and go to properties.  Under the Expressions tab, click on the Expression browser button for any of the expressions.  You can find the switching functions under the Operators/Functions tab.

I'll let you know what I find.  Have a great day!

Regards,
Andrew  W || Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,050 Views)

Simon -
Yes, the step switching is initiated after (6) "Load module if not already loaded" and before (7) in Table 3-4.

Scott Richardson
0 Kudos
Message 3 of 4
(3,043 Views)
Thanks Scott
Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer

measX GmbH & Co. KG.
http://www.measx.com
0 Kudos
Message 4 of 4
(3,030 Views)