11-03-2012 06:06 AM
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.
Solved! Go to Solution.
11-03-2012 08:46 AM
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.
11-03-2012 11:04 AM
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