07-19-2022 10:40 AM
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
07-19-2022 10:59 AM
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?
07-19-2022 12:06 PM
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)?
07-19-2022 12:12 PM
@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?
07-20-2022 02:35 AM
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.
Suggestions on how I should go about this problem would be nice.
Marinus
07-20-2022 02:36 AM
Sorry here is the VI. 🙂
Marinus
07-20-2022 02:37 AM
Hello
I just posted all this info.
Thank you.
Marinus
07-20-2022 02:37 AM
Hello
I've just posted the VI and setup, thanks
Marinus
07-20-2022 06:19 AM
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.
07-20-2022 07:17 AM
Thank you
I will try this and come back with the results.
Marinus