12-09-2011 10:05 AM
If you want to collect every second just change the delay time (VI with the little clock) from 10 to 1000. It's in milli-seconds so 1000mSec = 1 Sec.
12-09-2011 10:12 AM
I did use the delay time for 1000!
But the data still shows like
12/9/11 10:55:01, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3
12/9/11 10:55:02, 29E+039E-159E-3, 29E+039E-159E-3, 29E+039E-159E-3,29E+039E-159E-3, 29E+039E-159E-3
I did like to have data looks like
12/9/11 10:55:01, 27E+030E-150E-3
not repeat for each second
Thank you
12-09-2011 12:02 PM
I don't understand what you are trying to achieve.
1) Do you want to display the time of acquisition with better precision that one second?
2) Do you want to acquire at a specific rate?
In case you want to achieve 1, I would recommend saving raw "tick" values (ms since an arbitrary time t_0) (converted to a string) rather than the date/time string provided by this:
In case you want to achieve 2, the architecture of your program should be slightly different from the one I showed before. You probably want to set the hardware acquisition rate of your waveform data beforehand and use an acquisition mode that buffers the recorded data internally (that is in a RAM buffer) and use a VI that asynchronously polls your hardware to get all the available data. It's difficult to provide you with a definite answer without having access to your code (not your fault though).
The architecture of your original program (and that I showed) does not provide very precise acquisition rate, as it is dependent on the willingness of your PC to adhere to the "Wait" function delay. That effectively never happens...
Let me know whether this makes sense.
12-11-2011 02:54 PM
Thank you!
I think I got what I need!