Go to Post If that due diligence shows that a real need for action exists, *then* grab the pitchforks, and light the torches. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 13-01-2009, 19:51
ellisk ellisk is offline
Registered User
FRC #1540
 
Join Date: Dec 2008
Location: Vancouver, WA
Posts: 41
ellisk is on a distinguished road
Not getting robot info on Dashboard (C++)

Hi all,
We are using C++ to program this year's robot. When we download our program to the cRIO, it runs fine. However, if we pull up a Dashboard in Labview (just the default Dashboard), the only info that we get is voltage, despite the dashboard having items for much more information. Does anyone know what is wrong? We're expecting to get PWM and camera info, too (we run the PCVideoServer in the code). Our IP address is correct (10.15.40.6). What could be going wrong?

Thanks,
-Kevin
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2009, 20:14
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Not getting robot info on Dashboard (C++)

Can you send dashboard.printf messages and have them displayed? My suspiscion is that since the dashboard is in labVIEW, the labVIEW system for the cRio includes options for sending back more data, or does it automatically
__________________
Get yer robot source code here!
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2009, 20:19
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 317
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Not getting robot info on Dashboard (C++)

The dashboard packet needs to be packed explicitly in your C++ program in order for it to be transmitted to 10.xx.yy.6, and hence for the LabVIEW program to see it. You see the battery voltage because that is part of the control data in the packet that the DS uses (it's also part of the DS display).

If you want to get the information from the robot to your dashboard, have a look at the Dashboard example project in WindRiver. Using a Dashboard object, and packing the dashboard as in the example, will allow you to supply the LabVIEW dashboard the information it needs for a full display.

-Jeff Erickson, FRC 41
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2009, 22:42
Dr Nick Dr Nick is offline
Registered User
FRC #0501 (The Powerknights!)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Manchvegas NH!
Posts: 24
Dr Nick has a spectacular aura aboutDr Nick has a spectacular aura about
Send a message via AIM to Dr Nick
Re: Not getting robot info on Dashboard (C++)

As a side note, I'm pretty sure that streaming the camera images with the PCVideoServer does not work. I haven't been able to get it to work (the default dashboard example with camera images that is) and I remember seeing someone else saying that it doesn't work.

It's starting to bother me that we're two weeks into build and the control system is essentially still in beta though I guess this is just WPI being nice and helping us out so can't complain.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2009, 23:43
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Not getting robot info on Dashboard (C++)

Quote:
Originally Posted by Dr Nick View Post
As a side note, I'm pretty sure that streaming the camera images with the PCVideoServer does not work. I haven't been able to get it to work (the default dashboard example with camera images that is) and I remember seeing someone else saying that it doesn't work.
We have gotten the camera to work fine and stream to the dashboard. Be sure to call StartCameraTask() first, in order to actually initialize the camera. If the camera is not initialized before PCVideoServer is used, PCVideoServer will not work.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2009, 23:48
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Not getting robot info on Dashboard (C++)

We tested out the dashboard last night (default code on both robot and laptop side) and had a similar problem where the dashboard just wouldn't connect. It took us a while to find it, but the problem ended up that we had Windows Firewall turned on. You may want to check your settings there to make sure that you're not unintentionally blocking the communication.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2009, 11:36
bobbyt14 bobbyt14 is offline
Registered User
FRC #0744
 
Join Date: Feb 2007
Location: Fort Lauderdale
Posts: 13
bobbyt14 is an unknown quantity at this point
Re: Not getting robot info on Dashboard (C++)

check out my post on this thread... as long as you're not having troubles with firewalls and have the correct updates installed, this should get you running with the dashboard and the video server:

http://www.chiefdelphi.com/forums/sh...ad.php?t=71893

note that the dashboard does not automatically connect to anything on the robot, you must manually set each field. (everything displayed on the DS is automatically connected though)
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2009, 14:58
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Not getting robot info on Dashboard (C++)

(note: the following post assumes C++ on board the robot, as is the case with the OP's questions)

The dashboard is not like previous years; you will not get the values of all outputs on the robot automatically (even when you get all the IPs, firewalls, etc set up correctly).

The software on board the robot simply does not send out this information unless you write code to make it do so.

The Labview Dashboard application will present an application that, when sent the proper information from the robot, will show I/O information similar in spirit to the old IFI dashboard. This application expects the dashboard data in a specific format over the network.

The newly added Dashboard example template in the recent Windriver update provides classes to help you send the data in the proper format. However, the example does not actually send all the I/O data for you. You need to augment it to send the I/O data, or other data that your team may have an interest in.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rules that are [not] getting called at Regionals, the +s and -s Ethulin Rules/Strategy 87 15-03-2006 13:38
Getting Dashboard data in OS X 10.4.4? Billfred LabView and Data Acquisition 3 28-01-2006 15:02
Servos not getting right voltage sheyna Programming 2 17-01-2006 21:57
Dashboard Robot Controller Packet Info?? cbolin Programming 3 22-07-2004 15:07
Radios not getting signals BrendaB Control System 3 24-01-2004 22:50


All times are GMT -5. The time now is 14:53.

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