Go to Post FIRST really truly is not about the robots, is it? - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 27-01-2009, 23:40
augzodia augzodia is offline
Registered User
FRC #1520
 
Join Date: Jan 2009
Location: New York, NY
Posts: 3
augzodia is an unknown quantity at this point
Speed controllers not responding

I'm new with labview as well as the cRIO, so bear with me.

The Jaguar speed controllers we have hooked up to our robot don't seem to be responding to our labview code. I've used both the default code installed with the FRC Labview disks as well as the tutorial up on national instruments, but nothing seems to work.

I've put probe points and indicators all over the place, hoping to get some insight as to what's going wrong, but I haven't come across anything helpful.

The indicator shows the speed being set to 1 and gets the speed as 1, but the speed controllers never seem to get that memo. The joysticks and everything attached to the driver station are definitely talking to the computer, but everything on the robot ignores what's going on.


Any suggestions?

Could this be an hardware problem instead of software?

Thanks,
-August

EDIT: The spike relays don't seem to be responding either, but I'm not quite sure about the program we have for that anyway.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2009, 02:11
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: Speed controllers not responding

What do you have the Jaguar's PWM input connected to? In which direction are the cables plugged in?

Does the Driver Station display show that the robot is Enabled? What is the battery voltage as shown on the DS?

What is the state of the Robot Signal Light (or the green LED next to the RLS pins on the Digital Sidecar connected to the Digital I/O module plugged into slot 4 of the cRIO)? How about the three LEDs on the Digital Sidecar showing the presence of +12, +5, and +6 volts?
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2009, 02:18
augzodia augzodia is offline
Registered User
FRC #1520
 
Join Date: Jan 2009
Location: New York, NY
Posts: 3
augzodia is an unknown quantity at this point
Re: Speed controllers not responding

We have the pwms connected to the pwm out 1 through 4

cables plugged in the way it says on the plastic thing:
-,+,sig -> black, red, white

Voltage was 11.6 or somewhere around there

Definitely enabled.


This is all from memory, I'll have to answer the others when I get back to the robot
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2009, 08:12
darist darist is offline
Registered User
AKA: David Aristizabal
no team
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Newark, NJ
Posts: 36
darist is an unknown quantity at this point
Re: Speed controllers not responding

Maybe the problem is not hardware, or software... maybe the problem is that you are not getting enough sleep. You'd be surprised how clear things get after a good night of sleep

Some other things that can help us debug the issue:
- What is the status of the light on the Jaguar? I think it goes like this:
Blinking yellow: Jaguar is not getting a signal (robot disabled, or PWM cable not connected correctly)
Solid yellow: Jaguar has good signal signal, telling it not to move. e.g.: when the joystick is right in the center. I think this corresponds to a value of 0 (in the LabVIEW world).
Solid green: Jaguar has a full-forward signal (I think this is a 1 in LabVIEW).
Solid red: Jaguar has a full-reverse signal (I think this is -1 in LabVIEW).
Blinking green/red: Jaguar has a signal to go fwr/reverse (but not full speed, eg: 0.7 or -0.2).

-- Note: I say "I think" simply because I'm not 100% sure. Please check the Jaguar documentation (in usfirst.org website, or 2009 controller manual for exact detail). Anyone else reading that sees something wrong, please make appropriate corrections.

- You mentioned that you were able to see the voltage as 11.6V; that would mean that your connection between the DS and the cRIO should be OK. But, just double-check that your team numbers (and thus IP addresses) are all set up correctly.

- Another thing you can do is start a new FRC project, use the "Basic Framework" and don't touch the code, just hit the Run button (arrow at the top of the screen). That will download the code to the cRIO and start running it. I think the Basic Framework is set up for arcade drive with Joystick on USB1 (DS), driving PWM1 and PWM2 on the digital sidecar. Try this and keep an eye on the the Jaguars connected to PWM1 and PWM2 as you move the joystick.

Feel free to add probes and/or indicators in the relevant signals of the block diagram to see what's going on with your joystick values.

- Oh, one more thing, is your digital sidecar hooked up to the correct Digital I/O module on the cRIO? There are two Digital IO modules on the cRIO, I think they are on slots 4 and 6. Make sure you have it hooked up to slot 4.

- One last thing that I can think of at this point: do you have little jumpers on the two pins above the three-pin PWM connector on the sidecar? You should NOT put a jumper on those two pins if you are connecting the corresponding PWM signal to the Jaguar/Victor, you should only use a jumper if connecting that PWM directly to a Servo motor.

Hope this stuff helps. Let us know how it goes!

David A.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2009, 01:20
augzodia augzodia is offline
Registered User
FRC #1520
 
Join Date: Jan 2009
Location: New York, NY
Posts: 3
augzodia is an unknown quantity at this point
Re: Speed controllers not responding

Thanks for the help.

Everything started working inexplicably when I recharged the battery, updated labview and reformatted the cRIO with v11.

Not sure which of those was the trick, but it worked.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motors not responding to joysticks indubitably FRC Control System 6 08-01-2009 16:14
Camera Not Responding To Code itzrobz Programming 2 05-02-2006 12:47
grab frame not responding ahmed LabView and Data Acquisition 4 28-01-2006 10:49
CMUcam default code not responding Kyveck Programming 29 26-01-2006 16:25
STAMP II not responding to computer archiver 2000 4 23-06-2002 22:24


All times are GMT -5. The time now is 18:35.

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