|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Programming buttons help!
Hey, I'm not that good with labview and so I came here asking for your help and advice. I was wondering if you guys can help me with programming buttons. Now I already learned how to program a button but could you please teach me how I make it so that when I press the button on the joystick the motor will start moving and when I press another button, the motor will stop.
Also I was wondering if it is also possible to make a motor rotate only 90 degrees, if it is can you please show me how? If you guys could help me, I would greatly appreciate your help with this. Please and thank you. |
|
#2
|
||||
|
||||
|
Re: Programming buttons help!
if you want it to only rotate 90 degrees, you will have to have some sort of sensor (limit switch, encoder or potentiometer) Be careful if you use a potentiometer- they have a limited range.
As for how to get a button to send signal to a motor, use the "get" VI for a joystick and unbundle the button output (I recommend unbundle by name) wire one of the buttons you want to use to a case structure (to the question mark) and in the true statement put a set speed for your motor. Create a constant for the speed. wire the other button to another case structure and do the same thing, but your constant should be 0 this time. |
|
#3
|
|||
|
|||
|
Re: Programming buttons help!
Quote:
Will it allow me to use the triggers on the joysticks to move the chain forward and backwards and use the top button to move the dumper forward and back? Where do I put this code and how do I hook it to the Main? I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS. Thanks for all help. Last edited by chinckley : 17-02-2009 at 15:50. Reason: added motor types |
|
#4
|
|||
|
|||
|
Re: Programming buttons help!
Thank you for your help and advice, for explaining to me how I would program it to make so that each button can perform a separate action. Also, since the only way to make it rotate 90 degrees is with sensors, I guess we're changing the way we're going to make it work. But THANK YOU SOOOO much for actually taking your time to give me advice and helping me with this problem that I had with the programming and teaching me on how to do it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming 2 buttons for a relay | team877 | NI LabVIEW | 15 | 18-02-2011 00:18 |
| programming buttons | tyson2010 | NI LabVIEW | 2 | 12-02-2009 22:17 |
| programming a motor to two buttons | solomason519 | Programming | 2 | 28-01-2009 12:37 |
| Help Programming Buttons | LordFrz | Programming | 3 | 14-02-2008 13:55 |
| Programming Extra Joystick Buttons | Inverted | Programming | 2 | 08-02-2007 11:45 |