LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making SCADA Configuration Page in LabVIEW

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

--------------------------------------------------------------------------------------------------

--CLD--
LV 6.1 to 2015 SP1
0 Kudos
Message 1 of 5
(3,690 Views)

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/

 

 

http://www.medicollector.com
Message 2 of 5
(3,675 Views)

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.

--------------------------------------------------------------------------------------------------

--CLD--
LV 6.1 to 2015 SP1
0 Kudos
Message 3 of 5
(3,653 Views)


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

Message 4 of 5
(3,644 Views)

Nice! Have you used this yet? Is the source code still password protected? Will have to check it out. Thanks

--------------------------------------------------------------------------------------------------

--CLD--
LV 6.1 to 2015 SP1
0 Kudos
Message 5 of 5
(3,634 Views)