LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change the time loop from 5ms to 250 ms ?

Solved!
Go to solution

are there any ways you can change the time loop from 5ms to 250 ms ? while test is running ? 

 

example code in labview version 8 are welcome ..  🙂 

0 Kudos
Message 1 of 8
(3,137 Views)

i want the last loop to be 250 ms.......... 

0 Kudos
Message 2 of 8
(3,135 Views)
Solution
Accepted by sticyfinger

Are you referring to a timed loop? You can simply change the dt value using the right-hand parameters.

0 Kudos
Message 3 of 8
(3,126 Views)

 

thank for the fast reply
i want to read something every 5ms.  when stop button pushed i want to wait 250 ms and read again. will this work ??

 

 

or should i exit loop then read again ???

0 Kudos
Message 4 of 8
(3,113 Views)

That's a little different than what you asked initially. It now sounds like you are trying to do a one-time reading, but simply keep the loop at 5 msec. In that case, just put a delay inside the case structure to cause a 250 msec delay. Use a different button than the Stop button so you don't play games with Boolean functions.

0 Kudos
Message 5 of 8
(3,096 Views)

yeah it is. sorry about that.

 

i want it to stop at it does the 250 ms reading. 

0 Kudos
Message 6 of 8
(3,091 Views)

yeah it is. sorry about that.

 

i want it to stop after it take the reading after 250 ms.  

0 Kudos
Message 7 of 8
(3,089 Views)

Then you still don't need to change the loop's time. Just feed out a Boolean constant out of the case structure and OR it with the Stop button.

0 Kudos
Message 8 of 8
(3,076 Views)