Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Locking out actions based on a button press (without using variables) (http://www.chiefdelphi.com/forums/showthread.php?t=103264)

jwatson12 19-02-2012 11:13

Locking out actions based on a button press (without using variables)
 
2 Attachment(s)
Hi All:

We have a programming puzzle where we would like to lock out certain functions when a button is pressed. For example, when opening a solenoid by pressing button 5, motor actuation assigned to axis 2 of joystick 2 (for speed control) is disabled until a different button is pressed. Then, once button 7 is pressed, control is restored. Our current solution is to use a case statement assigned to button 5 that when true sets the solenoid and then a while loop is called within the Case structure until interrupted by Button 7. The exit tunnel of the case structure then continues the opposite solenoid action.

Can someone take a look at this and tell me if this is on the right track or is there a better way?

Thanks!

Wildcats1378 19-02-2012 18:55

Re: Locking out actions based on a button press (without using variables)
 
Check out the The Joystick Button Latching.vi example in Help -> Find Examples. That shows you how to use features which toggle.

Otherwise, you're on the right track!


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

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