LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Temporize three timed loop

Hi vereybody!
 
I need to temporize thre timed loop in the nex way:
 
The first timed loop must be execute during 100ms every 7 microseconds, an then the second timed loop in the same way, and then the last timed loop equal than the other two.
 
The problem y that i don´t know how to configure timed loop, and if this times (100ms and 7us) are real to the exterior because i have to temporize a board with this loops.
 
I attach the VI if can help to somebody
 
Thannnnnnks and best regards!!
 
 
0 Kudos
Message 1 of 6
(4,165 Views)
Is anybody here??? Smiley Wink
0 Kudos
Message 2 of 6
(4,150 Views)
Hi:
I posted an solution to your question in the google forum, but here it is again.
Essentially you should use the new feature in LabVIEW 8 (Timed Loop with frames) to do what you are trying to do.
Drop a timed loop and add frames (Right-Click Add Frames). This will split the timed loop inside diagram in two. You could do it again to make it a three frame timed loop. Now double click on the blue data nodes to configure the timings of the frames. In particular you should configure the start times to stagger the frames.

See the presentation on timed loop with frames "New Timing Sturctures"
http://www.ni.com/labview/upgrade.htm

I hope this helps.
Biren Shah
LabVIEW R&D
0 Kudos
Message 3 of 6
(4,118 Views)

Hi Biran,

 

Let's pretend that no one other than beta testers has LV8.

 

How would you suggest doing this in LV 7.1?

 

Any special hardware required?

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(4,107 Views)
There are a couple of restrictions here:
1) 7us is not divisible by 100 (lets say for sake of argument we say 5us)
2) Micro second engine is not supported on Windows. You will need RT

Lets say we satisfy these conditions...
1) Now drop three timed loops and configure them as follows through the configuration page
Timed Loop #1:
Period   : 5 us
Offset   : 1000000 us (because we want all three loops to have enough time to initialize and synchronise in the first iteration)
Name   :   L1

Timed Loop #2:
Period   : 5 us
Offset   : 1100000 us (1.1sec)
Name   :   L2

Timed Loop #3:
Period   : 5 us
Offset   : 1200000 us (1.2sec)
Name   :   L3

2) Run the loops for 20000 iterations each (so total is for 100ms = 20000*5us)
3) Drop a synchronise Timed Loop VI from the palette and give the name of the three loops in an array.

...hopefully this helps unless I am reading the problem wrong.
Regards,
Biren Shah
LabVIEW R&D

Message 5 of 6
(4,096 Views)

Thank  you!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(4,088 Views)