Go to Post For those of us in the north, a water game turns into an ice game, which becomes Lunacy. And I don't think any of us want that. - Kimmeh [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 24-01-2013, 07:18
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,751
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: Not able to read DS Indicators

Did you update the dashboard to bind the controls in the Camera Tracking tab?

The dashboard binding pushes user initiated value changes to the robot and it updates controls and indicators when a SmartDashboard value comes in.

By default, programmatic updates to indicators and controls will not trigger an event. This is to avoid cycles and side-effects.

The way I was recommending is to add a SmartDashboard write of double to the place you are updating distance. Explicitly update the variable when you update the indicator.

Greg McKaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2013, 11:42
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Not able to read DS Indicators

Quote:
Originally Posted by Greg McKaskle View Post
Did you update the dashboard to bind the controls in the Camera Tracking tab?

The dashboard binding pushes user initiated value changes to the robot and it updates controls and indicators when a SmartDashboard value comes in.

By default, programmatic updates to indicators and controls will not trigger an event. This is to avoid cycles and side-effects.

The way I was recommending is to add a SmartDashboard write of double to the place you are updating distance. Explicitly update the variable when you update the indicator.

Greg McKaskle
So if I understand correctly, you want me to write to the indicator in the Dashboard using a SD Write Double Bool.vi, then read from the indicator with the SD Read Double Bool.vi, instead of directly trying to read from the indicator on the Dashboard?

Will this update the variable when I update the indicator, as you say?
__________________

CTO/Head Programmer of Team 1710

Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2013, 15: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,751
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: Not able to read DS Indicators

Close, if I followed your description correctly. What I'd do is when you have dashboard data that you want to send to the robot, write it to both the indicator and to the SD variable at the same time.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2013, 19:06
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Talking Re: Not able to read DS Indicators

Thanks for you help Greg! I did need to write to the SD before reading it. I also figured it helps if you put them in a seperate table/or group othewise it might get confused reading a stray variable with the same name... Much appriacted.
__________________

CTO/Head Programmer of Team 1710

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 10:54.

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