Go to Post I actually love and am very thankful for what all these amazing engineering role models put into this program year in and year out. - Bill Gold [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 15-02-2016, 15:32
6178-MooseJaw 6178-MooseJaw is offline
Registered User
AKA: Daniel Atkins
FRC #6178 (Techno Titans)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Moose Jaw, Sask, Canada
Posts: 4
6178-MooseJaw is an unknown quantity at this point
We need help getting motors moving using Labview!!!

This is team 6178 from Moose Jaw Sask. we are having trouble right now on making our robot move. It seems that we have it all set up but it doesn't move when we give it commands. Our computer says that there is something connected to it and that it is able to run but it doesn't recognize that the motors are ready and working. We're thinking its the wiring but we can't find a problem with it because it looks just like the picture. Like I said before everything looks good until we give it commands to move. We're new to this kind of programming and are using Labview as our program.

Check out our post on our website below to see some pictures. We are trying to use the generic setup from the rookie build from this season. Thanks for any help you can give us!


http://vanier.htcsd.ca/robotics/inde...motors-moving/
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2016, 15:42
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 113
aeastet is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

Looking at you pictures it looks like you have your PWM cables backward. The black should go to ground Red in the middle and white to S. Flip them around and see what happens.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2016, 15:42
ebmonon36's Avatar
ebmonon36 ebmonon36 is offline
Registered User
AKA: Eric Bredehoeft
FRC #1018 (Robodevils)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Indianapolis, IN
Posts: 428
ebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud of
Send a message via AIM to ebmonon36
Re: We need help getting motors moving using Labview!!!

It's hard to tell from the small picture, but to me it looks like your PWM cables are plugged in with the white wire toward the outside of the roboRIO. This is the signal wire which should line up with the S label for the PWM ports. If your PWM wires are plugged in with the white wire towards the outside, this plug needs to be flipped around so the black wire is towards the outside of the roboRIO.

Eric
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2016, 16:43
6178-MooseJaw 6178-MooseJaw is offline
Registered User
AKA: Daniel Atkins
FRC #6178 (Techno Titans)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Moose Jaw, Sask, Canada
Posts: 4
6178-MooseJaw is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

Thank you for your help! We switched the PWM plugs around so the black and red wires are lined up properly. We restarted everything, but it still isn't responding to the joystick control. Here's a screen shot of our labview.

http://vanier.htcsd.ca/robotics/inde...motors-moving/
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2016, 16:50
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: We need help getting motors moving using Labview!!!

Your Driver Station is showing error messages, but your screen captures are shrunk and don't have enough resolution for me to read what they say. Please post them at actual size.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2016, 17:05
6178-MooseJaw 6178-MooseJaw is offline
Registered User
AKA: Daniel Atkins
FRC #6178 (Techno Titans)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Moose Jaw, Sask, Canada
Posts: 4
6178-MooseJaw is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

Sorry about the small pictures. I reposted them as large as they can go. We don't have a camera, so it gives us that error.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2016, 17:24
JPL69's Avatar
JPL69 JPL69 is offline
Registered User
FRC #3596 (Rocket Robotics)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2013
Location: Wisconsin
Posts: 11
JPL69 is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

In the Teleop code, there is an array. On the output of the array (right side) this goes to the Arcade Drive block (which is correct). On the input to the array (left side) you need to put in the axis number for the controller (ex. "4" and "5"). This tells the code what axis will control the Forward/Reverse, and what axis will control the Left/Right.

EDIT: Added picture as an example. See blue numbers.
Attached Thumbnails
Click image for larger version

Name:	Sample Arcade Code.JPG
Views:	16
Size:	90.4 KB
ID:	20087  

Last edited by JPL69 : 15-02-2016 at 20:11.
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2016, 21:02
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: We need help getting motors moving using Labview!!!

What kind of joystick or game controller are you using to command the motors?

Look at the USB configuration tab on the Driver Station to make sure you have it connect as USB 1. It has indicators that tell you what the axes and buttons values are. Make sure you're getting responses on the axes that you have wired to the Arcade Drive function (0 and 1).
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2016, 12:38
6178-MooseJaw 6178-MooseJaw is offline
Registered User
AKA: Daniel Atkins
FRC #6178 (Techno Titans)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Moose Jaw, Sask, Canada
Posts: 4
6178-MooseJaw is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

We changed the axis numbers to 1 and 4 and fired it up and it works!

Thank you aeastet, ebmonon36, Alan Anderson, and JPL69 for all your help. We really appreciate your time and wisdom. You can imagine the excitement in the room when it finally started to move!
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2016, 15:19
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 113
aeastet is an unknown quantity at this point
Re: We need help getting motors moving using Labview!!!

Really glad to hear it.
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 20:50.

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