LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving the Control Values on a Front Panel

I am creating a VI in which I have approximately 10 front panel controls that can be changed by a user. Instead of entering the same values over an over again, I would like to provide the user the option to save a set of control values that can then be loaded the next time around via a drop-down box. Before I began I just wanted to see if anyone had done anything similar. I was stumped as to how to approach it. Any suggestions?

Matt
0 Kudos
Message 1 of 3
(2,901 Views)
What you need to is write a configuration file. There is a shipping example on how to do this called write configuration settings file.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 3
(2,901 Views)
Matt,

You can also use a datalog file. LabVIEW can write and read clusters to a file, and as long as the cluster don't change you should be fine.

Basically your code would grab the value of each control, bundle it into a cluster and save that cluster to a file. For reading, you read your cluster from the file and get each individual value to drop it in the right control.

I'm sure there are some shipping examples on this too.

I hope this helps.

Regards,

Juan Carlos
N.I.
Message 3 of 3
(2,901 Views)