Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Dashboard Saving Values (http://www.chiefdelphi.com/forums/showthread.php?t=135788)

Bpk9p4 03-15-2015 02:57 PM

Dashboard Saving Values
 
I was wondering what the best way to save values on the dashboard. Anyone have any suggestions

FrankenmuthK 03-15-2015 03:29 PM

Re: Dashboard Saving Values
 
Quote:

Originally Posted by Bpk9p4 (Post 1457790)
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

Bpk9p4 03-15-2015 03:32 PM

Re: Dashboard Saving Values
 
That is what we are doing now. No was just wondering if there was an easier way to do it whill code is running

Bpk9p4 03-15-2015 04:08 PM

Re: Dashboard Saving Values
 
That is what we are doing now. No was just wondering if there was an easier way to do it whill code is running

wt200999 03-15-2015 04:28 PM

Re: Dashboard Saving Values
 
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,

Bpk9p4 03-16-2015 10:39 PM

Re: Dashboard Saving Values
 
Do you have an example of how to do this

wt200999 03-16-2015 11:54 PM

Re: Dashboard Saving Values
 
2 Attachment(s)
These two VI Snippets attached show an example of initialization and writing the value. The config file would then look something like this:

Code:

[Defaults]
KeyName = 5.000000



All times are GMT -5. The time now is 05:58 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi