Showing results for 
Search instead for 
Did you mean: 

Appending Waveforms



I have written a VI which continuously reads data in DAQmx tasks from multiple channels on multiples devices. 


The data is only to be stored should a transition on 1 or 2 of the signals be detected and in that instance I then need to append the current waveform to the previous waveform as I need a fixed period before and after the transition.  The DAQmx reads are being executed within a While loop, so that multiple time series of each signal are acquired.


Appending signals, arrays, waveforms is usually quite straightforward in Labview, but the usual methods are failing me just now.


Anyone got any fail safe ideas?

0 Kudos
Message 1 of 5

I don't understand exactly what you are trying to do... Do you want to combine the y-values of 2 separate waveforms to create a single waveform? In that case, you just use "get waveform components" on the 2 waveforms, then build an array out of the y-values in concatenating mode, then "build waveform" with the combined y-value array. Did I understand correctly? If not, maybe a simple picture of what you want would help.

0 Kudos
Message 2 of 5

Exactly that. I have tried various methods which I would have expected to work normally.  I will go and try again, probably just needed a break. 🙂


0 Kudos
Message 3 of 5

I should have said, yes but they are not data from separate signals in the same time duration (or DAQmx read) but current data from just 1 signal and the previous DAQmx read of the same signal.  So, for example, current for t+10s and previous data for t-10s, I wish to append the former to the latter to then have a waveform or array for 20s centered around time, t.

0 Kudos
Message 4 of 5

Ok, well that will depend on how your program is written. You will have to keep the previous acquisition buffered just in case you need it. Then when your condition triggers, you can append the current waveform as well. 



0 Kudos
Message 5 of 5