NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get step info for Looping step in the UIMsg_Trace event

I have a custom TestStand 4.0 User Interface where I display some information about the last executed step in the UIMsg_Trace event.
To get the step info I use:
Step step = e.uiMsg.Thread.GetSequenceContext(0, out frameId).PreviousStep;

The problem is when a step with Looping (Fixed number of loops) is excuted. I get a UIMsg_Trace event for each iteration of the loop, but the PreviousStep is not the last step in the loop, but always the step before the loop.

How do I get information for each iteration of a Looping step?

Regards
Hans Forssell




0 Kudos
Message 1 of 2
(2,982 Views)

Hi,

While the step is looping, you have to get the Step details not the PreviousStep because the step hasn't completed yet.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,965 Views)