Go to Post IS THAT A CLUE, DAVE?!?!? - Joe Matt [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-15-2015, 02:57 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Dashboard Saving Values

I was wondering what the best way to save values on the dashboard. Anyone have any suggestions
Reply With Quote
  #2   Spotlight this post!  
Unread 03-15-2015, 03:29 PM
FrankenmuthK's Avatar
FrankenmuthK FrankenmuthK is offline
Registered User
FRC #5215
 
Join Date: Jan 2015
Location: United States
Posts: 34
FrankenmuthK is an unknown quantity at this point
Re: Dashboard Saving Values

Quote:
Originally Posted by Bpk9p4 View Post
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
Reply With Quote
  #3   Spotlight this post!  
Unread 03-15-2015, 03:32 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
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
Reply With Quote
  #4   Spotlight this post!  
Unread 03-15-2015, 04:08 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
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
Reply With Quote
  #5   Spotlight this post!  
Unread 03-15-2015, 04:28 PM
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 321
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
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,
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #6   Spotlight this post!  
Unread 03-16-2015, 10:39 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Dashboard Saving Values

Do you have an example of how to do this
Reply With Quote
  #7   Spotlight this post!  
Unread 03-16-2015, 11:54 PM
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 321
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Dashboard Saving Values

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
Attached Thumbnails
Click image for larger version

Name:	Initialization.png
Views:	37
Size:	16.8 KB
ID:	18663  Click image for larger version

Name:	Write Value.png
Views:	31
Size:	15.9 KB
ID:	18664  
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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