NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracing enabled => variable updated to next iteration value before end of current iteration

Hello,

 

I am facing a weird behaviour with variables and loops. (running Teststand 2010 SP1)

I am iterating over a variable, when tracing is enabled that variable seem to take the value it should take at the next iteration too early.

 

What I am doing in pdeuso code :


For i=0;i<=20;i++

    For each variable in state

        Pass/Fail test on variable
        Wait 1 s
        Pass/Fail test on variable

    End

End


variable is a boolean

state is an array of boolean containing {false;true}

 

 

At each iteration of the inner loop I should get two identical results for the two pass/fail tests.

Something like :

 

Failed

Failed

Passed

Passed

Failed

Failed

Passed

Passed

 

But that's not the case and sometimes variable gets a new value between the first and the second tests !

 

Is there a way to avoid this issue without disabling the tracing and without changing the sequence ?

0 Kudos
Message 1 of 2
(3,060 Views)

This should not be happening. Can you reproduce the problem in a simple sequence? If so can you attach such a sequence to this thread.

 

Most likely there is something else in the sequence that is leading to the issue you describe.

 

-Doug

0 Kudos
Message 2 of 2
(3,056 Views)