11-21-2008 08:34 AM
Hi,
I have a problem to stop running a vi which uses a while loop and outside an array with two values of intervals of time. I would like to stop the VI when the different values in the array are elapsed. I attached here the code if you like to help me please I thank you in advance.
Solved! Go to Solution.
11-21-2008 08:54 AM
11-21-2008 08:57 AM
You have a units problem. You seem to be specifying the time intervals in milliseconds (at least I think they're milliseconds), and then dividing by 1000. That makes them microseconds. You are then comparing to a difference calculation which is in milliseconds. I think you want to specify the time intervals in seconds, and multiply by 1000 to get milliseconds. Also, watch your coercion dots. The constant of 2 should have a representation of I32.
A better solution would be to use the Elapsed Time function.
11-21-2008 08:59 AM
"I would like to stop the VI when the different values in the array are elapsed"
It is not clear to me, what you want.
Does this help ?
11-21-2008 09:25 AM
11-21-2008 09:44 AM - edited 11-21-2008 09:46 AM
As xdaf mentioned, all you really need to do is this:
If there is a reason to make it any more complicated, please explain why or should we just post your program to the Rube Goldberg thread?
11-21-2008 09:52 AM
11-21-2008 03:01 PM
11-21-2008 03:30 PM
11-22-2008 09:34 AM