comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: detection of events from the serial port
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: detection of events from the serial port [message #42759 is a reply to message #42758] Fri, 25 February 2005 08:53 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
michele wrote:

> i was looking for something that detects an event when a signal is
> sent to the serial port but i couldn't find it.
> another solution could be this: being the gps reader something that
> should always be on (it must always run) i wanted to nest it in the
> main event loop of my widget application but i don't know how to do
> it... do i have to modify xmanager? i don't think this is a nice
> solution....

Set a timer event on one of your widgets of a reasonable length, say 1
or 2 seconds. In your event handler for that widget, poll the serial
port when the timer event fires, update your application data structure
and draw. IDL timers are single shot so remember to set another timer
event at the bottom of your polling routine.

-Rick
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Speed problem
Next Topic: OBJ_HASMETHOD

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon Dec 01 08:40:09 PST 2025

Total time taken to generate the page: 0.24329 seconds