06-25-2013 11:19 AM - edited 06-25-2013 11:20 AM
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 ?
06-25-2013 12:00 PM - edited 06-25-2013 12:03 PM
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