Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed Loops in sequence

Sorry if this question is too noobish, but I'm having lots of trouble doing something I thought would be simple. I want to create loops that run successively, and are timed. The first loop will not run until a button is pressed. Once pressed one loop will run for a set time, then a second loop will run for a different time. A third loop will run for another set time. After this all happens the button can be pressed to start all over again. What i've done so far is create a flat sequence structure, and put each loop in successive frames. Inside the first I have a case structure which the start button sets to true. When true it runs the first loop. I don't know how to make that loop run for the time I want it to after the button is pressed. I've been messing with all the timing and wait functions, but I'm only confused more now. Any help would be great. Thanks.
0 Kudos
Message 1 of 3
(3,325 Views)
This question belongs on the Labview forum but, if you would like to stop your loop after a set time, i have attached a simple example which uses one of Labview express vi's.
Depending on the timing accuracy you are after, there are better methods which you can use, but dont expect better than ms accuracy on a windows o/s.
0 Kudos
Message 2 of 3
(3,318 Views)
Sorry bout that, I somehow thought I was on the Labview board, but thanks for the help! Unfortunately I only have Labview 7 so I can't open your example.
0 Kudos
Message 3 of 3
(3,308 Views)