I was wondering what the best way to save values on the dashboard. Anyone have any suggestions
If you go to the dash board code you need to put the values in then right click and set it as default
That is what we are doing now. No was just wondering if there was an easier way to do it whill code is running
That is what we are doing now. No was just wondering if there was an easier way to do it whill code is running
You cannot programmically ‘set default value’ on a front panel object, as this value is compiled into the code.
Instead you could implement a config file. When the dashboard first loads you can read the value stored and set the front panel object. And when you want to save it you just overwrite this value. LabVIEW’s ini file pallette works well for this, under Programming --> File I/O --> Configuration File VIs,
Do you have an example of how to do this
These two VI Snippets attached show an example of initialization and writing the value. The config file would then look something like this:
[Defaults]
KeyName = 5.000000
```<br><br><br><br><br><br><br><br>