in reply to Interfacing Instruments through serial port and parllel port through PERL

My preferred Linux solution is Expect.pm and cu. The cu step may seem unnecessary, but I like having it there to manipulate the serial port settings. That's what it's for, after all.

*Woof*

Replies are listed 'Best First'.
(jcwren) RE: Re: Interfacing to serial port and parllel ports
by jcwren (Prior) on Jul 31, 2000 at 18:59 UTC
    That seems like a much more complicated way of doing it. Win32::SerialPort and Device::SerialPort are basically interchangable, and give you full control of the serial port, from baud rate, stop/start bits, parity, to break control, DTR/RTS management, etc. Very easy to use, too.

    And, if someone ever ports them to the MacIntosh (and who knows, maybe they have), you'd be platform ready there.

    --Chris

    e-mail jcwren
      I'ts more complicated, but more flexible. The reason I first ended up doing it this way is I was porting a program which talked to a serial device through a port server. So, the only thing I had to do to port it was change the program Expect.pm was talking to... from telnet to cu.

      Of course, if you don't need the flexibility, your way is probably more simple.

      *Woof*