Go to Post I always felt people get too caught up in the robot and don't see what really makes the teams function so well is the organization itself. - Koko Ed [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 06-02-2015, 01:03
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
LabVIEW code to drive 4 motor chassis

Starting with the initial arcade mode robot project, we'd like to modify it to drive 4 motors instead of 2. We modified Begin to replace the Open 2 Motor control with an Open 4 Motor Control. The Open 4 Motor Control help does not list the Talon. We're using all Talons. Is this a problem?

We added the PWM controls and connected them to the Open 4 Motor.

That's basically it. I could maybe provide more details about what we did that didn't work, but I don't think that would help much. The 2 Talons we added do not light up like the first 2 do and the 2 new motors don't move.

We're looking for a simple way to drive our chassis with 4 motors instead of 2.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2015, 01:21
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,594
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: LabVIEW code to drive 4 motor chassis

Do you intend that the two additional motors will "slave" to the first two, or did you intend to control them independently?

If the former, then my recollection of the LWCVI class I took a few years back was that you just put the new motors in your wiring diagram near the old ones, and wire them with all the same inputs as the one's they're mimicking.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2015, 06:27
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

Yes. I want the two new motors to each do the exact same thing as one of the first two motors. We are trying to do what you say to do. Maybe I should post a pic of our block diagram.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2015, 07:46
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,795
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: LabVIEW code to drive 4 motor chassis

Does your Open 4 Motor look like this?
You can drag and drop this picture into your Begin.vi to look at the actual code.
Attached Thumbnails
Click image for larger version

Name:	Open4Motor.png
Views:	61
Size:	17.2 KB
ID:	18173  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2015, 08:52
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

It looks amazingly similar, if not the same. I dropped the snippet in and compared manually. One difference: We have all 4 T/F inputs connected to boolean constants.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2015, 08:56
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

Click image for larger version

Name:	Open4Motors.png
Views:	53
Size:	34.0 KB
ID:	18176
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2015, 09:01
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: LabVIEW code to drive 4 motor chassis

You mentioned that the Talons don't light up like the others. Are you getting any lights on the Talons, or are they just not blinking red and green like the others? If the Talon lights stay orange, then it could be a PWM cable either not plugged in or faulty.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2015, 09:50
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

We may have zeroed in on LabVIEW code too quickly. We'll do some hardware swapping this afternoon. Thank you.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2015, 18:41
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

The problem was we were not deploying and running the code.

Now we have all the Talons lighting up and working. We've been playing with the Inverted options, but it seems like no matter what combination we use, we either can't turn or can't move at all. Should we be able to run 4 motors in arcade mode drive? We don't want tank because we have other plans for Joystick 2.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2015, 18:48
team5622 team5622 is offline
Registered User
FRC #5622 (Green Hornets)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Stanton, MI
Posts: 7
team5622 is an unknown quantity at this point
Re: LabVIEW code to drive 4 motor chassis

Success!!!! We just had to try enough combinations.
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2015, 09:00
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,795
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: LabVIEW code to drive 4 motor chassis

That should work alright then for four Talons.
The additional inverts are fine.

So,
  • Double check the orientation of the PWM cables going to the two Talons that don't light up.
  • Pull the breakers for the Talons that are working, then test using the unlit Talons to see if they output any power. It's possible they just need to be calibrated.
  • You can also try taking one of the PWM cables running to a working Talon and connect it to one of the non-working Talons to see if it's the cable itself.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-02-2015 at 09:04.
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 10:21.

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