Lab::Connection::VISA_RS232 - RS232-type connection which uses NI VISA (Lab::VISA) as backend
version 3.771
This RS232 Connection class for Lab::Bus::VISA implements a RS232-Standard connection on top of VISA (translates RS232 settings to VISA attributes, mostly).
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', port => 'ASRL1', )
Lab::Connection::VISA_RS232 provides a RS232-type connection with Lab::Bus::VISA using NI VISA (Lab::VISA) as backend.
Lab::Connection::VISA_RS232
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( port => 'ASRL1', 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.
$GPIB_Address=$instrument->Config(gpib_address);
Without arguments, returns a reference to the complete $self->Config aka @_ of the constructor.
$Config = $connection->Config(); $GPIB_Address = $connection->Config()->{'gpib_address'};
Probably few. Mostly because there's not a lot to be done here. Please report.
Lab::Connection
Lab::Connection::RS232
Lab::Connection::VISA
This software is copyright (c) 2021 by the Lab::Measurement team; in detail:
Copyright 2012 Andreas K. Huettel, Stefan Geissler 2016 Simon Reinhardt 2017 Andreas K. Huettel 2020 Andreas K. Huettel
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system 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.