Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Serial port polling/multi tasking in an ActiveX component

by Nitrox (Chaplain)
on Nov 18, 2002 at 03:53 UTC ( #213648=perlquestion: print w/replies, xml ) Need Help??

Nitrox has asked for the wisdom of the Perl Monks concerning the following question:

I've been playing with ActiveState's Perl Development kit which includes a utility (perlctrl) for creating ActiveX components.

One of the projects I'd like to port is a script that polls the serial port for data. However, the 3rd party app that would be using this component would need to call other functions while I'm polling the serial port after 'creation'. (this wasn't a requirement as a script since I used Win32::OLE instead of handling 'callbacks').

Has anyone done something similar, and what are my best options for this? Can Win32::SerialPort be used in conjunction with events to avoid the while(1) loop?


  • Comment on Serial port polling/multi tasking in an ActiveX component

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://213648]
Approved by fireartist
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-09-21 21:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found