NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

negative value with seconds() function

I have created a sequence of our original one used in production.

We are seeing negative return values for delay_mS variable.

I don't understand how that would be possible.

Can anyone help me resolve this issue.

 

The problem occurs on both win7 32b and 64b machine.

 

thanks for the help,

arjen

0 Kudos
Message 1 of 4
(4,212 Views)

Is your machine perhaps going into sleep, suspend, or hibernate while this is running? If so, can you try disabling it and see if the problem goes away.  Also, what version of TestStand are you using?

 

-Doug

0 Kudos
Message 2 of 4
(4,202 Views)

the machine is not going into sleep/hibernate. We are using TS2013

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

I'm having trouble reproducing this. How easily does it reproduce on your machine? Internally teststand uses the WIN32 API QueryPerformanceCounter, this API sometimes misbehaves on certain machines. See this forum thread for a similar problem that can occur when this happens and a possible way to workaround it:

 

http://forums.ni.com/t5/NI-TestStand/Wrong-Wait-step-execution-time/m-p/860397

 

-Doug

0 Kudos
Message 4 of 4
(4,158 Views)