Lab::Moose::Instrument::HP3458A - HP 3458A digital multimeter
version 3.901
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();
my $value = $dmm->get_value();
Read multimeter output value.
$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.
$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.
$dmm->set_trig_event(value => 'EXT'); $trig_event = $dmm->get_trig_event();
Get/Set trigger event.
$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.
$dmm->set_range(value => 100e-3); # select 100mV range (if in DCV mode) $range = $dmm->get_range();
Get/Set measurement 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.
OFF, ON, ONCE
my ($msize, $unused) = $dmm->get_mem_size();
$dmm->set_high_speed_mode(format => 'DINT');
format can be 'SINT' or 'DINT'.
format
Croak if autorange is enabled.
This driver consumes the following roles:
This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
Copyright 2017 Simon Reinhardt 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.
To install Lab::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Moose
CPAN shell
perl -MCPAN -e shell install Lab::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.