The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lab::Instrument - Worker class for VISA based instrument classes

SYNOPSIS

 use Lab::Instrument;
 
 my $hp22=  new Lab::Instrument(0,22);
 my $id=$hp22->Query('*IDN?');

DESCRIPTION

This class describes a general visa based instrument.

It can be used either directly by the laborant (programmer) to work with an instrument that doesn't have its own perl class (like Lab::Instrument::HP34401A). Or it can be used by such a specialized perl instrument class (like Lab::Instrument::HP34401A), to delegate the actual visa work. (All the instruments in the default package do so.)

CONSTRUCTORS

new

 $instrument=new Lab::Instrument($gpib_board,$gpib_addr);

METHODS

Write

 $write_count=$instrument->Write($command);

Query

 $result=$instrument->Query($command);

Clear

 $instrument->Clear();

Handle

 $instr_handle=$instrument->Handle();

CAVEATS/BUGS

Probably many.

SEE ALSO

VISA

The Lab::Instrument class uses the VISA module (VISA).

AUTHOR/COPYRIGHT

This is $Id: Instrument.pm 85 2005-11-10 23:35:43Z schroeer $

Copyright 2004/2005 Daniel Schröer (http://www.danielschroeer.de)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 186:

Non-ASCII character seen before =encoding in 'Schröer'. Assuming CP1252