Lab::Connection::VISA_GPIB - GPIB-type connection class which uses NI VISA (Lab::VISA) as backend
version 3.623
This GPIB Connection class for Lab::Bus::VISA implements a GPIB-Standard connection on top of VISA (translates GPIB parameters to VISA resource names, mostly, to be exchangeable with other GPIB connections.
This class is not called directly. To make a GPIB suppporting instrument use Lab::Connection::VISA_GPIB, set the connection_type parameter accordingly:
$instrument = new HP34401A( connection_type => 'VISA_GPIB', gpib_board => 0, gpib_address => 14 )
Lab::Connection::VISA_GPIB provides a GPIB-type connection with Lab::Bus::VISA using NI VISA (Lab::VISA) as backend.
Lab::Connection::VISA_GPIB
It inherits from Lab::Connection::GPIB and subsequently from Lab::Connection.
The main feature is to assemble the standard gpib connection options gpib_board gpib_address gpib_saddress into a valid NI VISA resource name (see Lab::Connection::VISA for more details).
my $connection = new Lab::Connection::VISA_GPIB( gpib_board => 0, gpib_address => $address, gpib_saddress => $secondary_address }
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'};
Access to GPIB VISA attributes, device clear, ...
Probably few. Mostly because there's not a lot to be done here. Please report.
Lab::Connection
Lab::Connection::GPIB
Lab::Connection::VISA
This software is copyright (c) 2018 by the Lab::Measurement team; in detail:
Copyright 2011 Andreas K. Huettel, David Kalok, Florian Olbrich 2012 Florian Olbrich, Stefan Geissler 2013 Andreas K. Huettel 2016 Simon Reinhardt 2017 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.