Go to Post Who says engineers can't be poets? - Wayne TenBrink [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 04-02-2011, 13:31
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Buttons

Thank you Mark!
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2011, 10:43
Durham86 Durham86 is offline
Registered User
FRC #2883
 
Join Date: Dec 2009
Location: warroad,MN
Posts: 8
Durham86 is an unknown quantity at this point
Re: Buttons

As of right now our buttons are set up as momentary. What we want it to do is when we push a button a cylinder goes out and when we push that same button it retracts. From a programming side I guess I'm asking how exactly a person would do this.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2011, 10: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: Buttons

Quote:
Originally Posted by Durham86 View Post
As of right now our buttons are set up as momentary. What we want it to do is when we push a button a cylinder goes out and when we push that same button it retracts. From a programming side I guess I'm asking how exactly a person would do this.
LabVIEW Examples look for the one named Button Toggle Action.
It's about halfway down the page.
I think that's what you want.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2011, 11:21
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,280
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Buttons

Quote:
Originally Posted by Mark McLeod View Post
LabVIEW Examples look for the one named Button Toggle Action.
It's about halfway down the page.
I think that's what you want.
There is also a VI for this provided in the examples NI wrote. Check out

Program Files >> National Instruments >> LabVIEW 8.6 >> examples >> FRC >> Driver Station Inputs >> Joystick Button Latching >> Joystick Button Latching.vi
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2011, 16:55
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Buttons

How can I do easier for the driver by making it 2 buttons. For example making one increment and the other one decrement. Lets assume that we have 7 positions:

Position1: to take the tube from the ground
Position2: 30 inches
Pos3: 38 inches
Pos4: 67 inches
Pos5: 75 inches
Pos6: 104 inches
Pos7: 112 inches

Let button increment be Button 2 on Joystick 2 and
Let button decrement be Button 3 on Joystick.

What I want is when I push button 2 if the lifting mechanism in
Pos (x-1) I want it to heightened to Pos (x).

And for the button 3 if the lifting mechanism in Pos (x) I want it to lowened to Pos (x-1).

Those position thing is just an example and what I am asking for is how to use one button repetitively ?


Thanks in advance!!
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2011, 19:00
Durham86 Durham86 is offline
Registered User
FRC #2883
 
Join Date: Dec 2009
Location: warroad,MN
Posts: 8
Durham86 is an unknown quantity at this point
Re: Buttons

https://picasaweb.google.com/lh/phot...t=d irectlink

What does this symbol mean and where can I find it?
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2011, 19:53
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: Buttons

Quote:
Originally Posted by Durham86 View Post
[What does this symbol mean and where can I find it?
That is a Feedback Node.
You'll find it on the Programming->Structures palette
The icon on the palette is just the arrow, but the whole thing shows up when you paste it onto the block diagram.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2011, 16:36
Durham86 Durham86 is offline
Registered User
FRC #2883
 
Join Date: Dec 2009
Location: warroad,MN
Posts: 8
Durham86 is an unknown quantity at this point
Re: Buttons

So now if I wanted to use that button toggle action example on a solenoid how would I set that up? or if you know an example.vi that would be great.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-02-2011, 18:16
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: Buttons

Assuming you use the double solenoid that came in the 2010 or 2011 Kit of Parts, you'd combine the Double Solenoid Example with the Button Toggle example.

Essentially, you need to put a Solenoid Set into each of the Button Toggle Cases
  • Do One Thing (Set the solenoid to Forward)
  • Do The Other thing (Set the solenoid to Reverse)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 08-02-2011, 23:17
Durham86 Durham86 is offline
Registered User
FRC #2883
 
Join Date: Dec 2009
Location: warroad,MN
Posts: 8
Durham86 is an unknown quantity at this point
Re: Buttons

Well that makes sense haha thanks for all the help Mark.
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 21:14.

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