Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Serial port polling/multi tasking in an ActiveX component

by Nitrox (Chaplain)
on Nov 18, 2002 at 03:53 UTC ( [id://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?

-Nitrox

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found