08-08-2011 10:40 AM
Hi, in my main application i have a tab called Comms config, which as you can imagine have controls to configure the visa comms parameters.
I have created a Configuration File to also allow the com ports to be altered by the operator from the text file.
My trouble is, how do you implement both in LabVIEW. For example the ini file should populate the VISA Configure Serial Port with the desired comm Port, OR i’d also like to be able to have a manual control from the main application that the user could use too.
How would this be done?
Thanks
08-08-2011 11:00 AM
Under File I/O/Config File VIs, you need to read the key from the appropriate section and read it into your control.
Having the operator change a config file manually is not the way to do it. The operator should be able to change the settings from the fp or a run-time menu. These settings can than be saved back to the config file manually (through a run-time menu selection) or when the program exits (automatic save). When the program first starts up, it should read the .ini file and populate the controls with the settings from there. The operator should never see the .ini file. You can do it this way, but it's not the norm and I would advise against it.