Go to Post Honestly I'm looking forward to just seeing all my friends again, that's what FIRST is really about to me. - Barry Bonzack [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, 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
  #2   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
  #3   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
  #4   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
  #5   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
  #6   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