|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Button Programming
We want to run a motor through a button, preferably the trigger. How would I program this? We are using labview 2015.
|
|
#2
|
||||
|
||||
|
Re: Button Programming
Quote:
Example1: Press and release button to toggle motor between "full on" and "off". Example2: When button is held pressed, motor runs. When button is released, motor stops. etc. You get the idea. |
|
#3
|
|||||
|
|||||
|
Re: Button Programming
Here's an example using two buttons (forward/reverse/off).
Just use a single button if the motor is only forward/off. http://www.chiefdelphi.com/forums/at...6&d=1454729278 |
|
#4
|
|||
|
|||
|
Re: Button Programming
We would want example 2. When the trigger is pressed it goes at full power, and when released it stops. Thank you!
|
|
#5
|
||||
|
||||
|
Re: Button Programming
Quote:
|
|
#6
|
|||
|
|||
|
Re: Button Programming
Sounds good Thank you Ether
Mark I noticed that the example you posted was from the 2014 version of labview. Will it work for the 2015 version? |
|
#7
|
|||||
|
|||||
|
Re: Button Programming
Yes it works in both. There was no change in the LabVIEW version upgrade that affected this.
You can save that image to your desktop, then drag it onto an open block diagram, and the code will appear. Then edit to remove the extra button. |
|
#8
|
|||
|
|||
|
Re: Button Programming
Sounds great. Thank you Mark!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|