For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > April 2005 > Buffer read with Win32API::CommPort









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Buffer read with Win32API::CommPort
Bizarroterl

2005-04-24, 3:55 am

Hi,
I'm a newb with Perl. I'm using the Win32API::CommPort module and seem
to have most of what I need working. One issue I'm hitting a wall on
is how to read everything in the serial in buffer. The data I'm trying
to read doesn't have newline/linefeed (I can read that type of input).

I've read through all the docs/examples I could find and I can't seem
to find anything like this.

Sorry if I'm not describing this correctly. TIA

Bizarroterl

2005-04-24, 3:55 am

Figured it out.
my $DataRed = $DevicePort->read(255);
does what I need.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com