NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically getting properties of a subsequence steps

Solved!
Go to solution

What would be the path to programmatically get references to steps in a sub-sequence of a sequence? - trying to accomplish that in LabVIEW.

 

Thanks!

 

0 Kudos
Message 1 of 3
(3,998 Views)
Solution
Accepted by topic author WirePipe

You can get a reference to any sequence by using RunState.SequenceFile.GetSequenceByName() and pass the name of the sequence you want to acquire a reference to.

 

For example if you are in the pre-expression of a SequenceCall step you could use RunState.SequenceFile.GetSequenceByName(Step.Module.SeqName) to get a reference to the sequence that is called by that step.

 

You then have access to arrays of steps inside of each step group (Setup, Main, Cleanup) within that sequence.

CTA, CLA, MTFBWY
Message 2 of 3
(3,993 Views)

Kudo!

0 Kudos
Message 3 of 3
(3,984 Views)