LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Efficiently saving front panel parameters

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(3,713 Views)

Also, the version I'm using is 2009 SP1, to clarify.

0 Kudos
Message 2 of 10
(3,711 Views)

The quickest and dirtiest approach is to use

 

Operate >>> Data Logging >>> Log

 

Once written can be retrieved.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 10
(3,700 Views)

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

Message 4 of 10
(3,698 Views)

Perhaps these would work.

Download All
Message 5 of 10
(3,684 Views)
Solution
Accepted by topic author RBeck

LV 9 versions

Download All
Message 6 of 10
(3,681 Views)

pcardinale,

 

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.

0 Kudos
Message 7 of 10
(3,649 Views)

Thank you all.  This is very helpful.

0 Kudos
Message 8 of 10
(3,636 Views)

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.

0 Kudos
Message 9 of 10
(3,618 Views)