NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically determine which entry point was selected

Solved!
Go to solution

I'm using the default Sequential model which has two entry points, Test UUTs and Single Pass. I would like to determine in my sequence which entry point was selected by the operator. Is it possible to programmatically determine which entry point was selected, and if so where is that hidden in the massive TestStand API and properties?

 

I would prefer the name of the entry point to be returned.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 1 of 3
(3,345 Views)
Solution
Accepted by B.Settles

As long as you are in MainSequence then you can use RunState.Caller.Sequence.Name

 

otherwise use RunState.Root.Sequence.Name

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,343 Views)

As long as you are in MainSequence then you can use RunState.Caller.Sequence.Name

 

otherwise use RunState.Root.Sequence.Name

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 3
(3,343 Views)