We want to run a motor through a button, preferably the trigger. How would I program this? We are using labview 2015.
Describe how you want the button to behave.
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.
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/attachment.php?attachmentid=19986&d=1454729278
We would want example 2. When the trigger is pressed it goes at full power, and when released it stops. Thank you!
See the link Mark provided in Post#3. If you need further help, ask Mark politely and I’m sure he will help.
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?
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.
Sounds great. Thank you Mark!