NAME

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

VERSION

version 3.700

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.

Error handling needs to be improved. Neither timeouts nor errors are handled correctly. Error reporting from the kernel driver is bad.

COPYRIGHT AND LICENSE

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

Copyright 2012       Hermann Kraus
          2016       Simon Reinhardt
          2017       Andreas K. Huettel

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