Go to Post Wow, I am beginning to feel like a member of the fabled "vast right-wing conspiracy" :) - Jim Zondag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2013, 18:08
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Labview Dashboard issues???

So i followed the FIRST 2013 tutorial on putting stuff onto the dashboard, and i followed each step to the dot, but nothing on the dashboard responds to anything i've set it to respond to!

I used the SD read and write .vi's ("write" in the robot code and "read" inside a while loop in the dashboard main) and not one boolean LED lights up when a switch is pressed.

Is there something wrong with the way I have the read and write vi's set up in each of the attached files?
Attached Files
File Type: zip LabVIEW Data.zip (3.50 MB, 22 views)
  #2   Spotlight this post!  
Unread 21-01-2013, 19:18
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 254
BitTwiddler is on a distinguished road
Re: Labview Dashboard issues???

I'm learning this Smart Dashboard thing myself.
What happens if you delete the Read SD functions from the Dashboard and just put down indicators and guages labeled B1, B2, N1 on the front panel?
I don't have a robot handy to try it out but I'd sure like to know what happens.
  #3   Spotlight this post!  
Unread 21-01-2013, 19:36
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,756
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: Labview Dashboard issues???

I didn't look at all of the code, but opened up the Dashboard. The code that you added for N1, B1, and B2 was not placed in a loop, so it runs once and never again.

The green comment at the top of the diagram describes how to add controls or indicators and connect them to variables. It seems that you are close and only need to name the controls N1, B1, and B2. You can then delete the SD functions and just leave the terminals alone.

If you actually want to compute the data on the dashboard and write it to the variable, then put your code and the SD update into either loop 1 or loop 2.

Greg McKaskle
  #4   Spotlight this post!  
Unread 22-01-2013, 16:00
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Labview Dashboard issues???

Thanks! Using a loop worked instantly! Wow, pretty stupid of me not to read the comment.


Quote:
Originally Posted by Greg McKaskle View Post
It seems that you are close and only need to name the controls N1, B1, and B2. You can then delete the SD functions and just leave the terminals alone.

If you actually want to compute the data on the dashboard and write it to the variable, then put your code and the SD update into either loop 1 or loop 2.
I don't fully understand what you mean by deleting the SD functions. I thought they were required to be able to get values from the Robot code to the dashboard? My brain tells me that if i delete them, it stops working, but i could be wrong!

Could you give point me to an example of a dashboard that uses maybe one number variable like mine but with out the SD function?
  #5   Spotlight this post!  
Unread 22-01-2013, 20:57
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,756
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: Labview Dashboard issues???

The default checkboxes and slider work this way. The "magic" is that the controls in the Operation tab are automatically registered with SD using the name on the control. There is no need to use SD functions with them, but you can if you wish.

Greg McKaskle
  #6   Spotlight this post!  
Unread 23-01-2013, 13:21
crollison crollison is offline
Registered User
AKA: Chris Rollison
FRC #4809 (Black Knight Robotics)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Marceline, MO
Posts: 60
crollison is an unknown quantity at this point
Re: Labview Dashboard issues???

I've been looking for such a tutorial. Where did you find it? I probably looked right over it but am really looking to edit the default dashboard. Thanks.
  #7   Spotlight this post!  
Unread 23-01-2013, 14:52
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,756
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: Labview Dashboard issues???

The more basic tutorial is in the product. Go to the Getting Started window, click the Tutorials tab on the left and choose #6.

A more updated and helpful tutorial is locate at https://decibel.ni.com/content/docs/DOC-8923
Scroll down a bit and one is specific to the Dashboard.

Greg McKaskle
  #8   Spotlight this post!  
Unread 23-01-2013, 15:48
crollison crollison is offline
Registered User
AKA: Chris Rollison
FRC #4809 (Black Knight Robotics)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Marceline, MO
Posts: 60
crollison is an unknown quantity at this point
Re: Labview Dashboard issues???

Thanks, looks like a great resource.
  #9   Spotlight this post!  
Unread 23-01-2013, 15:49
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Labview Dashboard issues???

Quote:
Originally Posted by crollison View Post
I've been looking for such a tutorial. Where did you find it? I probably looked right over it but am really looking to edit the default dashboard. Thanks.
It's right here, but it didin't help me too much except with basic "how"s and "why"s.
Closed Thread


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 02:22.

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