Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Labveiw Issue (http://www.chiefdelphi.com/forums/showthread.php?t=102709)

chall3613 13-02-2012 13:31

Labveiw Issue
 
2 Attachment(s)
I tried to hook up the 4 jaguars for the wheels and it doesnt work I dont know why. They other 2 jaguars for the Wheels and belts are not plugged in. We havent wired them up yet.

When hooked up, the jaguars blink. They aren't a steady color.

I believe this is what it says on the diagnostics on the driver station:
error -44007 occurred at wpi_motorcontrolrefnum registry get.vi>>teleop.vi>>robot main.

Joe Ross 13-02-2012 14:07

Re: Labveiw Issue
 
In your begin, you appear to be missing the refnum name going into your refnum set for your robot drive.

chall3613 13-02-2012 14:42

Re: Labveiw Issue
 
Oh! I am not good at the refnum names. I had the same issue before with something else. Thank you.

chall3613 13-02-2012 15:59

Re: Labveiw Issue
 
ERROR <Code> -44007 occurred at WPI_RobotDriveRefNum Registry Get.vi>>Disabled.vi>>Robot Main.vi
<time>09:37:42 02/14/2012
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.


I'm still getting this error. We pluged the 4 jaguar motors in and as soon as I hit the enable button adjacent motors moved for a second, but then didn't do anything when I moved the joysticks.

Mark McLeod 13-02-2012 20:56

Re: Labveiw Issue
 
The names you called your motors don't match (exactly) in Begin and in Teleop.
Did you call the "Left and Right Motors" in Begin?

chall3613 14-02-2012 00:03

Re: Labveiw Issue
 
I changed that later, realizing the mistake but it still didn't work. The last post was what the driving station said afterwards.

Joe Ross 14-02-2012 00:17

Re: Labveiw Issue
 
Quote:

Originally Posted by chall3613 (Post 1125815)
ERROR <Code> -44007 occurred at WPI_RobotDriveRefNum Registry Get.vi>>Disabled.vi>>Robot Main.vi
<time>09:37:42 02/14/2012
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

(emphasis added)

Notice that this is a different error then the first one. This says there's now a RefNum issue in disabled.

Since things still aren't working, it would be helpful if you posted your modified code. Do you have anything else in telop?

Mark McLeod 14-02-2012 08:32

Re: Labveiw Issue
 
The error in Disabled.vi means you changed the name of your main drive motors and didn't notice that the old name is used in Disabled.vi.

chall3613 14-02-2012 20:40

Re: Labveiw Issue
 
2 Attachment(s)
I changed the begin.vi and teleop.vi motor names and made sure disable.vi had the same name (I copied and pasted). I am no longer recieveing that message in the diagnostics only saying the camera isnt hooked up (which we arent going to use this year). But, they are still not working. I also have all 6 hooked up to the jaguars that are connected to the correct PWM.

Now that I think about it, could thoes wires be incorrect? How do we know they are facing the correct way?

(I hooked it up, myself, so I would know what you are talking about. We are using the ones with brown on one side and orange on the other)

Thank you for all your responces.

Mark McLeod 14-02-2012 21:16

Re: Labveiw Issue
 
The robot is Enabled (it must be for the Jags to get a signal)?

An easy test for the PWM cable is to just reverse one end. If you had it backwards before, then the Jag light would go solid.

chall3613 15-02-2012 11:26

Re: Labveiw Issue
 
I tried moving the wires around and i never got a solid light. Am i putting them on the wrong prongs? It says PWM out. Sig Pwr (-) The brown is at the SIG and the orange is in the PWR. They are on the 3 prong one, directly next to the double prong set.

mtnteam 15-02-2012 11:49

Re: Labveiw Issue
 
Our team has a four motor drive, but were only using two PWM cables. Were using Y splitters for the left and right motors. You could try doing that and change the four motor to like Arcade Drive or Tank Drive. Basically back to the default.

Mark McLeod 15-02-2012 11:54

Re: Labveiw Issue
 
I usually make the Brown wire the power (closest to standard black for ground).
On the Digital Sidecar the ground wire for PWMs is to the outside.

On the Jaguar the ground wire goes to the inside (it's marked too).

Even if you got one end wrong, trying the other end in both possible orientations would make it matchup eventually.

Here's a list:
  • PWMs opened (only once each) in Begin.vi
  • Code downloaded permanently to the robot (Build & Run as startup)
  • Driver Station running and in communication with robot
  • Robot Code light on DS also green
  • Robot Enabled at the Driver Station
  • 3 Power lights on Digital Sidecar all bright green
  • Digital module in slot 2 of the cRIO
  • DB37 cable between the cRIO Digital module and the Sidecar tested for miswiring (forms a loop when plugged into itself, NOT a mobius strip)
  • PWM cable ground on Digital sidecar (outside pin) maps to Jaguar ground (inside pin)
  • Jaguar powered (the blinking light confirms this)
Try downloading the Default code just while you're working to get the Jaguars communication. Ignore the control changes for now.

chall3613 15-02-2012 16:20

Re: Labveiw Issue
 
Thank you. The Y-Splitter worked. Now the only issue is, is that one is still not working. The belt. I had to switch it to a Victor because of an issue with a differnt jaguar and I changed it in the programming, but, even when it was a working jaguar, it wouldnt work. The wheels work, but not the belt. I dont see why it wouldn't when everthing thing else works. I even played with the PWM wires and the light never turned solid.


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

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