| Lab-Instrument documentation | view source | Contained in the Lab-Instrument distribution. |
Lab::Instrument::HP34411A - HP/Agilent 34410A or 34411A digital multimeter
use Lab::Instrument::HP34411A;
my $hp=new Lab::Instrument::HP34411A(0,22);
print $hp->read_voltage_dc(10,0.00001);
The Lab::Instrument::HP34411A class implements an interface to the 34410A and 34411A digital multimeters by Agilent (formerly HP). Note that the module Lab::Instrument::HP34401A still works for those newer multimeter models.
my $hp=new(\%options);
$datum=$hp->read_voltage_dc($range,$resolution);
Preset and make a dc voltage measurement with the specified range and resolution.
Range is given in terms of volts and can be [0.1|1|10|100|1000|MIN|MAX|DEF]. DEF is default.
Resolution is given in terms of $range or [MIN|MAX|DEF].
$resolution=0.0001 means 4 1/2 digits for example.
The best resolution is 100nV: $range=0.1; $resolution=0.000001.
$datum=$hp->read_voltage_ac($range,$resolution);
Preset and make an ac voltage measurement with the specified range and resolution. For ac measurements, resolution is actually fixed at 6½ digits. The resolution parameter only affects the front-panel display.
$datum=$hp->read_current_dc($range,$resolution);
Preset and make a dc current measurement with the specified range and resolution.
$datum=$hp->read_current_ac($range,$resolution);
Preset and make an ac current measurement with the specified range and resolution. For ac measurements, resolution is actually fixed at 6½ digits. The resolution parameter only affects the front-panel display.
$datum=$hp->read_resistance($range,$resolution);
Preset and measure resistance with specified range and resolution.
$hp->config_voltage($inttime,$range,$count);
Configures device for measurement with specified integration time, voltage range and number of data points (up to 1 million). Afterwards, data can be taken by triggering the multimeter, resulting in faster measurements than using read_voltage_dc, especially when using $count >> 1.
$hp->config_voltage_plc($plc,$range,$count);
Same as config_voltage, but here the number of power line cycles ($plc) is given instead of an integration time.
@array = $hp->read_with_trigger_voltage_dc()
Take data points as configured with config_voltage(). Returns an array.
$hp->display_on();
Turn the front-panel display on.
$hp->display_off();
Turn the front-panel display off.
$hp->display_text($text);
print $hp->display_text();
Display a message on the front panel. The multimeter will display up to 12 characters in a message; any additional characters are truncated. Without parameter the displayed message is returned.
$hp->display_clear();
Clear the message displayed on the front panel.
$hp->scroll_message($message);
Scrolls the message $message on the display of the HP.
$hp->beep();
Issue a single beep immediately.
($err_num,$err_msg)=$hp->get_error();
Query the multimeter's error queue. Up to 20 errors can be stored in the queue. Errors are retrieved in first-in-first out (FIFO) order.
$hp->reset();
Reset the multimeter to its power-on configuration.
$id=$hp->id();
Returns the instruments ID string.
probably many
This is $Id: HP34411A.pm 650 2010-04-22 19:09:27Z schroeer $
Copyright 2004-2009 Daniel Schröer (<schroeer@cpan.org>), 2009-2010 Daniel Schröer, Daniela Taubert
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Lab-Instrument documentation | view source | Contained in the Lab-Instrument distribution. |