11-22-2013 06:44 PM
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
11-22-2013 07:05 PM
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.
11-23-2013 12:20 AM
11-23-2013 09:49 AM
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.
/Y