03-25-2025 02:47 PM
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?
03-26-2025 01:01 AM
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 😉
03-27-2025 01:52 PM
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