|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
Re: LabVIEW code to drive 4 motor chassis
|
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
Re: LabVIEW code to drive 4 motor chassis
Success!!!! We just had to try enough combinations.
|
|
#11
|
|||||
|
|||||
|
Re: LabVIEW code to drive 4 motor chassis
That should work alright then for four Talons.
The additional inverts are fine. So,
Last edited by Mark McLeod : 06-02-2015 at 09:04. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|