NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting if a step is a sequence call

I am using the SequenceFilePostStepFailure callback to pop up custom messages to an operator, but I don't want to do this when the step being serviced is a sequence call. Is there some way to determine in the callback just what type of step is being serviced?

Thanks,

Dave

0 Kudos
Message 1 of 5
(4,423 Views)

RunState.CallingStep.AdapterKeyName == "Sequence Adapter"

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(4,418 Views)

Jigg,

I've put a breakpoint in my callback to see if I can spot that variable during runtime and I can only get to RunState.CallingStep. The AdapterKeyName property doesn't appear. Under RunState.CallingStep I get several more subcategories (TS and Result) but that property doesn't appear there either.  Any hints as to what I am missing?

Dave

0 Kudos
Message 3 of 5
(4,410 Views)

I just located it in Watch View expression builder.  These properties are powerful, but boy are they obscure. Sorry for the bad info and thanks for the tip.

0 Kudos
Message 4 of 5
(4,409 Views)

Glad you found it.

 

You can also look to see if the Parameters.Result.TS.SequenceCall property exists.

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