NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access results dynamically because of callback API

LV6 TS1 - posted a question a week ago about accessing the step results to display immediately on a step failure. Ray kindly pointed me in the right direction where the TS example used RunState.PreviousStep.Result.etc to access the various data. I thought I was saved, but........I use a SequenceFilePreStep to post a UI message. This is a subsequence, so by the time I try to grab this resultant data, of the previous step I am mired in the SequenceFilePreStep subsequence, so the RunState.PreviousStep object is invalid. How can I get the Result.ReportText, .Limits etc?
0 Kudos
Message 1 of 3
(3,321 Views)
You can use the RunState.Caller.Step object when accessing from a subsequence (callback sequence). But if you want to know the status of the previous step, then the SequenceFilePreStep callback isn't suitable because the status of the step is not available at the time your execution is mired in it. The status is available in SequenceFilePostStep callback.
Silvius Iancu
0 Kudos
Message 2 of 3
(3,321 Views)
Hi ET,


Just a small demo sequence to show how you might achieve what you what.

Step through the sequence to get a idea whats
going on

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