LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

superpose graphics

Hello,
It seems so easy... I just want to do 40 acquisitions from 5 channels and superpose the 40 x 5 curve on the same graphs.
The 40 DAQ are done in a for loop. My problem is that the last DAQ clears the previous one.
Thanks for your answers.
christophe
0 Kudos
Message 1 of 4
(2,681 Views)
Yes, each new DAQ data replaces earlier acquired if you wire it directly to your graph. If you want to append new data without replacing previos DAQs, then you must get previosly acquired data from the graph (using local variable, shift registers or other approaches), bundle it with newly acquired and wire result to your graph. This approach allows you to accumulate data in the graph. Hope this helps...
0 Kudos
Message 2 of 4
(2,681 Views)
Thank's. You're wright but... When you acquire data from several channels, you got a 2D array. If you shift register it and bundle it, you obtain a 3D array. This 3D array is not displayable, isn't ?
I'll try to use a local variable, I don't know yet how to do...
for now, the only way I've found out, is to split the shifted 3D array using a for loop or the "index array" function. It's pretty heavy...
0 Kudos
Message 3 of 4
(2,681 Views)
Ok, it looks like the word "bundle" is not good for this situation. To assemble two (or more) 2D arrays and get a 2D result you must use construct array function with concatenate inputs option set. See exaples attached - hope this helps
0 Kudos
Message 4 of 4
(2,681 Views)