NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get result status in do while loop


In my sequence file I use the following do while

do while RunState.Sequence.Main["Multiple Numeric Limit Test"].Result.Status == "Passed"
  Multiple Numeric Limit Test
  Restart UUT Labview Action
end

When I run and step the code it behave like I want.
But when I deploy it, it don't.
If the first iteration failed, then it leaves the loop but
if the first passed, then status is set to Passed every time.

Thanks in advance for any help.

0 Kudos
Message 1 of 4
(3,235 Views)

I am trying to do the same thing in the attached sequence and able to do it.

 

The sub sequence will be called in a new thread.This will fail the multiple numeric limit step after some seconds.

Till that time it is passed and loop is running.

 

The loops breaks out when it fails.

 

I also copied it to different machine and tried - works fine.

 

Hope this helps.

0 Kudos
Message 2 of 4
(3,220 Views)

Did you ever find a solution?  I have a very similar problem.  RunState....Result.Status does not appear to be written to for each step during full deployment of software...only works in developmental mode.

0 Kudos
Message 3 of 4
(3,140 Views)

No, I never found a solution.

0 Kudos
Message 4 of 4
(3,131 Views)