Go to Post FIRST showed me how to succeed at one of the most difficult, yet important things: Life. - Jim McGeehin [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 03-16-2010, 07:18 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Enabling Default Dashboard in C++

Quote:
Originally Posted by Travis Hoffman View Post
I'm trying to get the default LabVIEW dashboard indicators to update (so I can then pursue some customizations). I'm using WindRiver C++. I'm borrowing our code template we used last season (shared online so it's rules-friendly, not that anyone would want to use it ). On the surface, I think I ported over the dashboard specific code from this year's template properly. I did get the dashboard to display the camera feed, but the IO status indicators are not updating. Can anyone set me down the right path? I use the IterativeRobot class.

Code:
 
//Stuff in .h file
 
#include"DashboardDataSender.h"
 
DashboardDataSender *dds;
Code:
 
//Stuff in .cpp file
 
#include"DashboardDataSender.h"
 
//Dashboard Data Sender
dds = new DashboardDataSender();
//Update Dashboard Data
dds->sendIOPortData();
Should I be calling the sendIOPortData() method in a specific location? Am I missing anything else?


Thanks,
The reason the indicators don't update is because the default code in C++ doesn't actually read the data. It just sends pre-set values. There are some blocks of commented-out code in DashboardDataSender.cpp that if are un-commented and the code mirroring them is commented, it should properly update the dashboard
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
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
Camera picture on Dashboard with default project code? neg0riz0r NI LabVIEW 2 02-18-2010 10:53 AM
Camera working in C++ and default dashboard pafwl C/C++ 0 02-03-2010 10:06 PM
Classmate Question: Default Path Location for Driver Dashboard Ziaholic FRC Control System 4 01-25-2010 01:56 PM
Default Labview Dashboard and Windriver Example Help sircedric4 Programming 7 02-25-2009 01:58 AM
Help with connecting default dashboard project mminutto NI LabVIEW 2 01-30-2009 03:26 PM


All times are GMT -5. The time now is 10:40 AM.

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