Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   CAN jags not working (http://www.chiefdelphi.com/forums/showthread.php?t=100630)

blackflame2996 19-01-2012 11:44

CAN jags not working
 
We are having a strange problem with our CAN Jags. When we enumerate the CAN bus in LabVIEW, all of the Jags register correctly. However, when we tell it to give voltage to a motor, it returns an error that means that the CAN device could not be found. We matched the open motor.vi to the CAN Enum readings, but it didn't work. We know that all of out jags work correctly, as the Ti software was able to drive the motors in a test. Any Suggestions?

Alex698 19-01-2012 11:48

Re: CAN jags not working
 
I had similar issues and it boiled down to not having the driver station enabling the cRIO, even while using the CAN example. If you are already enabling the cRIO, are you using 2CAN or serial? More information will be required, maybe a photo of the test setup?

blackflame2996 19-01-2012 11:58

Re: CAN jags not working
 
we are using serial.

Alex698 19-01-2012 12:12

Re: CAN jags not working
 
How long are your CAN cables?
Are you using a terminator on the last jaguar?
What device IDs are you using?
How fast is the loop for CAN? (remember serial is like 1/10th of the CAN bandwidth)
What firmware is on the cRIO and the jaguars?
You can Enum without being enabled, that's why I asked before.

blackflame2996 19-01-2012 12:55

Re: CAN jags not working
 
Quote:

Originally Posted by Alex698 (Post 1109036)
How long are your CAN cables?
Are you using a terminator on the last jaguar?
What device IDs are you using?
How fast is the loop for CAN? (remember serial is like 1/10th of the CAN bandwidth)
What firmware is on the cRIO and the jaguars?
You can Enum without being enabled, that's why I asked before.

all but the first are less than 6 in
yes
3 and 11
I don't know
latest firmware
yes, teleop is enabled

Alex698 19-01-2012 17:06

Re: CAN jags not working
 
OK, so just to verify:
You have something close to this?

Default 2012 robot project
Begin.vi:
Open2Motor VI -> CAN Jaguar -> Replace PWM drop-down with device IDs -> MotorRef

Teleop.vi:
MotorRef -> Loop[Motor control] -> CloseMotorRef

It may also help to try one jaguar, at a time.

blackflame2996 19-01-2012 17:13

Re: CAN jags not working
 
Yeah, that's what we have. by the way, i forgot to mention that when we try to move the motor, the jag's light blinks quicker.

Alex698 19-01-2012 17:35

Re: CAN jags not working
 
Quote:

Originally Posted by blackflame2996 (Post 1109195)
Yeah, that's what we have. by the way, i forgot to mention that when we try to move the motor, the jag's light blinks quicker.

What color does the jaguar blink?
If red or green, check to see if there is voltage on the M+ and M- outputs, if not the internal jaguar hardware is bad. The LED will blink because the CAN and PWM interface is isolated from normal jaguar functions in-case of a failure it can keep communication alive.

slijin 19-01-2012 17:56

Re: CAN jags not working
 
Quote:

Originally Posted by Alex698 (Post 1109205)
What color does the jaguar blink?
If red or green, check to see if there is voltage on the M+ and M- outputs, if not the internal jaguar hardware is bad. The LED will blink because the CAN and PWM interface is isolated from normal jaguar functions in-case of a failure it can keep communication alive.

Rapidly flashing yellow indicates that the CAN ID is invalid, not that hardware is damaged. Refer to Table 2-2 here for more details.

Have you correctly configured and updated the Jaguars with the BDC-COMM interface?

blackflame2996 19-01-2012 19:59

Re: CAN jags not working
 
1 Attachment(s)
Here is a snapshot of the VI that we built to run a motor. the Jags stopped changing the rate of blinking, and are now not showing any indication of being connected outside of Enum.http://www.chiefdelphi.com/forums/at...d=13270212 94

blackflame2996 20-01-2012 00:26

Re: CAN jags not working
 
We are going to use PWM for now, if anyone sees a problem in the test code, please alert me.

mdonahue 23-01-2012 09:59

Re: CAN jags not working
 
Thank you everybody for the advice. The problem turned out to be a faulty cRio. We received our new cRios on Friday and everything is working fine.


All times are GMT -5. The time now is 15:23.

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