LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording universal time along with dynamic data

Solved!
Go to solution

Hey guys, basic question. 

 

I have a single pressure transducer that I'm recording data from.  I want to have a single button that the user can press to start recording and have the same button stop recording.  I suppse the catch is that as the user, I would like to see periodic updates from the what the DAQ assistant is seeing.

 

The problem I'm having is that the time stamp in the recorded data file repeats for every cycle of the DAQ assistant.  Meaning, if I record two cycles at 5 Hz and at 5 samples, my time stamp goes from 0,.2,.4,.6,.8,0,.2,.4,.6,.8.  See it repeats.  Ideally I'd like it to go like this 0,.2,.4,.6,.8,1,1.2,1.4,1.6,1.8. I'm attached the VI and sample output.  I appreciate any help you guys can provide. 

 

John

Download All
0 Kudos
Message 1 of 3
(2,521 Views)
Solution
Accepted by topic author jwbrooks

How are you running your VI?

 

It only runs one time them stops.  It doesn't have a while loop for multiple iterations.

 

Please don't tell me you are using the Run Continuous button and the Abort button.  They are only for debugging purposes.

 

If you put a while loop around your code and use a real stop button on your Front panel, you'll see it works just fine.  Run Continuous is not the same as a while loop.  It is more like, run, run again, run again, run again, always restarting the VI until you hit the abort button which is what is causing your time stamps to restart.

Message 2 of 3
(2,511 Views)

Ravens Fan,

   Thank you very much.  You're suggestion worked perfectly.  I'll be sure to not use the Run Countinuous button in the future. 

 

John

0 Kudos
Message 3 of 3
(2,489 Views)