NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Step.Result.Status for Numeric Limit Test

I'm using a teststand to verify a vi for me.  In my vi, it'll run a while loop until the condition is met.  The output is the time in seconds it took to run.  I use the Numeric Limit Test to compare whether that time is less than the threshold limit.  In my output file, I want to record the time and whether it passed/failed against the threshold.   I assigned a local variable (Locals.Status) = Step.Result.Status in the Post Expression and send it out to my TDMS file.  I thought it should give me PASSED or FAILED output, but it is outputting RUNNING.  When I stepped through the sequence, it finished the Numeric Limit Test.  If it finished that step, why it's outputting RUNNING? 

0 Kudos
Message 1 of 3
(80 Views)

Status Expression is evaluated only after PostExpression, this is why you see the status as running.

 

You can find more details on that here: https://www.ni.com/docs/de-DE/bundle/teststand/page/step-execution.html?srsltid=AfmBOopF3es4Dwp0IqXp...

 

I have stumbled over that one in the past too 😉

Message 2 of 3
(66 Views)

If you want to get the status result of the step you can insert a SequenceFilePostStep callback to your sequence file.  This will execute after every step execution, so as needed add an If Conditional block to only look at the steps you care about and log to your TDMS file

0 Kudos
Message 3 of 3
(52 Views)