From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-12-2008 08:24 AM
05-12-2008 09:04 AM
You didn't say how long your acquisition will be, but assuming each measurement of the first two kinds is just a DBL, you get about 400 KB\s. That's managable straight up if your acquisition is not too long and if you don't create data copies (which requires you to know what you're doing). If the acq includes a timestamp for each point, that becomes around 1 MB\s.
Some relevant points:
Managing Large Data Sets might help you.
If you know anything about working with databases, that might help you for keeping the data, although it will require some additional work.
You might be able to use formats like TDMS to do this. I don't have any experience with them, so I can't say.
05-12-2008 09:39 AM
05-12-2008 10:55 AM
Without looking into the other options, this is what I would do. It's quite possible there are better options.
This assumes that the reviewing part is done after the logging is done, although it doesn't have to.
Accumulate the data in a circular buffer so that you don't have memory issues. When the buffer is full, you write the data in it to the file. This can be implemented, for example, as an action engine. I'm attaching a simplistic example of how you create a 1D circular buffer. Yours might need to be more clever and include a running index (so that you can hold more data if the buffer is filled), but it shows the basic concept.
When you want to review, you start by asking the user to select which sensors to display. Once they do that, you go over all the files, one at a time, and load the data into another action engine while decimating it. That way, you can keep using that data to display the entire graph. Whenever the user zooms in (using buttons you place on the front panel), you load the data from the few relevant files and display in the graph in all its detail.
As I said, there might be better options, but these are just some quick thoughts.
05-13-2008 09:04 AM