NAME

Lab::Moose::Instrument::HP3458A - HP 3458A digital multimeter

VERSION

version 3.881

SYNOPSIS

use Lab::Moose;

my $dmm = instrument(
    type => 'HP3458A',
    connection_type => 'LinuxGPIB',
    connection_options => {
        gpib_address => 12,
        timeout => 10, # if not given, use connection's default timeout
    }
);

$dmm->set_sample_event(value => 'SYN');
$dmm->set_nplc(value => 2);

my $value = $dmm->get_value();

METHODS

get_value

my $value = $dmm->get_value();

Read multimeter output value.

get_nplc/set_nplc

$dmm->set_nplc(value => 10);
$nplc = $dmm->get_nplc();

Get/Set integration time in Number of Power Line Cycles. This also affects the resolution (bits/digits) of the readings:

- 0.0001 NPLC: 4.5 digits, 16 bits, 83300 readings/s (OFORMAT SINT) - 0.0006 NPLC: 5.5 digits, 18 bits, 41650 readings/s - 0.01 NPLC: 6.5 digits, 21 bits, 4414 readings/s - 0.1 NPLC: 6.5 digits, 21 bits, 493 readings/s - 1 NPLC: 7.5 digits, 25 bits, 50 readings/s - 10 NPLC: 8.5 digits, 28 bits, 5 readings/s

All values for auto-zero disabled.

get_nrdgs/set_nrdgs

$dmm->set_nrdgs(readings => 2, sample_event => 'AUTO');
($readings, $sample_event) = $dmm->get_nrdgs();

Get/Set number of readings taken per trigger event and the sample event.

get_trig_event/set_trig_event

$dmm->set_trig_event(value => 'EXT');
$trig_event = $dmm->get_trig_event();

Get/Set trigger event.

get_end/set_end

$dmm->set_end(value => 'ALWAYS');
$end = $dmm->get_end();

Get/Set control of GPIB End Or Identify (EOI) function. This driver sets this to 'ALWAYS' on startup.

get_range/set_range

$dmm->set_range(value => 100e-3); # select 100mV range (if in DCV mode)
$range = $dmm->get_range();

Get/Set measurement range.

get_auto_range/set_auto_range

$dmm->set_auto_range(value => 'OFF');
$auto_range = $dmm->get_auto_range();

Get/Set the status of the autorange function. Possible values: OFF, ON, ONCE.

get_mem_size

my ($msize, $unused) = $dmm->get_mem_size();

set_high_speed_mode

$dmm->set_high_speed_mode(format => 'DINT');

format can be 'SINT' or 'DINT'.

Croak if autorange is enabled.

Consumed Roles

This driver consumes the following roles:

Lab::Moose::Instrument::Common

COPYRIGHT AND LICENSE

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

Copyright 2017       Simon Reinhardt
          2020       Andreas K. Huettel
          2021       Simon Reinhardt
          2022       Andreas K. Huettel, Simon Reinhardt

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