Go to Post Hallry's back! Tell a Friend! - Tyler Olds [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 25-01-2014, 22:49
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: solenoid button help

Quote:
Originally Posted by Team3993Tom View Post
Is there a way to do it with a single?
Please explain what you mean by forward and reverse. If you mean two states, a single solenoid also has two states.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2014, 22:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: solenoid button help

Just change where you use "Forward" to "On" instead
and change "Reverse" to "Off"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2014, 23:01
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: solenoid button help

Quote:
Originally Posted by Joe Ross View Post
Please explain what you mean by forward and reverse. If you mean two states, a single solenoid also has two states.
I'm trying to have a cylinder push out and come back by using buttons on my controller. I was able to get the toggle to work by switching it to on and off instead of forward and reverse, but for some reason the two button is not working even though I did the same thing.
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2014, 23:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: solenoid button help

When you continue to hold both buttons 3&4 down at the same time the solenoid module LEDs aren't changing?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2014, 23:12
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: solenoid button help

Quote:
Originally Posted by Mark McLeod View Post
When you continue to hold both buttons 3&4 down at the same time the solenoid module LEDs aren't changing?
ok it is working now but sadly it wasn't what I was hopping it would be. The idea was to make it go out if I press button 3 and stay in that position, but then go back in when I press number 4.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2014, 23:21
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: solenoid button help

Disclaimer - I'm not a programmer - but I understand the solenoid:

A solenoid has a normally open and a normally closed condition. If your steady state condition would be the closed (rod inside cylinder) then hitting the momentary button on the controller sends the command to activate and change that state - but when you let go, it will go back to steady state.

You could do a number of things to get what you want - use a joystick or switch on the controller rather than a momentary button - so it "stays" in the activated state - or you could program that the button changes the condition from off to on. Push once for out, push again for back in. Probably a bunch more programming options - like I said, that isn't my specialty.
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2014, 23:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: solenoid button help

Here are two approaches:

1) Incorporate a feedback node to remember what your last choice was.

2) Embed the solenoid Set into two Cases, one for each button, so that it only gets Set when a button is pushed. The False Cases would be empty.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 25-01-2014, 23:31
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: solenoid button help

Quote:
Originally Posted by Mark McLeod View Post
Here are two approaches:

1) Incorporate a feedback node to remember what your last choice was.

2) Embed the solenoid Set into two Cases, one for each button, so that it only gets Set when a button is pushed. The False Cases would be empty.
where is the feedback node?
Reply With Quote
  #9   Spotlight this post!  
Unread 25-01-2014, 23:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: solenoid button help

Programming -> Structures
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 25-01-2014, 23:48
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: solenoid button help

Quote:
Originally Posted by Mark McLeod View Post
Programming -> Structures
Would the feedback be inside the case, connecting button to feedback then case, or case to feedback to set?

(by the way thank you for putting up with my stupid questions)
Reply With Quote
  #11   Spotlight this post!  
Unread 26-01-2014, 09:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: solenoid button help

It's easier to show, so here's an example (attachment 1) using a Select (found under Programming -> Comparison), and a Feedback node that remembers what the last value set was.


The second attachment shows the alternate method that just uses Case statements. The extra Case boxes at the bottom are just there to show what the False cases look like.
Attached Thumbnails
Click image for larger version

Name:	TwoButtons.png
Views:	17
Size:	22.2 KB
ID:	15970  Click image for larger version

Name:	TwoButtonsAlternate.png
Views:	12
Size:	25.5 KB
ID:	15971  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-01-2014 at 09:19.
Reply With Quote
  #12   Spotlight this post!  
Unread 26-01-2014, 19:44
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: solenoid button help

Quote:
Originally Posted by Mark McLeod View Post
It's easier to show, so here's an example (attachment 1) using a Select (found under Programming -> Comparison), and a Feedback node that remembers what the last value set was.


The second attachment shows the alternate method that just uses Case statements. The extra Case boxes at the bottom are just there to show what the False cases look like.
thank you for all the help, I was able to get it all to work. if you know anything about mecanum drive, http://www.chiefdelphi.com/forums/sh...d.php?t=125051
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 09:42.

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