NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the UUT_results status from Test Stand

I would like to write the UUT_result of a batch report. The one that says "Passed", "Failed"...etc to an external file using Labview program. I am new to Test Stand and I don't how/where to get this variable from. Could anyone help?
0 Kudos
Message 1 of 6
(5,102 Views)
You can get the overall result for an entire sequence from the variable called RunState.SequenceFailed. This variable is a boolean, True for sequence failed, False for passed. You can create a Local string variable, call it Locals.UUT_Result and create a statement step to set the string: Locals.UUT_Result = RunState.SequenceFailed ? "Failed" : "Passed". If the boolean is true, Locals.UUT_Result will be set to "Failed", and vice versa. Hope this is what you want.
- tbob

Inventor of the WORM Global
Message 2 of 6
(5,102 Views)
tbob,
Thanks for your prompt reply. I tried doing as above but it keeps on returning false i.e. "Passed" each time i run the test even if the test fails. Am i doing it correct.
0 Kudos
Message 3 of 6
(5,102 Views)
Please attach your code so that I can review it. Give details on what you are trying to do and what is not working.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 6
(5,102 Views)
This is the way to do it..

Thanks tbob!
Message 5 of 6
(5,102 Views)
Hi Kumar,

The way tbob described it is correct. However, you may need to set the Pass / Fail source to "Step.Result.PassFail".

JLV
0 Kudos
Message 6 of 6
(5,102 Views)