Go to Post The losing alliance should know they lost, admit it, and use the desire to win to push themselves even further. - artdutra04 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 09-02-2012, 22:44
996rookie 996rookie is offline
Registered User
FRC #0996
 
Join Date: Jan 2012
Location: Arizona
Posts: 8
996rookie is an unknown quantity at this point
Team 996 in need of help

This year, our team is very scrapped for members. So I have volunteered for programming. The problem? I am a freshman, and this is my first year at doing anything related to robotics. I found a skeleton program in LabVIEW, like a starter program, to try to get the hang of it. Our problem is that it is not working, and since I am new at this, failure analysis is almost nonexistent. All our hardware is correctly set up,(that is something we know how to do), and everything is communicating properly. I'm even getting readings from the joysticks on the driver station. But when I move our joysticks, nothing happens. I used this PDF - https://decibel.ni.com/content/docs/DOC-14723 - to try to get a handle on things. I followed it exactly, and things still aren't working.

Can anyone tell me what might be going wrong? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2012, 22:57
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 901
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Team 996 in need of help

I am a (fairly) new mentor with a little LabVIEW experience.

We had trouble getting a tethered setup to work with our computer. But if we did a "startup" deployment of the project and rebooted the cRIO, everything worked fine.

Questions:
1. did you "image" the cRIO?
2. Have you "Run" your Robotmain.vi while connected to the robot with an ethernet cable?
3. Have you looked at the documentation under Turorial when you start up LabVIEW? I found those guides MUCH better than the condensed FRC pdfs.

If your answer is "No" to those, try them! For the Tutorial, open LabVIEW, click Tutorials, and then "Turorial 4: Developing a Robot Project"
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2012, 23:30
Tom Line's Avatar
Tom Line Tom Line is offline
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,512
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: Team 996 in need of help

In addition, I strongly suggest you go to www.frcmastery.com and watch the videos. They are slightly out of date, but they are a valuable resource for learning how to program an fRC robot in labview.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2012, 23:38
Cecil's Avatar
Cecil Cecil is online now
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: Team 996 in need of help

Also, if you have the default code loaded in, and everything looks like it should be working, it could be the DB37 cable. Have you done the rework of it as shown here?
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2012, 15:58
996rookie 996rookie is offline
Registered User
FRC #0996
 
Join Date: Jan 2012
Location: Arizona
Posts: 8
996rookie is an unknown quantity at this point
Re: Team 996 in need of help

I re wired the DB37 cable, and my code is still not working. I ran the 'Robot Main.vi' as a backup check, and even that isn't working. I am starting to enter panic mode. I have one motor wired to the PWM 1, and another to PWM2. I have each joystick set to a different USB, and have those programmed to each motor. I basically followed the tutorial exactly, and it still isn't running. I have my IP addresses set correctly, I have the code running, and I have the hardware set up correctly. I don't know what is wrong!
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2012, 16:44
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 901
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Team 996 in need of help

Couple of checks...
1. You used a crossover cable to image the cRIO, but are you using the regular ethernet to deploy code?
2. ...are you clicking "Enable" in the driver station?
3. Are you running the driver station software in a regular windows session, or logging in as "Driver"? I found that the "Driver" login doesn't work.

Maybe you could post your code, Teleop.vi, as an attachment and someone (me, and others) can take a look at it.
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2012, 23:39
996rookie 996rookie is offline
Registered User
FRC #0996
 
Join Date: Jan 2012
Location: Arizona
Posts: 8
996rookie is an unknown quantity at this point
Re: Team 996 in need of help

I went through all the wiring and scrapped my software. I just decided to go with the 'Robot Main.vi' what was provided. I found the problem in the hardware, (the DB37 cable), and fixed it. Our robot drives now. I was wondering if anybody knew how to change the drive from arcade to tank? We have 2 PWM channels, each spliced into their own Jag, so 4 Jaguars total, 2 Jag's per side. We are set up in tank drive mechanically, so Arcade is relatively new to us. I would like to be able to switch the setup in the 'Begin.vi' of the 'Robot Main.vi' to tank mode. Is there any way to do this simply? Or is it an entire ordeal?

Thanks
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2012, 01:24
chi-town-biker chi-town-biker is offline
Registered User
FRC #3135 (Robotic Colonels)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Chicago
Posts: 46
chi-town-biker is an unknown quantity at this point
Re: Team 996 in need of help

To switch from arcade to tank drive in LabView,
1) Define your second joystick in the Begin vi.
2) Open the teleop vi in Robot Main.
3) Add code to read the second joystick using the Joystick 1 code as an example
4) Replace the Arcade Drive vi with the Tank Drive vi. The Arcade Drive and Tank Drive vi's are in the WPI Robotics Library->Robot path of the Functions Palate.
5) Connect the X or Y wire from Joystick 1 to the Tank Drive vi and the X or Y wire from Joystick 2 to the Tank Drive vi.

I hope that helps.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2012, 18:34
996rookie 996rookie is offline
Registered User
FRC #0996
 
Join Date: Jan 2012
Location: Arizona
Posts: 8
996rookie is an unknown quantity at this point
Re: Team 996 in need of help

It does, thanks!
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


All times are GMT -5. The time now is 16:45.

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