Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Problem receiving console output from cRIO (http://www.chiefdelphi.com/forums/showthread.php?t=72287)

Arborama 17-01-2009 14:47

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.

gvarndell 17-01-2009 15:20

Re: Problem receiving console output from cRIO
 
Quote:

Originally Posted by Arborama (Post 802515)
We are not sure what a "null modem" cable is

http://www.loop-back.com/null-mod.html

StevenB 17-01-2009 17:00

Re: Problem receiving console output from cRIO
 
Quote:

Originally Posted by Arborama (Post 802515)
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.

neutrino15 17-01-2009 17:02

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 :confused:

nathanww 17-01-2009 21:31

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

Arborama 17-01-2009 22:58

Re: Problem receiving console output from cRIO
 
Thanks for the suggestions. We'll look into these at our next meeting.

elstaqub 17-01-2009 23:31

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.

nekng 15-02-2009 03:30

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.


All times are GMT -5. The time now is 13:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi