|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Labview motor control
I made a motor control to implement one of the triggers to make the robot move foreward so i set the motor speed on both pwm 1 and 2 to -1. it sort of worked but only the right motor was working and it was very jerky. any ideas?
and also... im trying to find a way to ramp up the motors when moving it foreward with the trigger. Im going to try to get a print screen of the code so you guys can see it. |
|
#2
|
||||
|
||||
|
Re: Labview motor control
Sean,
You are opening the Jaguar for PWM1 and PWM2 twice. Should be once... When the trigger is pressed, you are controlling the Jaguars via the tank drive VI and the button control both. This is the jerkiness you see. If I understand your intent, I think that you want to move the tank drive VI into the FALSE block of your button controlled case statement. Regards, Mike |
|
#3
|
||||
|
||||
|
Re: Labview motor control
i get the part about moving the tank drive VI but i dont get what you mean by wiring it twice. where else would i wire it to?
|
|
#4
|
||||
|
||||
|
Re: Labview motor control
Quote:
You only need to open each motor once. Delete the other two. |
|
#5
|
||||||
|
||||||
|
Re: Labview motor control
For your two motor opens, the dev ref goes outside the while loop to the close. Thus, you will be closing them very quickly after opening them. You need to run the device references through the while loop, so that there is a data dependency on the while loop. That way it won't close until after the while loop has stopped.
|
|
#6
|
||||
|
||||
|
Re: Labview motor control
Ok i think i'm getting it now, i have attached the robot main to this post. Can you guys see if anything is wrong with the code because i am at home right now and therefore i cannot compile and debug the code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C and LabView version control with Git | Nibbles | NI LabVIEW | 31 | 17-01-2010 19:22 |
| Tracking Servo motor with drive motor in Labview | mbone206 | Technical Discussion | 5 | 28-01-2009 17:32 |
| 2009 Control System LabVIEW Tips and Pitfalls | Travis Hoffman | NI LabVIEW | 3 | 22-12-2008 11:25 |
| LabVIEW Training and new control system demonstration 10/17-10/19 in Frazier Park, CA | Joe Ross | NI LabVIEW | 0 | 25-09-2008 13:25 |
| Labview Revision Control | Joe Ross | National Instruments LabVIEW and Data Acquisition | 2 | 11-05-2008 17:28 |