Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Button Programming (http://www.chiefdelphi.com/forums/showthread.php?t=147037)

snotsdelta 11-04-2016 16:12

Button Programming
 
We want to run a motor through a button, preferably the trigger. How would I program this? We are using labview 2015.

Ether 11-04-2016 16:20

Re: Button Programming
 
Quote:

Originally Posted by snotsdelta (Post 1571177)
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.





Mark McLeod 11-04-2016 16:21

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

snotsdelta 11-04-2016 21:36

Re: Button Programming
 
Quote:

Originally Posted by Ether (Post 1571179)
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.





We would want example 2. When the trigger is pressed it goes at full power, and when released it stops. Thank you!

Ether 11-04-2016 21:51

Re: Button Programming
 
Quote:

Originally Posted by snotsdelta (Post 1571509)
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.



snotsdelta 12-04-2016 10:17

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?

Mark McLeod 12-04-2016 10:21

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.

snotsdelta 12-04-2016 10:48

Re: Button Programming
 
Sounds great. Thank you Mark!


All times are GMT -5. The time now is 04:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi