Go to Post We're not all autonomous robots who are preprogrammed to always follow rules blindly regardless of what they are. - Ryan Dognaux [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, 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
  #2   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,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: 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
  #3   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
  #4   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:	18
Size:	90.4 KB
ID:	20087  

Last edited by JPL69 : 15-02-2016 at 20:11.
Reply With Quote
  #5   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,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: 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
  #6   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
  #7   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: 119
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 01:22.

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