NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining entry point used within a sequence

Hi there,

the question my seem a little strange.... 🙂 Is there a way to programatically determine which entry point was used to start the current sequence? I'd like to use the same subsequence for both "Test UUT" and "Single Pass" with slightly different functionality depending on the entry point used.
I could do aswell do a workaround, I know, but I'd like to have a more sophisticated way if possible 😉

Thanks in advance

Regards
Oli
0 Kudos
Message 1 of 4
(3,136 Views)

Hi,

Here's a little example that should help.

Offcourse it should have a pre-condition to check for the Existence of the RunState.Caller, because you may have run your SequenceFile with any entry point e.g Run "MainSequence"., if you did the first step would error.

Hope it helps anyway.

Regards

Ray Farmer

 

Regards
Ray Farmer
Message 2 of 4
(3,120 Views)
This helped! Thank you very much! Have a nice weekend Regards Oli
0 Kudos
Message 3 of 4
(3,114 Views)

You can also use the expression:

RunState.Root.Sequence.Name

to get the entry point that was invoked.  For example, if you wanted to execute a step only if the Test UUTs entry point were invoked, you could use the following precondition for the step:

RunState.Root.Sequence.Name=="Test UUTs"

0 Kudos
Message 4 of 4
(2,952 Views)