Lab::Bus::RS232 - RS232 or Virtual Comm port bus
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)
port
COM1
/dev/ttyUSB1
TODO: check this!!!
This is a bus for Lab::Measurement to communicate via RS232 or Virtual Comm port e.g. for FTDI devices.
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
Device::SerialPort
reuse
Lab::Instrument...
Used by Lab::Instrument. Not for direct use!!!
Lab::Instrument
Reads data.
Sent data to instrument
Give instrument object handle
Probably many. So far BrutalRead and Clear are not implemented because not needed for this interface.
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.
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.