NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get a list of the names of the failed steps ?

Hi,

   I wanted to have a string which can describe all the failed steps. For example, if I had the steps below :
Step 1
Step 2
Step 3, etc

and Step 1 and Step 3 failed, how can I get a string " Step1, Step2" ?

Can I somehow add a variable in each step which records the step result and then use all the variables at the end to creat a Result string ?

Please help.

~Sam~
0 Kudos
Message 1 of 2
(2,861 Views)
Sam,

you have at least two possibilities for your question:
a) use the "SequencePostResultListEntry"-callback. You can check the "Step.Result.Status". If it is failed, you can copy the stepname into a string-variable which builds your "string"
b) In the end of your MainSequence, just browse your ResultList for every step which has Result.Status as failed. Copy all stepnames into your string.

Both methods require your station to record results, but since this is defaultsetting, there shouldn't be a problem.

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,849 Views)