LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to continously record data

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 11 of 14
(657 Views)

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

0 Kudos
Message 12 of 14
(650 Views)

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) ScreenHunter_005.jpg  (converted to a string) rather than the date/time string provided by this: ScreenHunter_006.jpg

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.

0 Kudos
Message 13 of 14
(644 Views)

Thank you!

I think I got what I need!Smiley Happy

0 Kudos
Message 14 of 14
(633 Views)