Chief Delphi

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

gabrielc97 19-02-2012 12:42

Motor Sequence?
 
How can i program a cim motor to run continuously with one button on the joystick and to stop with another button?
Any help is appreciated!

jase728 19-02-2012 13:28

Re: Motor Sequence?
 
Well if you are coding in Java I can help you

so in the teleop continuous phase use these lines of code:

if(joystick.getRawButton(BUTTON_NUMBER))
{
jaguarName.set(MOTOR SPEED)
}

if(joystick.getRawButton(NEW BUTTON_NUMBER))
{
jaguarName.set(0)
}

gabrielc97 19-02-2012 14:13

Re: Motor Sequence?
 
Thanks but we are using LabVIEW

Ether 19-02-2012 14:32

Re: Motor Sequence?
 
1 Attachment(s)
Quote:

Originally Posted by gabrielc97 (Post 1130136)
How can i program a cim motor to run continuously with one button on the joystick and to stop with another button?
Any help is appreciated!

I think the attached will work.



gabrielc97 19-02-2012 15:18

Re: Motor Sequence?
 
Thanks, but does the motor have to be connected to the program?
And what connects to the right side of the wire furthest to the right?

DominickC 19-02-2012 15:26

Re: Motor Sequence?
 
Yes, the output of the upper T/F selector is wired to the Output value of Motor Set Output.


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

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