|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Problem receiving console output from cRIO
|
|
#3
|
|||
|
|||
|
Re: Problem receiving console output from cRIO
Quote:
|
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
Re: Problem receiving console output from cRIO
Quote:
|
|
#6
|
|||
|
|||
|
Re: Problem receiving console output from cRIO
Thanks for the suggestions. We'll look into these at our next meeting.
|
|
#7
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |