Go to Post OK, I may have heavily influenced their decision, but I would never kill a mentor for not choosing an event I was planning... maim maybe, but never kill! :D - KathieK [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 18-01-2017, 10:00
20181180's Avatar
20181180 20181180 is offline
Registered User
AKA: Joseph M
FRC #3974 (E=mCD)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Wyncote
Posts: 8
20181180 is an unknown quantity at this point
Toggle program for a controller?

Quick question:

Does anyone have a screenshot or an explanation on how to make something that is toggle-able in LabVIEW? We're trying to have a piston be opened upon a button press and then have it close upon the same button press, not having to hold down the button or release the button to let it go out and in respectively.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2017, 10:05
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,906
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: Toggle program for a controller?

Here are some examples:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2017, 10:33
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Toggle program for a controller?

You also might want to include a function to "debounce" the button. A quick and dirty way is to wait at least 1/2 a second before recognizing a change in state of the button.
__________________

Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2017, 11:12
20181180's Avatar
20181180 20181180 is offline
Registered User
AKA: Joseph M
FRC #3974 (E=mCD)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Wyncote
Posts: 8
20181180 is an unknown quantity at this point
Re: Toggle program for a controller?

Quote:
Originally Posted by Mark McLeod View Post
Here are some examples:

Thank you! This is very helpful!
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2017, 14:24
MStewart MStewart is offline
Registered User
FRC #4935
 
Join Date: Jan 2017
Location: North Carolina
Posts: 1
MStewart is an unknown quantity at this point
Re: Toggle program for a controller?

'Boolean Crossing PtByPt.vi' can be useful for detecting joystick button presses.


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 10:53.

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