NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a Flag indicate if the seq is called from other one or run independ

Is there a Flag that indicate if the seq I am running is called from other seq. or it is running independently?
0 Kudos
Message 1 of 3
(3,054 Views)
Hi FMB,

There is not really a flag but there is a property call RunState.CallStackDepth you can check.
If this is greater than 0 then there is a caller sequence. Therefore to find the name of the caller sequence you would use NameOf("RunState.Caller.RunState.Sequence").

For every increment in value of the CallStackDepth you would add "RunState.Caller." to the beginning of the lookup string.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 3
(3,054 Views)
Thanks Ray... this is exactly what I need.
0 Kudos
Message 3 of 3
(3,054 Views)