NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a sequence with 2 process models

Solved!
Go to solution

Hi,

We intend to use 2 different process models, running the same MainSequence.  The reason for the difference in process models is there is large difference in hardware on the stations.  So we need to account for that difference in our mainsequence as well, where we do certain actions when using one process model, and a different action on another.

 

My question is, what is the preferred property to look at in memory (runstate tree somewhere?) for the MainSequence to have knowledge of what process model it is currently running, so we can add cases in our MainSequence to differentiate actions. 

 

Thanks

0 Kudos
Message 1 of 4
(4,162 Views)

RunState.Root.SequenceFile.Path

 

Then strip off the name.  That is the best I know how.   Hopefully you aren't running in interactive mode.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(4,158 Views)
Solution
Accepted by topic author david_jenkinson

RunState.Execution.GetModelSequenceFile()

Message 3 of 4
(4,156 Views)

James' approach is better.... 😉

 

Because then you don't have to worry about if your root is correct.

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