Go to Post w0000000000000t! - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2012, 12:42
gabrielc97's Avatar
gabrielc97 gabrielc97 is offline
Registered User
AKA: Gabriel
FRC #4029 (Spartan Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Huntington Park CA
Posts: 39
gabrielc97 is an unknown quantity at this point
Exclamation 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!
__________________
Gabriel
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 13:28
jase728 jase728 is offline
Registered User
AKA: Jase728
FRC #3210 (Falcons)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Hillsboro
Posts: 11
jase728 is an unknown quantity at this point
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)
}
__________________
"In theory there is reality, but in reality there is no theory" - Erich Keane (FRC 2010 Build Season - Team 3210)
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 14:13
gabrielc97's Avatar
gabrielc97 gabrielc97 is offline
Registered User
AKA: Gabriel
FRC #4029 (Spartan Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Huntington Park CA
Posts: 39
gabrielc97 is an unknown quantity at this point
Re: Motor Sequence?

Thanks but we are using LabVIEW
__________________
Gabriel
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2012, 14:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Motor Sequence?

Quote:
Originally Posted by gabrielc97 View Post
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.


Attached Thumbnails
Click image for larger version

Name:	button.jpg
Views:	16
Size:	26.2 KB
ID:	11993  
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2012, 15:18
gabrielc97's Avatar
gabrielc97 gabrielc97 is offline
Registered User
AKA: Gabriel
FRC #4029 (Spartan Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Huntington Park CA
Posts: 39
gabrielc97 is an unknown quantity at this point
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?
__________________
Gabriel

Last edited by gabrielc97 : 19-02-2012 at 15:27.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2012, 15:26
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Motor Sequence?

Yes, the output of the upper T/F selector is wired to the Output value of Motor Set Output.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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