LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed loops in sequence using LV 8

Sorry for that question that seems simple.
I want to define sequences that executes in loop. It's ok in previous version of LV but I've tried using LV8 and new loops.
Example: a loop at 100 ms : first sequence during 10s , then second sequence 15s, then third sequence 20s and go to first sequence.

Can you give me an example using cadenced loops ?.

thank you

0 Kudos
Message 1 of 5
(2,844 Views)
Is it possible that you are confusing cases with sequences? If you want to select one of three possible code segments per loop iteration depending on a selection, you need a case structure! Maybe I dont quite understand your description?
 
In any case, attached is a very simple implementation (LabVIEW 8.0), but there are many ways to do this, of course.
0 Kudos
Message 2 of 5
(2,837 Views)
Thank you but it's not exaclty what I wanted : I wanted to see if a  timed loop can be more convenient for my case than usual loop : one lloop with a few sequences  and each sequence have a specific duration.

: loop:
       sequence 1 : duration x sec
       sequence 2 : duration y sec
       ....
       sequence n : duration z sec
end loop

thank you

0 Kudos
Message 3 of 5
(2,835 Views)
No, I don't quite understand. What sense does it make ot have a 100ms timed loop if there is a long, slow sequence in it.
 
How about using the new "Timed Sequence" with a simple delay in each frame?
 
Maybe you could attach your code, e.g. the pre-8.0 version that you claim works?
 
 
0 Kudos
Message 4 of 5
(2,831 Views)
Of course I already use a loop wih a sequence inside. But I wonder if I can use a timed loop in my case because you can add sequence inside timed loop.
I was thinking it' s better to use timed loop : because the loop have a priority (I'm using compact FieldPoint) and a name and can be stopped easyly from another.
For example the main loop does run until Stop is pressed, the first sequence  have to get data every 200ms during  60 s, the next have a different period and duration.....
 
0 Kudos
Message 5 of 5
(2,826 Views)