|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: sending info to a console
Hey guys, first post here.
We are also having trouble with using DriverStationLCD. The code that I am attempting to use is as follows: Code:
textOut.println(DriverStationLCD.Line.kUser3, 2, message); textOut.updateLCD(); This code is executed periodically. The problem is that after it executes a few times the DS stops responding and must be restarted to regain functionality. This does not happen if I remove those two lines, so I'm fairly sure that they are the cause. Has anyone gotten this to work? Any help is greatly appreciated. |
|
#2
|
|||
|
|||
|
Re: sending info to a console
Nobody knows anything that could help?
|
|
#3
|
|||
|
|||
|
Re: sending info to a console
Where are they called from? How quickly are they called? Does rebooting the robot affect anything, or is restarting the driver station application the only thing that makes it work again?
|
|
#4
|
|||
|
|||
|
Re: sending info to a console
I just got in here a little while ago... It turns out that the problem was not related to the calls to DriverStationLCD, removing those lines only made the error occur much later. All is well now. Thanks.
|
|
#5
|
|||
|
|||
|
Re: sending info to a console
Quote:
Thanks -Joe |
|
#6
|
|||
|
|||
|
Re: sending info to a console
Quote:
I did not see the exceptions because I was using a development machine separate from the DS. Fixing that by properly sizing the array was the solution (i'm ashamed that I missed this)I do not know why commenting the two lines with DriverStationLCD seemed to delay the problem. It may have been a coincidence... I apologize for the confusion. DriverStationLCD appears to work as intended and was not the cause of my trouble. Thank you for your responses. Regards, Bill |
|
#7
|
|||
|
|||
|
Re: sending info to a console
Quote:
Quote:
Make sure you aren't running this code CONSTANTLY. Sending new messages and running the updateLCD() method too fast will run the cRIO out of memory, and my guess is because it backlogs all the packets and fills up the memory. You'll get an OutOfMemoryError, and will have to reboot the cRIO to do anything else (like load new code). (Found this out the hard way on WPILibJ version 1.0.0a, and my guess is it happens with the latest version too...) |
|
#8
|
|||
|
|||
|
Re: sending info to a console
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending data from RC to OI | Nathan | Programming | 7 | 03-02-2008 22:32 |
| sending extra information to the OI | iwdu15 | Programming | 2 | 06-02-2007 20:05 |
| Sending variables to Auto Mode | Adrien | Programming | 4 | 19-02-2006 21:51 |
| Sending data back to the OI | DanDon | Programming | 13 | 26-01-2006 15:17 |
| Sending Data | Raven_Writer | Programming | 8 | 11-09-2003 16:28 |