Lab::Instrument::SR830 - Stanford Research SR830 Lock-In Amplifier


Lab-Instrument documentation  | view source Contained in the Lab-Instrument distribution.

Index


NAME

Top

Lab::Instrument::SR830 - Stanford Research SR830 Lock-In Amplifier

SYNOPSIS

Top

    use Lab::Instrument::SR830;

    my $sr830=new Lab::Instrument::SR830(0,10);

    ($x,$y) = $sr780->read_xy();
    ($r,$phi) = $sr780->read_rphi();

DESCRIPTION

Top

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

CONSTRUCTOR

Top

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

METHODS

Top

read_xy

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

Reads channels x and y simultaneously; returns an array.

read_rphi

  ($r,$phi)= $sr830->read_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 string.

get_sens

  $sens = $sr830->get_sens();

Returns sensitivity (as string, e.g. "50 nV").

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 string.

get_tc

  $tc = $sr830->get_tc();

Returns the time constant (as string, e.g. "3 ms").

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 (value given 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

Top

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

SEE ALSO

Top

Lab::Instrument

AUTHOR/COPYRIGHT

Top


Lab-Instrument documentation  | view source Contained in the Lab-Instrument distribution.