02-22-2008 04:36 AM
02-22-2008 07:44 AM
With reference to the graph plotting, you can use PlotWaveform that automatically plots the data adjusting X-axis according to initial value and increment (rate of acquisition) you pass to it.
As per file saving, I'm not aware of a function that automatically adds the time column, but you can easily create the time array using the Ramp function and save it together with your data.
02-25-2008 09:49 AM
02-25-2008 10:02 AM
Well, you could memcpy the ramp array at the end of measurement array, but personally I prefere to use Copy1D; supposing you have acquired 1000 samples from 3 channels and you have created your ramp array, you can append it to the measurements this way:
Copy1D (ramp, 1000, measures + 1000*3);
Of course your measurements array need to be sized accordingly so that the ramp array can be copied to it, otherwise you will receive some fatal error like input past end or so.