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
Use configuration files. That is exactly what they are made for, and NI has a collection of "out of the box" VIs for them:
http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/creating_configuration_files/
06-20-2011 05:30 PM
I like how this dialog interface is setup. Very scalable and a familiar interface
https://decibel.ni.com/content/message/19693
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
You probably want to check out
https://decibel.ni.com/content/docs/DOC-13146
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