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

NAME

Lab::Instrument::SR830::AuxOut -- Aux Outputs of the Stanford Research SR830 Lock-In Amplifier.

SYNOPSIS

 use Lab::Instrument::SR830::AuxOut
 my $output = Lab::Instrument::SR830::AuxOut->new(%options, channel => 1);

DESCRIPTION

This class provides access to the four DC outputs of the SR830. You have to provide a channel (1..4) parameter in the constructor.

To use multiple virtual instruments, which use the same physical device, you have to share the connection between the virtual instruments:

 use Lab::Measurement;

 # Create the shared connection. 
 my $connection = Connection('LinuxGPIB', {gpib_address => 8});
 
 # Create two outputs.
 my $gate = Instrument('SR830::AuxOut', {connection => $connection,
                                        channel => 1,
                                        gate_protect => 0});
 my $bias = Instrument('SR830::AuxOut', {connection => $connection,
                                        channel => 2,
                                        gate_protect => 0});

You can now use $gate and $bias to build XPRESS Voltage Sweeps. The SR830 does not have hardware support for continuous voltage sweeps. Thus, the mode parameter of the sweep must be set to 'step' or 'list' and the jump parameter must be set to 1. Example sweep configuration:

 my $gate_sweep = Sweep('Voltage',
                       {
                               mode => 'step',
                               instrument => $gate,
                               points => [-0.1,0.1],
                               stepwidth => [0.001],
                               jump => 1,
                               rate => [0.001],
                               
                       });
 
 my $bias_sweep = Sweep('Voltage',
                       {
                               mode => 'step',
                               instrument => $bias,
                               points => [-0.1,0.1],
                               stepwidth => [0.001],
                               rate => [0.001],
                               jump => 1,
                       });
 
 

Methods

_set_level($voltage)

Set the output voltage. Will throw an exception, if the absolute value of $voltage is bigger than 10.5 V.

set_voltage($voltage)

Equivalent to _set_level.

set_level($voltage)

See Lab::Instrument::Source.

get_level()

Query the current output voltage.