You can use this VI to save and load front panel control values and then recall the values programmatically.
Storing and recalling front panel control values without having to set them as default values is useful if you want to run multiple times VIs that have different front panel values.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.