LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time resets to zero when saving data

I'm using a VI with a 6218 USB Daq board that I'm using to output a voltage to control a motor and am using it to collect voltage data from various instruments.  When trying to save it as a .lvm file the data I get is resetting every time the buffer is reached.  In this case continuous sampling at 18K/s for 5K samples the data time stamp resets to zero every ~.27 seconds.  I want the timestamp to continue on instead of resetting.  I can't seem to find the exact problem, but when building the VI from the ground up it appears to work as I want then for some reason it starts resetting to zero.  I've attached my VI.  Thanks for any assistance.

 

 

0 Kudos
Message 1 of 2
(2,307 Views)

Hi bhebs,

 

Does the timestamp start resetting itself while the VI is running (it works when you start it, but then sometime before you stop it, it begins to reset itself) or does the behavior occur as soon as you start the VI?  Also, what method are you using to stop the VI?  If you are using the Abort button (the stop sign in the top menu) that can cause issues by not properly closing out references.  You should wire a stop button to your loop control and use that to stop the VI instead.

Jayme W.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,269 Views)