07-31-2013 09:44 AM
So do you mean that I don't need the shift register when I am using chart?
The reason I set dt and T0 is that after doing the average, the result is only a number (or a set of nember) instead of a waveform, so I set the dt and T0 to make a new waveform. Is there any way to do the average without losing the information about dt and t0?
Thank you!
Jude
07-31-2013 09:59 AM
@JudeLi wrote:
So do you mean that I don't need the shift register when I am using chart?
As I said before, a CHART keeps a history. So you don't have to keep the data sitting around just for display purposes.
JudeLi wroteThe reason I set dt and T0 is that after doing the average, the result is only a number (or a set of nember) instead of a waveform, so I set the dt and T0 to make a new waveform. Is there any way to do the average without losing the information about dt and t0?
If you look at the VI I gave you, you will see how I took care of that. When setting the waveform attributes the default values are taken from the waveform you pass in. So I just used the waveform from the DAQmx Read and just wrote the Y attribute with the average.