03-10-2020 04:14 PM
Trying to write 35 channels at a speed of 1 hz. Reason the duration is for 3000 hrs , so don't need high rate speed of data being recording. The block diagram does run for about 12 minutes before the Error message appears and stops the vi. Using the setting in Daq Assistant to set the 1 hz at continuous samples. My only guess the 35 channels are overloading the buffer, Daq Assistant cannot handle that many channels at any rate of speed that is selected. I did try using the TDMS function but the excel cannot open the files, scrambled gibber. Looking for some advice in setting up the vi in order to recorded the channels with out the Error.
Thanks you..
03-10-2020 04:23 PM
It is impossible to debug a picture of a block diagram consisting of Express VI's and Dynamic Data Type wires. All the important information is hidden their configurations. Please attach an actual VI.
What DAQ device are you using? I have no reason to expect that 35 channels at 1 Hz would be causing a problem in LabVIEW. The likely problem is something wrong in the configuration or the DAQ device not being capable of the settings expected of it.
Excel is capable of opening TDMS files if it has the TDMS plugin installed.
03-11-2020 08:21 AM
sorry about that, thought it attached.
the TDMS plugins, I have to double check if I can gets those installed.
thanks
03-11-2020 08:48 AM
Hi ole,
the DAQAssistent is capable to read 100 samples per call with 1kHz sample rate.
The problem (most probably) is the WriteFile to Excel XLSX! Save as LVM or TDMS instead to speed up file creation…
(I recommend to learn LabVIEW to stay away from those ExpressVIs.)
03-11-2020 09:31 AM
One problem is that you are trying to read 1000 samples at a 100 Hz rate. That means it takes 10 seconds which is the default timeout for a DAQ read.
Another problem is that you are using DAQ Assistants and blue dynamic wires which hide what is going on. You are acquiring 1000 samples of 36 channels which would be a pretty decent size array to be writing to a file every iteration. Do you really need to put 100 Hz worth of data for 3000 hours into a file? That is over a billion data points for channel. 36 billion for the 36 channels. And would be ~288 GB if they were saved as doubles! Excel doesn't have a billion rows to be able to hold that much data.
You should also look at a producer consumer architecture to move the file operations to a separate loop.
Evaluate how much data it is you really need to save.
03-12-2020 01:55 PM
the problem also is at 1 sample at 1 hz, Already tired to go as slow as possible in the sampling rate
03-12-2020 01:57 PM
I give TDMS a try. thanks