Go to Post Remember, never underestimate the determination of thousands of FIRST students! - Jay H 237 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 03-11-2010, 18:36
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Thumbs down Code Problems

Hey we're wanting to be able to run our robot from last year but it wont run. The electrical stuff is hooked up correctly, and the code runs. However, we can't get the code to compile onto the cRIO, so the robot won't run. Any Ideas?
__________________
  #2   Spotlight this post!  
Unread 03-11-2010, 21:20
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Code Problems

Your going to need to provide more information than that for us to provide any useful help.

First, you say that the code runs, but then you say that it doesn't compile.
Which is it?

Can you connect to the Crio, you can check by opening a command prompt and typing "ping 10.xx.yy.2" where xx.yy is your team number.
__________________

  #3   Spotlight this post!  
Unread 03-11-2010, 21:21
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Code Problems

Can you be more specific with errors? What language is the robot coded in?
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #4   Spotlight this post!  
Unread 04-11-2010, 19:00
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Problems

Ok sorry. First of all, it is coded in LabView. When I say the code runs but doesn't compile I mean that when i click the run arrow in LabView, it shows the code as running, however, it will not compile to the cRIO.
It is my first year being the head programmer because our programmer last year is now in college. As I understand it though, I'm supposed to get a message box saying "compiling to cRIO" (or something along those lines), and then when it has compiled, I can minimize LabView and open up the drivers station.
I wish I had more to say but our coach and I are both confused because everything seems to be hooked up correctly. We are pretty sure that is either a problem with the cRIO itself, the code, or the wiring because we have direct-wired it and it would not run. I believe the code works because I am not recieving any errors stopping it from running. Also, I believe the wiring is correct because it hasn't been touched since last March.
That leaves only the cRIO as we see it. We just want to make sure that there isn't something simple we're overlooking before we attempt to replace the $1000 cRIO.
A final note: my team only meets on Wednesdays before the season so that is when I am able to access the robot. If there is any other info i can provide you please tell me ASAP so I can try to get this solved quickly.

THANK YOU SO MUCH anyone that helps with this for taking some offseason time to help me out.
__________________
  #5   Spotlight this post!  
Unread 04-11-2010, 19:43
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Code Problems

is your target set correctly? 10.xx.yy.2?
__________________
  #6   Spotlight this post!  
Unread 04-11-2010, 19:43
jspatz1's Avatar
jspatz1 jspatz1 is offline
Registered User
AKA: Jeff
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Lee's Summit, MO
Posts: 836
jspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond reputejspatz1 has a reputation beyond repute
Send a message via AIM to jspatz1
Re: Code Problems

With a Labview program you must do a "build" step to compile, then deploy it to the Crio with "Run as startup." Are you familiar with these steps?
__________________
  #7   Spotlight this post!  
Unread 04-11-2010, 20:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Code Problems

Quote:
Originally Posted by dmitch View Post
A final note: my team only meets on Wednesdays before the season so that is when I am able to access the robot. If there is any other info i can provide you please tell me ASAP so I can try to get this solved quickly.
Do you meet in the evenings, after normal working hours? Do you have convenient access to the internet in close proximity to where you will be actually working on the robot? Let this forum know in advance what hours you will be at the site working on the robot, and I'll bet you'll get at least a few knowledgeable LabVIEW folks standing by ready to answer questions you post while you are there and you can try the things that are suggested and provide immediate feedback.

Before your next team meeting, watch this video and ask questions here.



Last edited by Ether : 04-11-2010 at 20:49.
  #8   Spotlight this post!  
Unread 04-11-2010, 20:52
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: Code Problems

Quote:
Originally Posted by dmitch View Post
Ok sorry. First of all, it is coded in LabView. When I say the code runs but doesn't compile I mean that when i click the run arrow in LabView, it shows the code as running, however, it will not compile to the cRIO.
How are you trying to get it to "compile to the cRIO"? What happens when you try? You should be choosing the Build option under the right-mouse-button menu from the "FRC Robot Bootup Deployment" object at the very bottom of the project window. That object is nested under "Build Specifications" and "RT CompactRIO Target". Then, after the project has been built successfully, you need to choose the "Run as startup" option from the same menu.
Quote:
It is my first year being the head programmer because our programmer last year is now in college. As I understand it though, I'm supposed to get a message box saying "compiling to cRIO" (or something along those lines), and then when it has compiled, I can minimize LabView and open up the drivers station.
This sounds suspiciously like you're not running the Driver Station application.
Quote:
I wish I had more to say but our coach and I are both confused because everything seems to be hooked up correctly. We are pretty sure that is either a problem with the cRIO itself, the code, or the wiring because we have direct-wired it and it would not run. I believe the code works because I am not recieving any errors stopping it from running. Also, I believe the wiring is correct because it hasn't been touched since last March.
That leaves only the cRIO as we see it.
What do the indicators on the Driver Station's "Dagnostics" tab tell you?

If you haven't enabled the robot using the button on the "Operation" tab of the Driver Station application, none of the motors or relays or solenoids will be allowed to work.
  #9   Spotlight this post!  
Unread 04-11-2010, 21:59
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Code Problems

Here's some documentation to help you out. You shouldn't have to struggle through asking us basic questions when there's documents to walk you through it.

"Using the FRC Framework" from 2009 : http://decibel.ni.com/content/docs/DOC-2663
A couple things have changed (use of the global variable deemphasized, refnum registries, and the removal of Autonomous Independent this coming year), but it's still a good document. I would recommend PRINTING this one.
Methods of deployment are on page 13.
By the way, the second method of deployment, "DEPLOYING THE PROGRAM FROM THE PROJECT EXPLORER WINDOW", I have not managed to get work, though I haven't tried in almost two years.

2010 "Bench Test":
http://usfirst.org/uploadedFiles/Com...ed-Rev-0.7.pdf
There's a lot of stuff in this one that is about C++ and Java, so you probably don't want to print the whole thing. This includes methods of deployment.
__________________
-- Marshal Horn
  #10   Spotlight this post!  
Unread 08-11-2010, 20:16
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Problems

I never am going to have internet access during the time I'm actually working on the robot. However, I am running it tomorrow and I will have an answer for you then as to whether or not it works.
__________________
  #11   Spotlight this post!  
Unread 08-11-2010, 20:19
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Code Problems

Download it on a different computer and print out the useful sections.
I recommend you print the entirety of "Using the FRC Framework".
__________________
-- Marshal Horn
  #12   Spotlight this post!  
Unread 08-11-2010, 20:33
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Code Problems

This is a bit off topic.. but you said the last time it was used was in march.. Did you happen to reset the Gaming Adaptor to not have any encryption on it? If your router is unencrypted and the gaming adaptor is, it wont connect. I don't know if this would throw an error when you hit the run button, but it is worth a shot
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #13   Spotlight this post!  
Unread 07-12-2010, 21:23
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Question Re: Code Problems

Ok sorry its been a while since i've been on. We smelled stuff burning last time we turned on our robot, so we took a further look and saw that several wires had slashes in them like someone had missed with the wire cutters...so we took apart all the wiring and are redoing it. (Yes that was serious.) And my question now is how on earth do you wire a PWM to a Jaguar? As i recall from my rushed intro last year the PWM can either hook into the sidecar or the cRIO slot??? And then go to either Jaguar or sensor??? (My knowledge on this part is REALLY fuzzy) I would prefer a diagram but if you have some words to post that will be very clear that would be great.
__________________
  #14   Spotlight this post!  
Unread 07-12-2010, 21:34
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,847
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: Code Problems

See if these wiring diagrams help explain where what goes.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #15   Spotlight this post!  
Unread 07-12-2010, 21:34
mattiej's Avatar
mattiej mattiej is offline
Programmer Guy
FRC #3413 (Mad Cows)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Coppell Texas
Posts: 54
mattiej is an unknown quantity at this point
Re: Code Problems

Quote:
Originally Posted by dmitch View Post
Ok sorry its been a while since i've been on. We smelled stuff burning last time we turned on our robot, so we took a further look and saw that several wires had slashes in them like someone had missed with the wire cutters...so we took apart all the wiring and are redoing it. (Yes that was serious.) And my question now is how on earth do you wire a PWM to a Jaguar? As i recall from my rushed intro last year the PWM can either hook into the sidecar or the cRIO slot??? And then go to either Jaguar or sensor??? (My knowledge on this part is REALLY fuzzy) I would prefer a diagram but if you have some words to post that will be very clear that would be great.
Sorry I don't have a picture. But what you do is use servo wires (Red, white, and black with three pronged push connectors) to connect the Jaguar to the Sidecar. The sidecar uses a serial (I think that is what it is called - it is really big) to connect to the cRIO. The Jaguar hooks up to the power supply via the red and black screws, and to the motor via the green and white screws. Hope this helps!

EDIT: Definitely use the diagrams above
__________________


Man pretending to be interested: "So how does this robot of yours work?"
Me tired of man pretending to be interested: "Magic. And Purple Yetis."
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
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
Problems when combine ADC code && camera code nirhaim1942 Programming 1 24-01-2007 06:58
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Labview problems and code problems ajsetter Programming 25 18-01-2006 17:07


All times are GMT -5. The time now is 07:09.

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