11-20-2012 12:46 PM
I have a DAQ which returns the data for each channel as a row vector (1-D array) The sampling rate is defined by the user, so I know the dt between each data point in the array. I'm taking 1000 samples at 10KHz. However, when I plot this array on a waveform chart, the time scale goes from 0 to 1000 (the index of the element) instead of 0 to 0.1 s (time). I need to get this dt incorporated into the data so when I plot it it displays properly vs time, and thus I can perform an FFT to get frequency content.
Solved! Go to Solution.
11-20-2012 12:57 PM
You can use Build Waveform to bundle up your array, the dT time and a T0 time to get a Waveform datatype that contains the timing information.
11-20-2012 01:00 PM
Use the Build Waveform to turn your data into waveforms. One of the inputs is Y (your data), another is dt (time/sample). You probably don't care about the T0. You can then take the array of waveforms to the graph and the times will be there for you.
11-20-2012 02:22 PM - edited 11-20-2012 02:31 PM
Got it. Thanks again guys!