Re: how do I use a real-life pushbutton to simulate a uicontrol pushbutton?
- From: vihang <vihang_patil@xxxxxxxxx>
- Date: Mon, 21 Aug 2006 09:21:48 -0400
Sanjeev Sarpal wrote:
Dear Vihang,
I don't think that there is method for simulating a button press,
but
you could certainly set an attribute or variable when your real
life
button is pressed. A good way of doing this is via the serial port.
Set up your switch and debounce circuit via a line driver, and
connect it to the CTS (clear to send) for example. You can then
poll
the serial status register in order to establish when the button
has
been pressed.
Just a suggestion.
Sanjeev.
-----------------------------------------
Dr. Sanjeev Sarpal CEng, MIET
Advanced Solutions Nederland
website: <http://www.advancedsolutions.org>
Dear Mr.Sanjeev
Thank you for your suggestion, but I could not understand by "Set up
your switch and debounce circuit via a line driver", what does it
actually imply?
If you could elaborate on it, it would really help me.
Regards
Vihang
.
- Follow-Ups:
- Re: how do I use a real-life pushbutton to simulate a uicontrol pushbutton?
- From: Sanjeev Sarpal
- Re: how do I use a real-life pushbutton to simulate a uicontrol pushbutton?
- References:
- Prev by Date: Re: Having the GUI print an ', is this possible?
- Next by Date: Command Line arguments
- Previous by thread: Re: how do I use a real-life pushbutton to simulate a uicontrol pushbutton?
- Next by thread: Re: how do I use a real-life pushbutton to simulate a uicontrol pushbutton?
- Index(es):
Loading