|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: button activation for motor
well we aprieciate all the help, but we need to know what labview will look like to make this work.
|
|
#2
|
|||||
|
|||||
|
Re: button activation for motor
Quote:
Do you know how to set the speed of a motor connected to a Jaguar? Do you know what a Case block is in LabVIEW? What program will you be starting with? Will this program need to do anything besides controlling the two motors? |
|
#3
|
||||
|
||||
|
Re: button activation for motor
Quote:
Let's start off with my favorite site for learning LabView from an FRC perspective. There are a couple different links into the site that work, but this is my favorite. This is on the LVMastery web site. I'll bet by the time you run through the first 14 lessons, you will be able to answer your own question. Do your self a big favor and don't stop after #14, finish them all. It will be well worth your time. |
|
#4
|
|||||
|
|||||
|
Re: button activation for motor
Assuming the answers to the first three questions I posed a couple of posts ago are all "yes":
Open the joystick and both motors in the Begin vi, giving them useful names with RefNum Set functions. Close them all in the Finish vi. Put two Case blocks in the Teleop vi. Wire the "Buttons" output of a Joystick Get to an Unbundle By Name and choose the two buttons you want to use. Wire the state of the first joystick button to the selector terminal of the first Case block. Inside the "True" case, set both motors to run at the desired speed. Leave the "False" case empty. Wire the state of the second joystick button to the selector terminal of the second Case block. Inside the "True" case, set both motors to stop. Leave the "False" case empty. This will do exactly what you asked for, including the part about not being sure what happens when both buttons are pressed simultaneously. |
|
#5
|
|||
|
|||
|
Re: button activation for motor
Thank you so much this helped tremendously.
|
|
#6
|
||||
|
||||
|
Re: button activation for motor
That is exactly why we are here. Please feel free to ask if you need any additional help.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Joystick Button Motor!!! HELP!!! | furiousgeorge | Programming | 3 | 07-02-2009 22:57 |
| using a switch/button to turn on a motor | smcmahon | NI LabVIEW | 3 | 26-01-2009 18:42 |
| How do I Link a (group of) Joystick button(s) to a motor? | CardcaptorRLH85 | C/C++ | 2 | 22-01-2009 23:23 |
| Reset Button for Vex RC's | irishninja | FIRST Tech Challenge | 5 | 18-06-2006 15:56 |
| White Paper Discuss: Approx. Motor Spec for Taigene Motor | Joe Johnson | Motors | 2 | 22-01-2005 16:36 |