NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

query "is this sequence the process model client?" within the sequence?

Solved!
Go to solution

Hi,

I want to conditionally execute a step based on whether the currently executing sequence is the process model client.  Is there a boolean property somewhere I can query?  I see a "processmodelclient" container, in which I can compare the currently executing sequence path with the process model client path contained in this, but when I execute the sequence standalone (using "run mainsequence" from the execute menu), I get an error in the expression as there is no "runstate" in this circumstance. 

Thanks

David J.

0 Kudos
Message 1 of 2
(2,254 Views)
Solution
Accepted by david_jenkinson

The ProcessModelClient object only exists if the execution was initiated through a process model entry point. So, what about this for a boolean expression?

RunState.Exists("ProcessModelClient",0)

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 2
(2,247 Views)