LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

different timed loop data summation

Hi all,
I have a question about how can I summarize the data of different timed loop ?
I have the same period square waves, but one is delayed 10 sec. and has different duty cycle.
Now I try to summarize their value as in the photo, but there is nothing displayed in the Timed loop data 3.
Timed loop data 1 or 2 both have the square wave working well.
For example, if  output is 1 in timed loop 1 and the same in timed loop 2, I just want to get 2 in the result
of timed loop data 3.

Can someone give me any suggestion ?
Thanks!!
The photo is followed:
http://www.badongo.com/pic/3231423
0 Kudos
Message 1 of 8
(3,277 Views)

Hi RogerW,

your timed loop never stops, so the code after this loops never runs.

Mike

0 Kudos
Message 2 of 8
(3,274 Views)
Please post any screenshots by attaching them to your original message to the forum as .png files rather than posting them to a 3rd party webservice.Smiley Wink
0 Kudos
Message 3 of 8
(3,265 Views)
Thanks for the reply,
I attach the photo as followed.

If my timed loop doesn't stop, can I get the summation data from two timed loops
to be compose in timed loop data 3 simultaneously ?
0 Kudos
Message 4 of 8
(3,260 Views)

Hi Roger,

you can use Queues, Notifier or local variables to transfer data between different loops.

Mike

0 Kudos
Message 5 of 8
(3,257 Views)
Hi Mike,
Thanks. The local variable should work in this case.
But why the local variable can only be as indicators in my case ?
I try to assign local variable to be the data output from CV pulse 1 array,
but there is no this option.
In my thinking, I just want to use local varible adding all the CV pulse signals into one signal,
and then output it.
How can I set local variable as controls instead of indicators ?
Download All
0 Kudos
Message 6 of 8
(3,244 Views)

Hi Roger,

right click on the control or indicator you want a local from and select create -> local variable. After that you can right click on the local variable and select "Change to Read" or "Change to write".

Mike

0 Kudos
Message 7 of 8
(3,239 Views)
Hi Mike,
That works !! I got what I want.
Thank you very much.
0 Kudos
Message 8 of 8
(3,220 Views)