JStoddard Posted February 17, 2007 Report Share Posted February 17, 2007 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 Quote Link to comment
eaolson Posted February 17, 2007 Report Share Posted February 17, 2007 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. Quote Link to comment
Neville D Posted February 17, 2007 Report Share Posted February 17, 2007 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. Quote Link to comment
JStoddard Posted February 17, 2007 Author Report Share Posted February 17, 2007 I did indeed mean a chart. I don't want to always log the data because the defined user has a .01% likely hood of wanting the information saved to a CSV. It's a "i might want to some day" feature. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.