Chief Delphi

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

zip100 08-02-2010 21:57

coding help
 
How can I do the exact opposite of the code I wrote. Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5

Greg McKaskle 09-02-2010 10:22

Re: coding help
 
The Boolean palette contains a negate icon, and you can place that in front of the case. Another, possible easier to read way of doing this is to right click on the case and at the bottom Make this case ... will allow you to choose which code goes with which button logic.

Greg McKaskle

Alan Anderson 09-02-2010 12:26

Re: coding help
 
Quote:

Originally Posted by zip100 (Post 916078)
Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5

I think we might have misunderstood what you were asking in an earlier thread. When you say you want the motor to run half speed, do you want it to run at half of its maximum speed, or do you mean you want it to run at half of whatever speed the driver is commanding via the joystick?

If your goal is to make the joystick half as sensitive, you don't want to wire a constant 0.5 into the drive vi. You want to multiply the joystick axis value by 0.5 instead. Use your joystick button to send the value straight through without the multiply in the "turbo boost" case.


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

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