NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to transfer a pass/fail result to a variables

Hi,
 
How to transfer a pass/fail result to a variables ?
when a step has performed , I'd like to return a value to a variable .
 
thank you in advance..
0 Kudos
Message 1 of 3
(2,904 Views)

Hi,

If the step is still active, then use the lookup "Locals.MyResult" = "Step.Result.Status". You can do this in the Post Expression.

If its after the step has finished ie it the next step, then use "Locals.MyResult" = "PreviousStep.Result.Status".

If it after, but not the previous, then use "RunStatus.Sequence.Main["step name"].Result.Status".

Hope this helps.

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(2,900 Views)
It is OK now,thank you.
0 Kudos
Message 3 of 3
(2,893 Views)