Quote:
Originally Posted by martin417
... The only time we have ever had the scrolling CAN error is when the CrIo is booted with one of the limit switches depressed...
|
I've read several comments about scrolling messages in the diagnostic tab when a CAN timeout occurs, but I don't think I've ever seen them in our system.
During development we write to System.err and in competition to the DS display with code like this:
Code:
try {
driveMotor.setX(something);
} catch (CANTimeoutException e) {
DSmessage.getInstance().println(Line.kUser4, 1, "CAN timeout on drive");
}
...
DSmessage.getInstance().updateLCD();
Since there seems to be a built in logging facility in the diagnostic tab I'd prefer that they appeared there. Also the FTA(A) is more likely to check that location if problems occur on the field.
Can anyone share a Java snippet that sends CAN timeouts to the diagnostic tab?