LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Volt recording stops

Hello Im recording 8 voltage channels continuously using a DAC on a PXI. The data is being saves to excel. The problem is that the recording stops after about an hour. I will post the VI tomorrow.

Help will be appreciates

 

 

 

 

 

0 Kudos
Message 1 of 13
(2,500 Views)

What DAQ are you using?  What version of LabVIEW and the driver?  What rate are you sampling?  Are you saving to an actual xlsx file or to a delimited text file, such as a csv?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 13
(2,492 Views)

How are you writing to the file? Are you opening the file outside of the loop and then writing to it or are you opening it every time (hint: an express vi is not the solution here)? 

0 Kudos
Message 3 of 13
(2,469 Views)

@Marinuss wrote:

Hello Im recording 8 voltage channels continuously using a DAC on a PXI. The data is being saves to excel. The problem is that the recording stops after about an hour. I will post the VI tomorrow.

Help will be appreciates

 


Hmmm.... Stops after about an hour?... Does it throw an error message?

 

You did wire the Error Cluster throughout your program to properly catch and display errors, right?

 

 

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 13
(2,464 Views)

Thanks for the replies so far, here is my VI of the Voltage recording. I'm using the PXI as seen below. I've added the error handling just now to see what happens. I also added the two loop counters to see the two loops running.  Something I'm unsure of is the samples to read values.

 

I've also added the excel that shows the recording start and stops after an hour below.

 

Capture1.JPGCapture.JPG

1658301746293.jpgCapture.JPGCapture1.JPG

 

Suggestions on how I should go about this problem would be nice.

 

Marinus

0 Kudos
Message 5 of 13
(2,430 Views)

Sorry here is the VI. 🙂

 

Marinus

0 Kudos
Message 6 of 13
(2,429 Views)

Hello 

 

I just posted all this info.

 

Thank you.

 

Marinus

0 Kudos
Message 7 of 13
(2,426 Views)

Hello

 

I've just posted the VI and setup, thanks

 

Marinus

0 Kudos
Message 8 of 13
(2,425 Views)

How set are you on having an actual xlsx file?  Excel can also read delimited text files, which we can write a lot more efficiently than with the Express VI.  But what I would suggest is to get rid of the logging loop and go into the DAQ Express VI, go to the Logging tab and enable logging.  DAQmx will log the data straight to a TDMS file.  NI has an Excel plugin so that it can read a TDMS file, which you likely installed with LabVIEW.

 

I say this because I do not know everything that is happening in the Write Measurement File when saving to an xlsx file, but I do know that it has to open and close the file with every iteration.  This is a slow process.  Additionally, I suspect it is running into a memory issue due to the nature of the xlsx format.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 13
(2,399 Views)

Thank you 

 

I will try this and come back with the results.

 

Marinus

0 Kudos
Message 10 of 13
(2,389 Views)