Go to Post The magic in a competition isn't finding creative ways to make an opponent lose, but finding even more creative ways for you to win. - galewind [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 17-01-2009, 14:47
Arborama Arborama is offline
Registered User
FRC #0578
 
Join Date: Jan 2009
Location: Fairport, NY
Posts: 2
Arborama is an unknown quantity at this point
Problem receiving console output from cRIO

We are having much difficulty in receiving console output from the robot. We attempted to use the LabView dashboard; the example code using the SimpleRobot class ran fine and we cold see the robot's output. We then tried to use the code from the LabView example in our code, which uses IterativeRobot. When we tried to run this, we were unable to view the output from our robot when dashboard.Printf(""); is invoked.

Our next method we used was the serial interface - we hooked up the serial cable (tether from last year) to a USB dongle (our laptops don't have serial ports) and the cRIO. We configured HyperTerminal as per the instructions in the documentation (5.4.1.2 I think), but we don't receive any data at all. We have made sure the CONSOLE OUT DIP switch is on, and we power cycled after switching it, but still nothing. We are not sure what a "null modem" cable is, and we don't know if this is the main issue in this case (others have mentioned an adapter?) Our code just has a printf("Hello World!"); in the auton periodic function, which should flood the console with greetings - no such luck.

We followed the instructions in the document "Robot Programming with the WPI Robotics library," and tried connecting to a remote target. We receive an error message with the number, "196709."

We have already re-imaged to the latest firmware. Everything else we want to do with the robot is working fine; all we are trying to do is receive information from our robot through the console. Has anybody encountered similar problems and found ways around them, or has anybody had luck with a certain method of communicating with the robot?

Sorry for the long post, and thank you in advance for any help.
  #2   Spotlight this post!  
Unread 17-01-2009, 15:20
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Problem receiving console output from cRIO

Quote:
Originally Posted by Arborama View Post
We are not sure what a "null modem" cable is
http://www.loop-back.com/null-mod.html
  #3   Spotlight this post!  
Unread 17-01-2009, 17:00
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Problem receiving console output from cRIO

Quote:
Originally Posted by Arborama View Post
We are not sure what a "null modem" cable is, and we don't know if this is the main issue in this case (others have mentioned an adapter?) Our code just has a printf("Hello World!"); in the auton periodic function, which should flood the console with greetings - no such luck.
A null-modem cable is a serial cable with the receive and transmit wires crossed. You will not be able to get serial output from the cRIO without it. You can buy an adapter at RadioShack for $10 (way overpriced...). If you happen to have one of the old LEGO Mindstorms IR tower serial cables, those happen to be null-modem cables as well.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
  #4   Spotlight this post!  
Unread 17-01-2009, 17:02
neutrino15's Avatar
neutrino15 neutrino15 is offline
plɹoʍ ollǝɥ
AKA: Jordan Perr
FRC #0694 (Stuypulse)
 
Join Date: Feb 2007
Rookie Year: 2007
Location: New York City
Posts: 162
neutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really nice
Re: Problem receiving console output from cRIO

Not sure what that error means exactly, but we have had success right clicking on the "Remote Target" of the CRIO and selecting "Target Console" from the "Target Tools" menu.

This, of course, assumes that you have a properly configured Remote Target.

Also, we have just been using plain old printf();



Hope that helps
  #5   Spotlight this post!  
Unread 17-01-2009, 21:31
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: Problem receiving console output from cRIO

Quote:
When we tried to run this, we were unable to view the output from our robot when dashboard.Printf(""); is invoked.
As I recall, you can't just use the printf, you also have to "finalize" the data before it is sent
__________________
Get yer robot source code here!
  #6   Spotlight this post!  
Unread 17-01-2009, 22:58
Arborama Arborama is offline
Registered User
FRC #0578
 
Join Date: Jan 2009
Location: Fairport, NY
Posts: 2
Arborama is an unknown quantity at this point
Re: Problem receiving console output from cRIO

Thanks for the suggestions. We'll look into these at our next meeting.
  #7   Spotlight this post!  
Unread 17-01-2009, 23:31
elstaqub elstaqub is offline
Purported Programming Mentor
AKA: Ed Staub
FRC #0131 (C.H.A.O.S.)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Manchester NH
Posts: 5
elstaqub is an unknown quantity at this point
Re: Problem receiving console output from cRIO

I know it's been said already, but to confirm - you need a null modem cable or adapter. Your wires are crossed - there are wires in the cable for sending and receiving in either direction, and the PC and CRIO disagree about who should use which.

The kernel code in the CRIO puts out a lot of messages before your code even starts, so you'll know whether it's working regardless of what's in your code.
  #8   Spotlight this post!  
Unread 15-02-2009, 03:30
nekng's Avatar
nekng nekng is offline
Former 1836 Captain
AKA: Nate
FRC #1836 (MilkenKnights)
Team Role: Alumni
 
Join Date: Aug 2006
Rookie Year: 2007
Location: Los Angeles
Posts: 43
nekng is on a distinguished road
Re: Problem receiving console output from cRIO

I'm curious as to what error that specific one is. We are getting it too. I can't find a list of errors anywhere. I am worried it might have to do with whatever is causing our ultrasonic sensors to not work.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRIO Problem Pneumaticsman NI LabVIEW 8 10-01-2009 11:59
cRIO plugin problem gabrielse National Instruments LabVIEW and Data Acquisition 3 18-12-2008 11:30
cRIO/Driver Station output to laptop smcmahon FRC Control System 3 14-12-2008 13:51
Receiving info from OI to select autonomous mode Mr. Lim Programming 21 17-02-2005 00:56
Receiving missing parts from KOP shyra1353 Kit & Additional Hardware 7 30-01-2004 00:58


All times are GMT -5. The time now is 21: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