Go to Post After all, life is what you do outside of FIRST. No wonder it's so short. - Vashts6583 [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-04-2015, 20:42
stopyourself stopyourself is offline
Registered User
FRC #2335 (Sargon)
Team Role: Leadership
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Prairie Village
Posts: 35
stopyourself is on a distinguished road
Dashboard Values Not Get

I am helping a team who is going to champs with Labview. We are trying to display a DIO output on the dashboard.

Here is what it looks like:
Attached is dashboard.png

However, I can not get the value to change.
Attached is relevant begin.vi

Attached is relevant teleop.vi

Many changes to code, no changes to Dashboard. The value does change on Global variables.
Attached Thumbnails
Click image for larger version

Name:	begin.png
Views:	38
Size:	2.4 KB
ID:	18886  Click image for larger version

Name:	dashboard.png
Views:	39
Size:	14.7 KB
ID:	18887  Click image for larger version

Name:	teleop.png
Views:	38
Size:	18.8 KB
ID:	18888  
__________________
2013-2016: Team 2335
Reply With Quote
  #2   Spotlight this post!  
Unread 20-04-2015, 21:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Dashboard Values Not Get

Quote:
Originally Posted by stopyourself View Post
I am helping a team who is going to champs with Labview. We are trying to display a DIO output on the dashboard...
Many changes to code, no changes to Dashboard. The value does change on Global variables.
Where and how are you expecting the value to be displayed on the Dashboard, if you haven't made any changes to the Dashboard? You have created a new SmartDashboard variable named "DB/DIO 0", but there isn't an indicator with that name in the Dashboard program.

I don't understand what you are trying to do in Teleop. It looks like you are setting the same global variable in two different places. In the spot you have labeled "Reads value", you probably want instead to write the SD value. But you still have to have a place in the Dashboard for that value to be displayed.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-04-2015, 09:27
stopyourself stopyourself is offline
Registered User
FRC #2335 (Sargon)
Team Role: Leadership
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Prairie Village
Posts: 35
stopyourself is on a distinguished road
Re: Dashboard Values Not Get

So if I have a dashboard program, where should I put the DIO 0 variable. Does it go with the network table ones?
__________________
2013-2016: Team 2335
Reply With Quote
  #4   Spotlight this post!  
Unread 21-04-2015, 09:44
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Dashboard Values Not Get

You can put it where ever you want to. When you do the read on the dashboard project it will update an indicator that you must create.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-04-2015, 10:05
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,748
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: Dashboard Values Not Get

The code that is in Begin is performing a write operation to the DB variable. The code in TeleOp is using a global variable instead. If you put the Begin code into TeleOp, I believe you will start to see the dashboard value track the DIO.

As mentioned, you may also want to modify the dashboard to bind a specific Boolean to the variable or read the DB variable and update an indicator. But the variable tab works independent of this.

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 03:51.

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