NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get the step name of MainSequence from SequenceFilePreStep / SequenceFilePostStep?

I'm using SequenceFilePreStep & SequenceFilePostStep to get the test time of every step. Is there any way to get the step name of MainSequence that calls the PreStep & PostStep callbacks? Thanks
0 Kudos
Message 1 of 4
(3,409 Views)

Hi,

You can get the name of the sequence by NameOf(RunState.Caller.RunState.Sequence).

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,405 Views)

Hi,

If you want the step name then use NameOf(Parmeters.Step)

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,401 Views)

Thanks. I figured it out.

 TS_SeqContextGetCallingStep(td->seqContextCVI, &ei, &objStep);
 TS_StepGetName(objStep, &ei, &ptr);

0 Kudos
Message 4 of 4
(3,397 Views)