05-20-2011 06:16 PM
I currently have a configuration page (using a Tab Control) on my HMI applications that allows the user to set offsets, file paths, and parameters. My normal setup is a PC paired with a cRIO-9022, so the config page has options for both the PC and the cRIO. I also have the DSC module, but have not implemented its functionality yet on any projects.
The problem is, these are just controls. In order for me to save a new value to them, I open the VI in project mode, change the value, then click "Make Current Values Default", then I recompile and deploy the application.
This is a pain, and I would like a method of saving edits to the configuration parameters without re-compiling the application. I'm thinking this will probably involve some sort of file-IO and a "Save Changes/Apply" button. I'm wondering how others have done this.
Thanks
05-23-2011
08:32 AM
- last edited on
05-09-2025
10:42 AM
by
Content Cleaner
Use configuration files. That is exactly what they are made for, and NI has a collection of "out of the box" VIs for them:
https://www.ni.com/docs/en-US/bundle/labview/page/configuration-files.html
06-20-2011
05:30 PM
- last edited on
05-09-2025
10:43 AM
by
Content Cleaner
I like how this dialog interface is setup. Very scalable and a familiar interface
https://forums.ni.com/t5/UI-Interest-Group-Discussions/Configration-options-dialog/m-p/3400152
I'm thinking that within the VI that has this front panel, the file write functions happen. When you hit the "OK" button, they are saved to file.
06-20-2011
05:43 PM
- last edited on
05-09-2025
10:43 AM
by
Content Cleaner
You probably want to check out
https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Options-Dialog-Framework-ODF/ta-p/3526554
This actually oulines how to acutally use the options dialog built into LV to display your own options panel
also you might like
http://dl.dropbox.com/u/1934592/Preference%20Pane.zip
instead
This is a fully developed LV only version that you have full access to all VI in the chain instead of working with a locked framwork that exists in LV
06-20-2011 06:37 PM
Nice! Have you used this yet? Is the source code still password protected? Will have to check it out. Thanks