LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Huge time discrepancy after collecting data and writing

After about an hour of collecting data it is about 15 minutes behind and then crashes.  My clock show for example 1:35 when i am done collecting data but the excel file shows that i am off by 15 minutes (1:21), the waveform chart also show that my times are out of sync. My data is recorded correctly but displayed values are not current, this creates problems when trying to determine actual live time values.

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

Not sure if I should be helping with a BYU Fall 2019 Special Project that is in its Final Version, but, here's some guesses:

  1. Your loop is slow, you are sampling at 5 Hz and retrieving 5 samples at a time, so opening closing a file with the express VI is probably not a problem, but my preference, is to open the file outside the loop, write inside the loop, close outside the loop. All of those opening and closing references just don't sit well with me.
  2. Learn how to move away from Express VIs and Dynamic Data types.
  3. What happens if you slow your loop down even more, say acquire 20 samples at a time, so the loop runs once every 4 s?
  4. Your project is missing Untitled 28.vi, it sounds important.
  5. Why do you have a voltage chart, it has the same plot you have in Waveform Chart?

mcduff

 

PS Please consider revising your final project.

 

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