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

NAME

Lab::Instrument::U2000 - Agilent U2000 series USB Power Sensor

DESCRIPTION

The Lab::Instrument::U2000 class implements an interface to the U2000 series power sensors from Agilent.

CONSTRUCTOR

    my $power=new(\%options);

METHODS

get_value

    $value=$power->read();

Read out the current measurement value, for whatever type of measurement the sensor is currently configured. Waits for trigger.

id

    $id=$power->id();

Returns the instruments ID string.

set_sample_rate $power->set_sample_rate(string);

Valid values are MIN, MAX, NORM, DOUBLE, FAST and 1-110 (rate in Hz).

set_step_detect $power->set_step_detect(string);

Valid values are ON and OFF.

set_frequency $power->set_frequency(string or number)

Sets frequency for internal frequency correction (in Hz). Valid values are DEF, MIN, MAX and 1kHz to 1000GHz.

CAVEATS/BUGS

Sometimes the sensor hangs for a short amount of time. Very seldom it completely stops working. This is probably either a bug in the firmware or in the kernel driver as not even a reset of the USB port reenable communication.

SEE ALSO

AUTHOR/COPYRIGHT

  Copyright 2012 Hermann Kraus

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