01-11-2011 05:43 AM
Hi,
I'm working on a control system algorithm that includes 25 tuning parameters that are adjusted via controls on a Labview front panel. I would like to be able to set these control values according to data stored in a spreadsheet CSV file.
I am almost there, because I can successfully save the parameters to a CSV file, and I can read the parameters back in from the CSV file, but the only way I can find of actually writing the parameters to the front panel controls is to use a separate Invoke Node - Ctrl Val.Set for each parameter, which seems rather long winded.
Are there any other methods of overwriting front panel control values?
01-11-2011 06:01 AM
Hi John,
Maybe my library will work for you:
It saves and restores control data in a text file. Just save it once, and next time just alter the values in the .cfg file with a text editor and load it.
01-12-2011 05:25 AM
I would personally use an .ini file to configure the controls within the FP. A .ini file is a configuration file. The following example shows this very well. Use the error cluster to ensure data flow, so that the configuration occurs before your code.
http://decibel.ni.com/content/docs/DOC-9259
Regards