NAME

Lab::Instrument::SR830 - Stanford Research SR830 lock-in amplifier

VERSION

version 3.641

SYNOPSIS

use Lab::Instrument::SR830;

my $sr=new Lab::Instrument::SR830(
   connection_type=>'LinuxGPIB',
   gpib_address=>12,
);

($x,$y) = $sr->get_xy();
($r,$phi) = $sr->get_rphi();

DESCRIPTION

The Lab::Instrument::SR830 class implements an interface to the Stanford Research SR830 Lock-In Amplifier.

CONSTRUCTOR

$sr830=new Lab::Instrument::SR830($board,$gpib);

METHODS

get_xy

($x,$y)= $sr830->get_xy();

Reads channels x and y simultaneously; returns an array.

get_rphi

($r,$phi)= $sr830->get_rphi();

Reads amplitude and phase simultaneously; returns an array.

set_sens

$string=$sr830->set_sens(1E-7);

Sets sensitivity (value given in V); possible values are: 2 nV, 5 nV, 10 nV, 20 nV, 50 nV, 100 nV, ..., 100 mV, 200 mV, 500 mV, 1V If the argument is not in this list, the next higher value will be chosen.

Returns the value of the sensitivity that was actually set, as number in Volt.

get_sens

$sens = $sr830->get_sens();

Returns the value of the sensitivity, as number in Volt.

set_tc

$string=$sr830->set_tc(1E-3);

Sets time constant (value given in seconds); possible values are: 10 us, 30us, 100 us, 300 us, ..., 10000 s, 30000 s If the argument is not in this list, the next higher value will be chosen.

Returns the value of the time constant that was actually set, as number in seconds.

get_tc

$tc = $sr830->get_tc();

Returns the time constant, as number in seconds.

set_frequency

$sr830->set_frequency(334);

Sets reference frequency; value given in Hz. Values between 0.001 Hz and 102 kHz can be set.

get_frequency

$freq=$sr830->get_frequency();

Returns reference frequency in Hz.

set_amplitude

$sr830->set_amplitude(0.005);

Sets output amplitude to the value given (in V); values between 4 mV and 5 V are possible.

get_amplitude

$ampl=$sr830->get_amplitude();

Returns amplitude of the sine output in V.

id

$id=$sr830->id();

Returns the instruments ID string.

CAVEATS/BUGS

command to change a property like amplitude or time constant might have to be executed twice to take effect

SEE ALSO

Lab::Instrument

COPYRIGHT AND LICENSE

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

Copyright 2009       Andreas K. Huettel, Daniela Taubert
          2010       Andreas K. Huettel, Daniel Schroeer
          2011       Andreas K. Huettel, Florian Olbrich
          2013       Andreas K. Huettel
          2014       Alois Dirnaichner, Andreas K. Huettel
          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.