LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView time loops not working totgether

Hi

Im trying to run 2 time loops together' a fast one in 1KHZ and a slow one thast gets data from the fast one in 100HZ.

All attemps have failed...

If the 2 loops are dsconnected they run just fine , but if they connected only the 1KHZ loop runs and the second is not activated at all.

I tried diffrent frequency for boath loops ,but it didnt matter , cant understand it...

tnx for your help

R

 

0 Kudos
Message 1 of 4
(2,290 Views)

The problem is basic - dataflow. You have a dependency from the first loop to the second so that the second loop cannot start until the first finishes.

0 Kudos
Message 2 of 4
(2,281 Views)
Ok ... I thought the 2 loops works parallel.
.. Then how can i make them work in the desired sequence,always working ,but getting data from each other
thank you
0 Kudos
Message 3 of 4
(2,261 Views)

Build an Action Engine (Functional Global Variable) and keep the data in that one, then one loop can add to the array while the other uses the stored array.

A AE is a simple vi consisting of an uninitialized shift register containing the data and a case structure allowing different operations on it, like Add, Init, Read.

Action Engine nugget

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,247 Views)