
Lab::Connection::VISA_RS232 - RS232-type connection class which uses Lab::Bus::VISA and thus NI VISA (Lab::VISA) as a backend.
This class is not called directly. To make a RS232 suppporting instrument use Lab::Connection::VISA_RS232, set the connection_type parameter accordingly:
$instrument = new BlaDeviceType(
connection_type => 'VISA_RS232',
rs232_adress => 1
)
Lab::Connection::VISA_RS232 provides a RS232-type connection with Lab::Bus::VISA using NI VISA (Lab::VISA) as backend.
It inherits from Lab::Connection::RS232 and subsequently from Lab::Connection.
The main feature is to set upon initialization all the RS232 libe parameters baud_rate ...
my $connection = new Lab::Connection::VISA_RS232(
rs232_adress => 1,
baud_rate => 9600,
)
This just falls back on the methods inherited from Lab::Connection.
Provides unified access to the fields in initial @_ to all the child classes. E.g.
$RS232_Address=$instrument->Config(rs232_address);
Without arguments, returns a reference to the complete $self->Config aka @_ of the constructor.
$Config = $connection->Config();
$RS232_Address = $connection->Config()->{'rs232_address'};
Probably few. Mostly because there's not a lot to be done here. Please report.
Copyright 2011 Florian Olbrich
2012 Andreas K. Hüttel
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.