Go to Post It would be wise to consider the reasoning behind the statement rather than the statement itself. Sometimes they are right... other times their statement is incomplete... and other times they really do have no clue what they are talking about. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2010, 23:05
tanguma26 tanguma26 is offline
Registered User
FRC #3999
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Killeen
Posts: 48
tanguma26 is an unknown quantity at this point
cRio and code dont work!

I have read several threads but i am still confuse , i have done all the updates,reimage the cRio and download a program "the tank drive example" and when it downloads we get the massage that we have a code but the light on the jaguars are still blinking after we enable the robot and when we move the joysticks nothing happend. We are using the croosover cable and everything on the drive station shows that we have the joystics and the E-button conected.

Can any one help me


Thank you
  #2   Spotlight this post!  
Unread 23-01-2010, 23:31
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Exclamation Re: cRio and code dont work!

We're having the EXACT same problem! We tried a joystick input example also and cannot even get a read out for that. Can anyone please help?
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #3   Spotlight this post!  
Unread 23-01-2010, 23:44
Tom Line's Avatar
Tom Line Tom Line is online now
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: cRio and code dont work!

1. What PWM's have you plugged your jaguars into?
2. Have you checked the example to confirm they are the right ones?
3. Have you added indicators to the output in labview to check to see if your joysticks are sending the correct values? (Right click on the wire in the block diagram and click "add -> indicator".
4. Are the lights on your diagnostic tab on your driver station showing everything is good?
5. Are you getting an error code in the diagnostic window?
6. What IP address is the programming computer set to? The C-rio? The Classmate Driver Station?
7. What lights are showing on the digital side car? Does it have power?
8. Is the dashboard showing your PWM values change with the joystick?

We need far more information to even begin to help.
  #4   Spotlight this post!  
Unread 24-01-2010, 08:29
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Unhappy Re: cRio and code dont work!

Quote:
Originally Posted by rsegrest View Post
We're having the EXACT same problem! We tried a joystick input example also and cannot even get a read out for that. Can anyone please help?
Yeah - we have the exact same problem too. We can't get any readout from the joystick using the joystick input example. We've tried all the USB ports (both physically & selecting USB1-USB4). We have update the cRio/Labview/Driver Station SW. The IP address for the example is correct. We've tried 3 different types of joysticks. Tried on 2 separate computers (the new laptop & a standard PC).

When we run the driver station code it sees the joysticks and acknowledges button pushes.

We didn't have this problem last year.

One thing I thought of after the fact - we didn't have our digital side-car connected to the digital module at the time. I don't think this is a problem because we were just trying to get feedback from the joystick and not drive any motors - but who knows.

Cheers,

- Jeff
__________________
Fresh Pancreas!
  #5   Spotlight this post!  
Unread 24-01-2010, 09:55
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: cRio and code dont work!

We are having the same issue. . .

Tried with Windriver C++ Firmware image and then Simple Robot Default Code
Tried with Labview Firmware Image and then Default CRio Code
Both v19

Classmate Driver Station is updated

Left Drive Jag is plugged into PWM 1
Right Drive Jag is plugged into PWM 2

Joystick (which is a gamepad) set as Joystick 1 on Driver Station

Outputted joystick results to Driver Station User Messages using C++ and got good values

Green for Communications, Robot code, and E-stop on the Classmate driver Station

Programming Computer 10.1.71.6
Classmate Driver Station 10.1.71.5
C-Rio 10.1.71.2 (v19)

all of the lights on the digital side car are green on. The RSL light indicator goes from flashing to a more solid state when enabled

Replaced the Module for the C-Rio Tried both slot 4 (which is default) and slot 6
Replaced the Digital Side Car with a spare

Anyone have an idea?? If other people in this thread come up with a solution please post it because it seems like our problems are related. I was planning on calling NI on Monday for Troubleshooting
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #6   Spotlight this post!  
Unread 24-01-2010, 10:24
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRio and code dont work!

You may want to try setting an output on slot eight solenoid. The module has LEDs to indicate state, and it is good for determining if it is a SW watchdog or a wiring issue.

If an example doesn't turn on the LED, it is either a configuration issue with the SW or a watchdog issue. The diagnostics tab will list error codes and messages showing watchdog transitions.

If the LED does work, then the problem is most likely with wiring to or from the digital breakout boards.

Greg McKaskle
  #7   Spotlight this post!  
Unread 24-01-2010, 11:01
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: cRio and code dont work!

We did hook up the solenoid in slot 8 and it is switching output 1 fine using button 2 on joystick.
I will triple check wiring tomorrow but don't think that is an issue with right lights on the Digital Side Car
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #8   Spotlight this post!  
Unread 24-01-2010, 12:10
Tom Line's Avatar
Tom Line Tom Line is online now
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: cRio and code dont work!

If it is switching the output light on the solenoid bumper, that means your joystick is working and your code is working (at least for the button push).

You can set up a simple case statement to set the motor speed to 0 or 1, and then watch the lights on the jags.

IF your jags are blinking however when everything is turned on, they are telling you they aren't receiving any signal at all. They should have a solid light if they are getting a signal. If they are blinking, your problem is somewhere in the pwm wiring, the digital sidecar, or the digital bumper.

Note - even without any button pushes your jags should not be blinking if they are plugged in correctly and are getting a signal from the sidecar.
  #9   Spotlight this post!  
Unread 24-01-2010, 13:39
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,855
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: cRio and code dont work!

Jaguars will also blink if the PWM it's plugged into was not Opened properly in the code, but that shouldn't be the case with the example code. It'd only be a problem if you'd switched the PWM inadvertently.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-01-2010 at 13:45.
  #10   Spotlight this post!  
Unread 24-01-2010, 14:56
tanguma26 tanguma26 is offline
Registered User
FRC #3999
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Killeen
Posts: 48
tanguma26 is an unknown quantity at this point
Re: cRio and code dont work!

Ok today we fix our problem what we did was unplug everything from the cRio every pwm cable and plug every thing back making sure that the pwm cables were set on the right direction them we run the program using the tank example and it was like magic it work.

So you might want to look at all you wires and hopefully it would work

gool luck guys and thanks for your answers.
  #11   Spotlight this post!  
Unread 24-01-2010, 15:37
deeek deeek is offline
Registered User
None #1329
 
Join Date: Jan 2010
Location: St. Louis
Posts: 17
deeek is an unknown quantity at this point
Re: cRio and code dont work!

We are having the exact same problem. We updated all of the software and successfully reimaged the cRio (I am fairly certain); plus we see the LEDs on module 8 light up when we use the joystick, however, our speed controller is still blinking. So, I guess we will try the magic trick that tanguma26 suggested. Does anyone else have any other suggestions? Thanks.
  #12   Spotlight this post!  
Unread 24-01-2010, 17:12
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,113
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: cRio and code dont work!

If you're using a Victor speed controller, it takes some practice and experience to know when the PWM connector is seated properly. Be prepared to have to fiddle with it for a while.
  #13   Spotlight this post!  
Unread 24-01-2010, 17:23
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,306
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: cRio and code dont work!

Quote:
Originally Posted by Alan Anderson View Post
If you're using a Victor speed controller, it takes some practice and experience to know when the PWM connector is seated properly. Be prepared to have to fiddle with it for a while.
Oh yes, those things can be a pain sometimes.
And once you mess it up, it'll always be an issue.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
  #14   Spotlight this post!  
Unread 25-01-2010, 09:02
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: cRio and code dont work!

Glad to see that we're not the only one's having this. We took yesterday off and are back to work today. We're going to try everything and maybe we'll get lucky...will post when we're done...

Thanks guys!
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #15   Spotlight this post!  
Unread 25-01-2010, 09:51
gr8dragon's Avatar
gr8dragon gr8dragon is offline
Registered User
AKA: Parth Patel
no team
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Toronto,Canada
Posts: 39
gr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of light
Re: cRio and code dont work!

Our team had experienced this problem as well, and we checked our wiring and all, however it didnt seem to be the issue.

I had jus come home from watching Shirlock Homes and decided to check the most absurd thing possible. And as I suspected one of the pins in the cRIO's slot 4 had been damaged and thus no signal was sent to the sidecar and in turn the victors. Changing our cRIO fixed the issue and now we are good to break other things...

I recommend that someone check the pins on the cRIO.
Closed Thread


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
Can ping CRIO and bridge, but DS shows no comm and no code Green2 FRC Control System 3 22-01-2010 23:55
Default windriver program, no code and warnings on CRIO console out pafwl C/C++ 1 16-01-2010 16:03
Ultrasonics: Will it work and how to make it work DavidB Electrical 2 17-01-2009 16:27
Getting the Camera and Default Code to Work nukem Programming 5 18-01-2006 11:48
HELP!! Need $5000 for registration fee and we dont have any sponsors! Ryan Foley Fundraising 28 06-11-2002 18:39


All times are GMT -5. The time now is 21:24.

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