Jump to content

Exporting Graph History to CSV


Recommended Posts

I'm currently doing a VI for a Leak Test machine that may run up to 24 hours. In this time period I'm graphing the collected pressure traces, and that's it.

Is there a way to dump the history of the graph to a CSV file? Rather than collecting the data into another array, and then either trashing the array once they start a new test, or saving it to a file if it's involked. It just seems like better memory managment to use the history feature... i guess.

Thanks!

Jason

Link to comment

QUOTE(JStoddard @ Feb 16 2007, 01:46 PM)

I'm currently doing a VI for a Leak Test machine that may run up to 24 hours. In this time period I'm graphing the collected pressure traces, and that's it.

Is there a way to dump the history of the graph to a CSV file? Rather than collecting the data into another array, and then either trashing the array once they start a new test, or saving it to a file if it's involked. It just seems like better memory managment to use the history feature... i guess.

For a chart, you can use a property node and use the History Data property to get the contents of the chart as an array. It will discard everything not contained in the chart history, though. For a graph, you can just use a local variable of the graph itself.

I would suggest logging the data to disk as you collect it, though. Unless you're collecting at really high rates, it shouldn't slow anything down. If a power glitch can lose 24 hours of data, it's worth the small amount of extra work.

Link to comment

QUOTE(JStoddard @ Feb 16 2007, 11:46 AM)

I'm currently doing a VI for a Leak Test machine that may run up to 24 hours. In this time period I'm graphing the collected pressure traces, and that's it.

Is there a way to dump the history of the graph to a CSV file? Rather than collecting the data into another array, and then either trashing the array once they start a new test, or saving it to a file if it's involked. It just seems like better memory managment to use the history feature... i guess.

Thanks!

Jason

You mean "chart"?

Neville.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.