Go to Post will.i.am should be evangelizing FIRST, not vise-versa. - basicxman [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 10-01-2009, 13:36
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Exclamation Need Help With 2009 Control System

Hello everyone, I'm having troubles running a motor control example that is provided by LabView.

Everyone seems to be connected properly, the lights on the power distribution block, speed controller, cRIO and the digital sidecar are on.

The light on the speed controller seems to be flashing orange, so that means that the speed controller is not getting any information (?)

I have formatted the driver station and the cRIO successfully with update 2.

The program downloaded successfully also. The program that I downloaded is Motor Control Example. When I run the program and change the speed, the lights on the speed controller does not change. I have tried several things like switching from autonomous to teleoperated and rebooting everything.

I uploaded some pictures of the current control system and how everything is connected.

Does anyone have any idea on how to solve this problem?









Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2009, 15:42
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Need Help With 2009 Control System

A couple of quick observations.

1) please fix your wiring - red wires for every PD output regardless of + vs. - and two black battery cables into the PD? You're asking for trouble..
2) your DS clearly states "disabled", you need to use the toggle switch
3) why are the safe mode and IP reset switches set on your cRIO?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2009, 16:30
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by Russ Beavis View Post
A couple of quick observations.

1) please fix your wiring - red wires for every PD output regardless of + vs. - and two black battery cables into the PD? You're asking for trouble..
2) your DS clearly states "disabled", you need to use the toggle switch
3) why are the safe mode and IP reset switches set on your cRIO?
Thank you for your response.

1) The wiring is only set up like this because the KoP only provided red wires. We are planning on going to Home Depot to buy black wires. Other than that, the wire color shouldn't matter.
2) We actually try with the dongle switch on and still did not work.
3) The safe mode and IP reset switches are set on because when we were reimaging the cRIO, it said to turn the IP reset and safe mode to ON. Can that be the problem?

Edit:
The cRIO, driver station and PC seems to be getting information since we did the Ping test VI.

Last edited by professorX : 10-01-2009 at 16:31. Reason: Added more information
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2009, 17:35
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Need Help With 2009 Control System

Is the PWM wire to the victor plugged in correctly? I can't tell from the photos. Not only is there an orientation, but these are tricky to get actually connected; it takes a light touch.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2009, 18:03
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by Don Rotolo View Post
Is the PWM wire to the victor plugged in correctly? I can't tell from the photos. Not only is there an orientation, but these are tricky to get actually connected; it takes a light touch.
The PWM wire is correctly plugged into the speed controller.

I believe that the problem is with the driver station or the cRIO because when I test the Joystick input VI, the joystick values does not changes when I move the joystick.
I connected the joystick into the usb port before I turn it on.

On the driver station it displays:
Team: 1660
Mode: Teleoperated
System: Enabled
Battery: No Comms
DS Rev: 2008-10-29A

Does there need to be a jumper connected to any of the pins on the right side of the driver station?
Does it matter what kind of ethernet cable I use if its not the orangle cable? Currently I have the blue cable connected from ethernet port 2 of the driver station to the PC, and ethernet port 1 of the driver station to port 1 of the cRIO with the grey cable.
Can the problem be that the safe mode and the IP reset pins are set on the cRIO?

Last edited by professorX : 10-01-2009 at 18:12.
Reply With Quote
  #6   Spotlight this post!  
Unread 10-01-2009, 21:06
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: Need Help With 2009 Control System

Quote:
Originally Posted by professorX View Post
(1) Does there need to be a jumper connected to any of the pins on the right side of the driver station?
(2) Does it matter what kind of ethernet cable I use if its not the orangle cable? Currently I have the blue cable connected from ethernet port 2 of the driver station to the PC, and ethernet port 1 of the driver station to port 1 of the cRIO with the grey cable.
(3)Can the problem be that the safe mode and the IP reset pins are set on the cRIO?
(1) No. Thats where you plug in i/o like switches.
(2) Sounds good...
(3) No clue - my team didn't toggle any of those when we set it up.

Are you certain the digital i/o module is in the right slot on the crio? I think the default is slot 4. If not, it looks like it would be 6.

The battery display on the ds is saying no comms because the analog breakout in slot one isn't wired up.


The light on the controller should be solid if its enabled and on autonomous.

Are the two lights next to ethernet port one on the crio blinking rapidly, or are they solid?

btw it might be helpful to see a photo of the top of the crio - what the breakouts look like etc.

-jonathan
rookie team 2733 the Pigmice
Reply With Quote
  #7   Spotlight this post!  
Unread 10-01-2009, 21:37
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by s0crates View Post
(1) No. Thats where you plug in i/o like switches.
(2) Sounds good...
(3) No clue - my team didn't toggle any of those when we set it up.

Are you certain the digital i/o module is in the right slot on the crio? I think the default is slot 4. If not, it looks like it would be 6.

The battery display on the ds is saying no comms because the analog breakout in slot one isn't wired up.


The light on the controller should be solid if its enabled and on autonomous.

Are the two lights next to ethernet port one on the crio blinking rapidly, or are they solid?


btw it might be helpful to see a photo of the top of the crio - what the breakouts look like etc.

-jonathan
rookie team 2733 the Pigmice
Thank you for your help.

I'm certain that the digital module is in the 4th slot of the cRIO.

Is it mandatory to wire up the analog breakout in slot one in order for this work?

What light on the controller (driver station(?)) would be solid?

The two lights next to Ethernet port one on the cRIO are blinking rapidly.

When I was imaging the cRIO it said to set safe mode (because the firmware on the cRIO was corrupted?) and IP reset to on. Afterward, it said it image the cRIO successfully.
Reply With Quote
  #8   Spotlight this post!  
Unread 10-01-2009, 22:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,799
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Need Help With 2009 Control System

You must turn off the cRIO "safe mode" and "IP reset" switches.
The only switch that you might want on is the "console out" switch.

On the DS, "No Comms" means the DS and cRIO are not communicating at all, so your program can't run. That is probably due to the IP reset having reset the cRIO IP to it's default of 10.0.0.2
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 10-01-2009, 22:51
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by Mark McLeod View Post
You must turn off the cRIO "safe mode" and "IP reset" switches.
The only switch that you might want on is the "console out" switch.

On the DS, "No Comms" means the DS and cRIO are not communicating at all, so your program can't run. That is probably due to the IP reset having reset the cRIO IP to it's default of 10.0.0.2
When I turn off the Safe Mode and IP reset the status light starts blinking yellow.
When this occur I reflash the cRIO and it says to turn safe mode on and the IP reset.
Reply With Quote
  #10   Spotlight this post!  
Unread 10-01-2009, 23:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,799
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Need Help With 2009 Control System

I'd try flashing the cRIO from a different computer if you have one, even a desktop.
I've seen quite a few school laptops that had a conflict flashing the cRIO, where my laptop would work fine. Most of them failed at a point where the cRIO briefly uses an IP of 0.0.0.0

If you get a chance would you post a screen snapshot of the error message telling you to use IP Reset?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #11   Spotlight this post!  
Unread 10-01-2009, 23:30
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by Mark McLeod View Post
I'd try flashing the cRIO from a different computer if you have one, even a desktop.
I've seen quite a few school laptops that had a conflict flashing the cRIO, where my laptop would work fine. Most of them failed at a point where the cRIO briefly uses an IP of 0.0.0.0

If you get a chance would you post a screen snapshot of the error message telling you to use IP Reset?
I have tried with my personal laptop but the same problem occurs.
I will try again with a different computer and I'm going to post an image of the error on Monday since I'm not in school anymore.

Thank you for your help and everyone else. I will tell you on Monday on how it goes.

Last edited by professorX : 10-01-2009 at 23:42.
Reply With Quote
  #12   Spotlight this post!  
Unread 12-01-2009, 13:06
rogeringalsbe rogeringalsbe is offline
Registered User
FRC #3003
 
Join Date: Jan 2009
Location: Canandaigua
Posts: 5
rogeringalsbe is an unknown quantity at this point
Re: Need Help With 2009 Control System

Quote:
Originally Posted by professorX View Post
Thank you for your help.

I'm certain that the digital module is in the 4th slot of the cRIO.

Is it mandatory to wire up the analog breakout in slot one in order for this work?

What light on the controller (driver station(?)) would be solid?

The two lights next to Ethernet port one on the cRIO are blinking rapidly.

When I was imaging the cRIO it said to set safe mode (because the firmware on the cRIO was corrupted?) and IP reset to on. Afterward, it said it image the cRIO successfully.

As far as the analog breakout goes, it is mandatory to wire that up. The analog breakout connects to the NI 9201 module in slot 1 of the cRIO. You have to connect the analog breakout to 12V power on the Power Distribution Board. Then you install a jumper on the outer two pins on the analog breakout so that the driver station will see battery voltage. The details are in Chapter 2 of the Control System manual section 2.2.3.2 step 3 (page 4). Hopefully this helps.
Reply With Quote
  #13   Spotlight this post!  
Unread 13-01-2009, 07:07
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Need Help With 2009 Control System

It seems that it's still not working.

I will try today to connect the cRIO directly to the computer with an orange cross cable and set the laptop IP address to 10.0.0.6 instead of 10.16.60.6. Maybe that will work?

The part that I don't understand is how can I reimage the cRIO through the driver station (laptop connected to driver station, driver station connected to cRIO), if the driver station can't communicate with the cRIO.
Reply With Quote
  #14   Spotlight this post!  
Unread 13-01-2009, 07:32
rogeringalsbe rogeringalsbe is offline
Registered User
FRC #3003
 
Join Date: Jan 2009
Location: Canandaigua
Posts: 5
rogeringalsbe is an unknown quantity at this point
Re: Need Help With 2009 Control System

In the forum someone included a link to a handy ping utility. We used this to verify our cRIO's IP address during some of our troubleshooting efforts. Perhaps it would help you. I will look for the link again and if I find it I will post it.
Reply With Quote
  #15   Spotlight this post!  
Unread 13-01-2009, 10:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,799
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Need Help With 2009 Control System

If you fire up the FRC cRIO Imaging Tool again it should be able to find the cRIO and tell you what it's IP address is currently set to. The reason you can reimage the cRIO with a mixed up IP address is that the Imaging Tool
will look for the cRIO at several common potential addresses and display the IP address at the top if it locates the cRIO.
You don't have to reimage the cRIO with the tool, just start it up to see where the cRIO is.

The pinger utility rogeringalsbe refered to is posted in the whitepaper section at: http://www.chiefdelphi.com/media/papers/2177


If you're still having trouble by this weekend is there any chance you can get to the workshop at Poly Tech in Brooklyn on Saturday with your system? We can work on it there.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-01-2009 at 10:12.
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
Top Ten Things NOT to do with the 2009 FRC Control System Vince FRC Control System 9 16-12-2008 17:08
2009 Control System wedellm FRC Control System 11 23-11-2008 22:38
Need help with PWM 1-2ms pulse control Generalx5 Programming 27 06-05-2008 00:08
2009 Control System Shinigami2057 FRC Game Design 86 19-05-2007 02:40
We need help with joystick control Team ICE #1611 Control System 4 24-01-2005 15:57


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

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