LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run a while loop for 0.5 seconds?

Solved!
Go to solution

Hi,

 

I am doing a project and I'm stuck with programming.

 

There is a while loop inside a case structure. When the true condition of a case structure gets activated, the loop inside it, should run for 0.5 seconds. How will I achieve this?

 

 

Thanks in advance.

0 Kudos
Message 1 of 3
(3,381 Views)
Solution
Accepted by topic author Illuminator91

Why do you want to run a while loop? what do you perform inside that? If you want to run any operation for a defined time you can use a for loop.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(3,370 Views)

If you only want it to wait for 0.5 secs, use a Wait with 500 wired to it, if you want to perform some operations/loops for half a second use the Tick Count(ms) and calculate the difference from outside the loop to one inside until it's 500.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(3,360 Views)