Go to Post "We used to shut the robot up in a box and send it away from home. Now we just suffocate it." - GaryVoshol [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 23-02-2016, 13:58
bharrison6 bharrison6 is offline
Registered User
FRC #3843
 
Join Date: Jan 2014
Location: Murray Ky
Posts: 37
bharrison6 is on a distinguished road
Flip a boolean local variable with a button

I was wondering how I might flip a local Boolean variable using a single button. I can of course use the NOT command and set up a switch to invert the variable anytime the button is pushed. The problem is it will constantly be flipping the variable while the button is held. I want it to only flip it one time and then wait until the button is released and before flipping it again.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2016, 14:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Flip a boolean local variable with a button

Quote:
Originally Posted by bharrison6 View Post
I want it to only flip it one time and then wait until the button is released and before flipping it again.
http://www.chiefdelphi.com/forums/sh...5&postcount=11


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 08:08.

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