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 #42758] Fri, 25 February 2005 08:57 Go to previous message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
Michele,


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.

I don't think you will find it, unless maybe if you write a DLM with a
widget stub or something.

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

If you are just picking off locations from the NMEA stream from your
GPS, then all you have to do is set up the buffer on the serial port to
a big enough size, then add a widget with a timer event to your
application. When the timer event occurs, check the serial port buffer
for the latest data (there is a serial port DLM on the RSI site). Skip
it if there is no data, read the last value and purge the buffer is
there is data.

Brad
[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: Sat Oct 11 14:35:10 PDT 2025

Total time taken to generate the page: 0.92743 seconds