05-20-2017 08:03 AM
05-20-2017 01:27 PM
Do you have a question?
05-21-2017 04:46 AM
My question is............................
When I run the program for longer duration, why does the size of file becomes 2kB
whereas when program is run for shorter duration I get a properly recorded file of nearly 4MB
It can be seen in the jpegs attached
Why does that happen ?
regards
05-21-2017 10:39 AM
So you run the VI a short time, you get a lot of data in the file. But if it runs longer, the file becomes shorter? What does the data look like in the small file? Is it from the beginning of the collection? The end?
You are not doing anything different but letting the VI run longer?
Can you create a separate VI that you run in parallel that continually checks the sizes of the files? If the file size starts shrinking it will log it and let you know. Wondering where between 1 hour and 10 hours things suddenly go wrong. Check for an log any errors. Put indicators on loop iteration terminals and probes in your code to make sure no parts of it are getting stuck.
(Be sure to run block diagram cleanup on your code. And label all of your controls. You have a Stop button that has no label, so the local variables just say "?").
05-22-2017 12:25 AM
Yes, you got the problem correct.
Ideally at a data rate of 1000S/s/ch the file should be having 120000 data points and nearly same size
Later, i converted these files to '.lvm' format for analysis, the files of 4MB have data in them when plotted
but the 2kB files become 0kB as '.lvm' and are blank when opened with notepad.
I will implement your suggestion of a parallel VI for the file size and let you know what happens.
Thank you sooo much for your interest and time.
05-22-2017 06:25 AM
Are you capturing errors in your application?
I suspect 2kB actually means the files are emtpy and some error is causing the data to not be written. If it starts after a certain amount of time likely culprits are:
* Running out of disk space
* Some sort of queue or FIFO overflow.
* Running out of memory.
But the best first step is to use some sort of error handling to log the errors to disk so that you can see what is going on.