Go to Post EVERYTHING in life is politics. - Amanda Morrison [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 10-02-2014, 18:35
DarthMaulCIS DarthMaulCIS is offline
Registered User
FRC #4607
 
Join Date: Jan 2014
Location: Becker, Minnesota
Posts: 24
DarthMaulCIS is an unknown quantity at this point
Switch

So my team may or may not use a switch to stop our winch.
I think it would use Digital Input/Digital Output vis, but I don't know.
Help please?

Last edited by DarthMaulCIS : 10-02-2014 at 18:39.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2014, 18:48
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Switch

That depends on where the switch is (on robot or on the Driver Station).

A limit switch on the robot that stops the winch would connect to a Digital Input.

Here are two examples of using Linit Switches:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2014, 18:52
DarthMaulCIS DarthMaulCIS is offline
Registered User
FRC #4607
 
Join Date: Jan 2014
Location: Becker, Minnesota
Posts: 24
DarthMaulCIS is an unknown quantity at this point
Re: Switch

Quote:
Originally Posted by Mark McLeod View Post
That depends on where the switch is (on robot or on the Driver Station).

A limit switch on the robot that stops the winch would connect to a Digital Input.

Here are two examples of using Linit Switches:
How would the left one work?
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2014, 18:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Switch

The left one just checks to see IF the driver joystick is ordering forward motion AND the limit switch in that direction is being depressed, THEN make the power to the motor =0.

If the motor is moving away from the limit switch or the limit switch hasn't been hit, then it's safe to let the motor do what the driver ordered.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2014, 16:20
DarthMaulCIS DarthMaulCIS is offline
Registered User
FRC #4607
 
Join Date: Jan 2014
Location: Becker, Minnesota
Posts: 24
DarthMaulCIS is an unknown quantity at this point
Re: Switch

The switch would need to make a motor stop and then a pneumatic to extend when it is pressed. Would I just remove the joystick and axis bits from that code?
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2014, 16:59
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Switch

You can remove the Joystick as long as you have something telling the motor to move and how fast. It could be triggered in a sequence, for instance.

As far as triggering pneumatics when the switch gets depressed, you could set that up as a completely separate action -- If limit switch, then set solenoid.

But it all depends on how you want to reverse or reset these actions.

It sounds like you might want this to be a sequence of steps in Periodic Tasks.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2014, 17:04
DarthMaulCIS DarthMaulCIS is offline
Registered User
FRC #4607
 
Join Date: Jan 2014
Location: Becker, Minnesota
Posts: 24
DarthMaulCIS is an unknown quantity at this point
Re: Switch

Periodic is exactly where I was going to put it. What vi would a limit switch be?
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2014, 23:49
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Switch

Limit switches are Digital Inputs.

WPI Robotics Library -> IO -> DigitalInput
Get returns a true or false.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 20:59.

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