++ed by:
AMBA

1 PAUSE user
1 non-PAUSE user.

Andreas K. Hüttel
and 4 contributors

NAME

Lab::Bus::RS232 - RS232 or Virtual Comm port bus

SYNOPSIS

 my $bus = Lab::Bus::RS232({
    port => '/dev/ttyACM0'
  });

Return blessed $self, with @_ accessible through $self->config().

port: Device name to use (e.g. COM1 under Windows or /dev/ttyUSB1 under Linux)

TODO: check this!!!

DESCRIPTION

This is a bus for Lab::Measurement to communicate via RS232 or Virtual Comm port e.g. for FTDI devices.

CONSTRUCTOR

new

All parameters are used as by Device::SerialPort. port is needed in every case. An additional parameter reuse is avaliable if two instruments use the same port. This is mainly implemented for USBprologix gateway. reuse can be a SerialPort object or a Lab::Instrument... package. Default value for timeout is 500ms and can be set by the parameter "timeout". Other options: handshake, baudrate, databits, stopbits and parity

METHODS

Used by Lab::Instrument. Not for direct use!!!

Read

Reads data.

Write

Sent data to instrument

Handle

Give instrument object handle

CAVEATS/BUGS

Probably many. So far BrutalRead and Clear are not implemented because not needed for this interface.

SEE ALSO

Lab::Instrument
Win32::SerialPort
Device::SerialPort

AUTHOR/COPYRIGHT

 Copyright 2010      Matthias Voelker <mvoelker@cpan.org>
           2011      Florian Olbrich, Andreas K. Hüttel

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.