06-12-2012 01:54 PM
Hello. Just a quick question: Is there a way to efficiently poll all the parameters set on the front panel and save them to a file to be loaded later? I know that this is possible by individually making keys for each, but my front panel has a whopping 38 parameters that need to be saved. Using the methods I've found online and elswhere in this forum, saving a large number of parameters is possible, but would be very, very tedious. I was just wondering if there was a more efficient way, like a command to poll all controls present and bundle them into an easy to manipulate cluster.
Solved! Go to Solution.
06-12-2012 01:55 PM
Also, the version I'm using is 2009 SP1, to clarify.
06-12-2012 02:06 PM
The quickest and dirtiest approach is to use
Operate >>> Data Logging >>> Log
Once written can be retrieved.
Ben
06-12-2012 02:11 PM
You can use the invoke node of the This VI reference to "Get All" controls/indicators and the "Set" method to set one (see attached snippet). Programmatically editing the data is tedious however as the data is retrieved as variant. The OpenG library has some great VI's for working with variants should you choose to do so.
Charles Chickering
06-12-2012 04:15 PM
Perhaps these would work.
06-12-2012 04:17 PM
LV 9 versions
06-13-2012 10:34 AM
Thanks. That was a very useful VI. I was looking for a way to process this data outside of OpenG. (I attempted with OpenG, compiled the application and was immediately hit with trojan virus warnings. I downloaded OpenG's solution just 4 days ago.)
The XML based VI's you present are very clever.
06-13-2012 12:04 PM
Thank you all. This is very helpful.
06-13-2012 01:13 PM
Your programs are great, but could you briefly go into how to use them? I'm currently using a sequence structure to make my program go Read->Actual Program->Write, but that doesn't seem to do anything. Also, does this program have support for saving and loading multiple configurations? Just curious.
06-13-2012 03:18 PM
There are plenty of demo programs that seems to do about the same thing, here's a small list:
Save and retrieve front panel control values
Save and Load All Front Panel Controls
Save and load (almost) all control values
Programmatically saving and loading values of all front panel controls
How to Save and Read Control Values Programatically
...