Go to Post Play FRC like Bruce Lee, not an MMA fighter. - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2012, 12:46
Peter Randall Peter Randall is offline
Director of Technology
FRC #1218 (Vulcan Robotics)
Team Role: Teacher
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Philadelphia
Posts: 37
Peter Randall will become famous soon enoughPeter Randall will become famous soon enough
Labview -44087 CAN Timeout Error

Folks,

I am trying to use CAN with the 2CAN interface and Labview. My objective is to use the quad encoder on a CIM motor to control the speed of my shooter. I am having real problems getting the CAN to work reliably. I can recreate my problem with the basic FRC framework with the code from the CAN Speed Control Encoder split between Begin and Teleop

I can configure and test the simple motor controls without error. As soon as I add a “sophisticated” control, either the CAN PID using a quad encoder or even the 4 motor drive, I start to get -44087 errors.

ERROR <Code>-44087 occurred at NetComm_CAN_Receive.vi:47
FRC: JaguarCANDriver timed out waiting to receive a response from a Jaguar

I have tried to isolate the offending code and it is elusive. I have replaced the following:
All new Black Jags
Updated firmware
Swapped out the CAN cables and terminating resistor
Tried both RS232 and 2CAN with same results
I have re-imaged the cRIO with the correct CAN Driver Plugin
Swapped out quad encoders
If I run deployed compiled code it runs more cleanly than interactive code

When I run the sample CAN Speed Control Encoder and put a wave chart on the Get Status Speed after the Set Output, I get intermittent breaks in the RPM curve that correspond to a physical stuttering of the motor. They also seem to be tied to the Time Out error on the driver station

If I whip saw the desired speed (something I would generally avoid), I hear a click and then the Jag refuses to respond. It is not the fuse, but appears to be in the Jag. If I reboot, it comes back on line, but there is no other way to restart the Jag.

Any thoughts or suggestions would be appreciated?

Thanks
__________________
Peter Randall
Chairman, Department of Engineering & Robotics
Springside Chestnut Hill Academy
TEAM 1218
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2012, 08:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Labview -44087 CAN Timeout Error

Quote:
Originally Posted by Peter Randall View Post
If I whip saw the desired speed (something I would generally avoid), I hear a click and then the Jag refuses to respond. It is not the fuse, but appears to be in the Jag. If I reboot, it comes back on line, but there is no other way to restart the Jag.
When you updated the Jaguar firmware, which version did you use? The very latest change was to let them recover from such error conditions on their own without requiring a power cycle.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2012, 08:44
Peter Randall Peter Randall is offline
Director of Technology
FRC #1218 (Vulcan Robotics)
Team Role: Teacher
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Philadelphia
Posts: 37
Peter Randall will become famous soon enoughPeter Randall will become famous soon enough
Re: Labview -44087 CAN Timeout Error

I am using firmware version 101 with the 2CAN. Thoughts?

PGR
__________________
Peter Randall
Chairman, Department of Engineering & Robotics
Springside Chestnut Hill Academy
TEAM 1218
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2012, 03:42
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: Labview -44087 CAN Timeout Error

Make sure you are not driving any Jags that are not on the Bus. Also have you been successful when only one Jaguar is present on the bus? When doing so make sure the above condition is met. (only communication to the one Jag).

That error can also be caused by poor cabling or termination.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #5   Spotlight this post!  
Unread 05-03-2013, 19:50
darrellt darrellt is offline
Registered User
FRC #2635
 
Join Date: Oct 2009
Location: Lake Oswego, Oregon
Posts: 7
darrellt is an unknown quantity at this point
Re: Labview -44087 CAN Timeout Error

Did you ever resolve this issue?
Reply With Quote
Reply


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


All times are GMT -5. The time now is 03:54.

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