04-19-2006 02:55 AM

04-20-2006 11:35 PM
04-21-2006 12:42 AM
I would recommend to write the header at the beginning, then stream the data to disk in the main while loop. There is no reason to built-up all that data in memory (1/sec for 48 hours!). If you stream to disk, the already aquired data is safe even if the computer would crash or there is a power failure. In your version you would loose it all. You could even add some code to browse (scroll) through the aquired disk data as desired, even during the run.
04-22-2006 08:34 PM
04-23-2006 03:23 PM
04-24-2006 02:14 AM
04-24-2006 11:11 AM
@uclabme wrote:
We are able to have both the dt data and y data entered into an array. the data is then saved to a binary file.
Any comments? Is there a way I can shrink the file further? For a 33-sec data...the txt file size is ~100MB.
Do you have any pointers for graphing the binary file after the data acquisition? Any pointers for post processing would be much appreciated.
First of all, something is blowing the margins of your upper loop, and to me it looks like maybe a LabVIEW bug or corruption (?). For some reason, the label of the waveform chart is way off to the left and seemingly cannot be moved independently of its terminal for some reason. Deleting the chart and creating a new one fixes it. (that's why your upper loop contains so much hot air, it is autosizing when you move things around and e.g. trying to move the label pushes the right margin way out).
Secondly, your data is formatted and saved in an ASCII formatted text file, not binary. A binary file would be much more efficient! It would eliminate all the expensive formatting operations and would make the file MUCH smaller.
It seems foolish to artificially create all they x data and save it to file, since it is so redundant. Since the intermediary timestaps can be calculated at any time, they don't need to be saved. You can regenerate them when reading the file.
Obviously, you are relatively new to LabVIEW and there are a lot of odd constructs than can be simplfied, for example:
Sorry, I don't have any DAQ installed, so I cannot test.
04-24-2006 01:06 PM
04-24-2006 02:29 PM