The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lab::Connection::LinuxGPIB - LinuxGPIB connection

VERSION

version 3.661

SYNOPSIS

This is not called directly. To make a GPIB suppporting instrument use Lab::Connection::LinuxGPIB, set the connection_type parameter accordingly:

$instrument = new HP34401A( connection_type => 'LinuxGPIB', gpib_board => 0, gpib_address => 14 )

DESCRIPTION

Lab::Connection::LinuxGPIB provides a GPIB-type connection with the bus Lab::Bus::LinuxGPIB, using Linux GPIB (aka libgpib0 in debian) as backend.

It inherits from Lab::Connection::GPIB and subsequently from Lab::Connection.

For Lab::Bus::LinuxGPIB, the generic methods of Lab::Connection suffice, so only a few defaults are set: wait_status=>0, # usec; wait_query=>10, # usec; read_length=>1000, # bytes

CONSTRUCTOR

new

 my $connection = new Lab::Connection::LinuxGPIB(
    gpib_board => 0,
    gpib_address => $address,
    gpib_saddress => $secondary_address
 }

METHODS

This just falls back on the methods inherited from Lab::Connection.

config

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'};

CAVEATS/BUGS

Probably few. Mostly because there's not a lot to be done here. Please report.

SEE ALSO

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by the Lab::Measurement team; in detail:

  Copyright 2011       Andreas K. Huettel, Florian Olbrich
            2012       Florian Olbrich
            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.