LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting front panel control values using spreadsheet CSV file data

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?

0 Kudos
Message 1 of 3
(2,609 Views)

Hi John,

 

Maybe my library will work for you:

http://forums.ni.com/t5/LabVIEW/save-control-values-by-reference-I-have-made-something-that-does/td-...

 

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.

 

0 Kudos
Message 2 of 3
(2,600 Views)

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

Richard S
Applications Engineer
Certified LabVIEW Associate Developer
National Instruments UK&Ireland
0 Kudos
Message 3 of 3
(2,573 Views)