Go to Post Gotta love the use of universal technical terms, along with whatchamacallit, doodlespiel, whosiwhatsit... ;) - PaW [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 20-02-2014, 10:10
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Updated value in dashboard not getting to cRIO

I have found that if the dashboard updates a control using a local variable that the data is not sent to the cRIO and when the data is updated in the control by typing a new value in it does get updated. How do we programmatically update a control value and have it sent to the cRIO?
__________________
David Kolberg
2014- Mentor Iron Giants 5069
2004-2010 Coach SBotz Team 1327
2000-2003 Mentor Team 135
2016 St. Joe District Event Winner
2009 WFA Boilermaker
2008 Driving Tomorrow's Technology
2005 Innovation in Control
2005 IRI Spirit of Indiana
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2014, 10:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Updated value in dashboard not getting to cRIO

How are you attempting to update a Control, which is output only, with an input from a local variable?
Perhaps a picture?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2014, 10:42
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Re: Updated value in dashboard not getting to cRIO

Here is a picture, I am using the configuration file to load a value and place in the control using a local variable. I see the value get updated in the control but the new value does not seem to trigger a value change event to notify the network table to send a new value. I will try to use a property node to see if that works.
Click image for larger version

Name:	Controls.jpg
Views:	31
Size:	82.4 KB
ID:	16338
What I have is the ability to upload a set of parameters based on the driver hitting F2 or F3 to select long or short shooting. This updates a set of values that then I wanted to send to the cRIO in place of sending multiple sets and having the cRIO decide which set to use.

If I can not programmatically send data to the cRIO, then I will have to resort back to sending all the sets of data to the cRIO and then use buttons or something to tell the cRIO which set to use. Seems like this should be easily handled in the dashboard, but have not found any examples of programmatically sending a variable to the cRIO.
__________________
David Kolberg
2014- Mentor Iron Giants 5069
2004-2010 Coach SBotz Team 1327
2000-2003 Mentor Team 135
2016 St. Joe District Event Winner
2009 WFA Boilermaker
2008 Driving Tomorrow's Technology
2005 Innovation in Control
2005 IRI Spirit of Indiana

Last edited by DKolberg : 20-02-2014 at 11:03.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2014, 11:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Updated value in dashboard not getting to cRIO

A few ways to attach a picture.
- Use the Manage Attachments button when you create or edit a post (located lower down on the posting page)
- Use Attach as I see you just did
- web link to a publicly available image
- embed a weblinked photo
Code:
[ img]http://link[ /img]  (all without the spaces)
Here's an attached image passing array & cluster data from the Dashboard to the cRIO.

P.S.
For LabVIEW images it's best all around if you highlight the code and choose Edit -> Create snippet from vi
Attached Thumbnails
Click image for larger version

Name:	DataTransfer.png
Views:	34
Size:	24.5 KB
ID:	16339  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 20-02-2014 at 11:09.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2014, 11:22
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Re: Updated value in dashboard not getting to cRIO

Looks like using property value (signaling) works. It signals a value changed event after setting the value.

Thanks for your help.
__________________
David Kolberg
2014- Mentor Iron Giants 5069
2004-2010 Coach SBotz Team 1327
2000-2003 Mentor Team 135
2016 St. Joe District Event Winner
2009 WFA Boilermaker
2008 Driving Tomorrow's Technology
2005 Innovation in Control
2005 IRI Spirit of Indiana
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2014, 07:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Updated value in dashboard not getting to cRIO

The binding was primarily intended for indicators coming from the robot and for interactive panel values. It was not really intended as a replacement for variable writes.

You are correct that value signaling will work. So will writing the value and writing the variable. If you have many variables, it may be useful to place them into an array or a cluster and flatten the cluster as Mark showed.

Greg McKaskle
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 20:14.

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