Go to Post A stack is a stack is a stack. (How Profound!) - Paul Copioli [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 26-01-2009, 16:49
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
Help Getting cRIO Feedback

Our team is planning on using C++ in Windriver but we are having some problems. We aren't to sure on how to get feedback from the cRIO to the computer. In previous years we would have a serial cable running from the robot to the computer and we would print out diagnostic messages using IFI's terminal window. This year we aren't sure how to do that. I tried turning on the console out but I don't seem to get anything when I try to connect either through the terminal window in Windriver or through hyperterminal in XP. We can get code to compile and the debugger works but we would like to be able to see the readings from sensors plugged into the cRIO on the computer. Any suggestions. Thanks in advance.
__________________
First rule of technology if it doesn't work break it more.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2009, 16:58
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,183
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Help Getting cRIO Feedback

You can use a remote console or the dashboard.

To use the console, right click on your cRIO in the remote systems pane, and then go to target tools > console. You can print to this terminal using any std out printing method (printf, std::cout, etc). If you chose this method and are using the SimpleRobot template, I would recommend setting up a timed loop (10Hz?) to handle printing. They take a while.

You can also check out the Dashboard Data example in Windriver for how to throw data back to a Dashboard, which can run in LabView or whatever else you want to cook up.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 01:08
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: Help Getting cRIO Feedback

An important note here is that some low-level debug output can't be gotten from the remote console or the dashboard--you have to have a serial connection. This is because the cRIO doesn't autmatically output anything over the network connection, so if problems exist that prevent a program from loading at boot you'll need a serial cable to see what's wrong

I believe that you can use an old IFI tehter cable plus a null modem to do this.
__________________
Get yer robot source code here!
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2009, 17:13
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
Re: Help Getting cRIO Feedback

The null modem allows me to connect via the serial cable and cout is printing out to the terminal window. Thanks for your help.
__________________
First rule of technology if it doesn't work break it more.
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
Whos getting a second CRio lenny8 FRC Control System 17 12-03-2009 15:09
Getting Packets from the cRio rfrank Programming 2 17-01-2009 22:35
cRIO feedback Maxpower57 C/C++ 2 08-01-2009 19:06
Getting feedback from Axis Camera?? *programming in C++* Straberrie Programming 3 01-01-2009 22:39
Tricks getting the CRIO to talk to laptop mac7attack FRC Control System 10 08-12-2008 09:20


All times are GMT -5. The time now is 02:50.

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