ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,234 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:

 

https://www.ni.com/docs/en-US/bundle/labview/page/configuration-files.html

 

 

http://www.medicollector.com
Message 2 of 5
(4,219 Views)

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.

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

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


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

Message 4 of 5
(4,188 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
(4,178 Views)