AnsweredAssumed Answered

Re2: vrf records and datasets

Question asked by VRFuser on Jun 27, 2008
Latest reply on Jun 27, 2008 by VRFuser
Kevin Nievaart <Kevin.Nievaart@eng.monash.edu.au> wrote:
> Hi Per,

> As more data comes down, I'd like to be able to update the graph with
> the latest values while keeping the first values.  This means that the
> sensors get read, data gets saved to a dataset file, and the entirety
> of the dataset file gets read to produce the graph.

> It is the saving to file, and then reading of the file that is killing me.

Then why save to the file? A dataset is just an array of records so why not just maintain that array in memory rather than writing it to a file for every new point?

You can always write out the array later.

Even if you need to write the file for every datapoint for some reason ( like robustness I suppose ) you can still maintain the whole array in memory. That way you get the image on disk but never have to read from it so your "saving to file, and then reading of the file" becomes "saving to file, but using data already loaded in memory"

regards

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------


---
You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

Outcomes