Lab::Instrument::SR830 - Stanford Research SR830 Lock-In Amplifier
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();
The Lab::Instrument::SR830 class implements an interface to the Stanford Research SR830 Lock-In Amplifier.
$sr830=new Lab::Instrument::SR830($board,$gpib);
($x,$y)= $sr830->get_xy();
Reads channels x and y simultaneously; returns an array.
($r,$phi)= $sr830->get_rphi();
Reads amplitude and phase simultaneously; returns an array.
$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.
$sens = $sr830->get_sens();
Returns the value of the sensitivity, as number in Volt.
$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.
$tc = $sr830->get_tc();
Returns the time constant, as number in seconds.
$sr830->set_frequency(334);
Sets reference frequency; value given in Hz. Values between 0.001 Hz and 102 kHz can be set.
$freq=$sr830->get_frequency();
Returns reference frequency in Hz.
$sr830->set_amplitude(0.005);
Sets output amplitude to the value given (in V); values between 4 mV and 5 V are possible.
$ampl=$sr830->get_amplitude();
Returns amplitude of the sine output in V.
$id=$sr830->id();
Returns the instruments ID string.
command to change a property like amplitude or time constant might have to be executed twice to take effect
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
(c) 2005-2010 Daniel Schröer 2011 Andreas K. Hüttel
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.