Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   LabView Button Problems (http://www.chiefdelphi.com/forums/showthread.php?t=112414)

katsauga 30-01-2013 21:45

LabView Button Problems
 
I am not sure how to make a bi-directional motor using two separate buttons, Ex. being "button 2 make motor move counter clockwise, and button 3 makes same motor move clockwise.

vhcook 30-01-2013 21:57

Re: LabView Button Problems
 
Given two buttons, there are four possibilities you need to handle. Here's a simple truth table that shows them:

Code:

Button2    Button3    Result?
F          F          ??
F          T          Go Clockwise
T          F          Go Counter-clockwise
T          T          ??

On the "??" cases, you need to choose whether to do what it was already doing, stop, or some other specific action depending on what makes sense in your mechanism.

Use select VIs (or nested case statements or a select statement in a case statement, depending on what makes the most sense to you) to get the right result for each situation, then feed it to a Motor Set.

Alan Anderson 30-01-2013 23:04

Re: LabView Button Problems
 
Did my reply the other day not help? Here's one of the better answers you should have been able to find by searching.


All times are GMT -5. The time now is 02:12.

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