SR_830
SR_830(uid, visa_resource)
Bases: Instrument
Stanford Research SR-830 Lock-In Amplifier class.
clear()
Clears the status and error registers of the instrument.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
get_dynamic_reserve()
Queries the dynamic reserve setting.
Returns:
| Name | Type | Description |
|---|---|---|
DynamicReserve |
DynamicReserve
|
The current dynamic reserve setting. |
get_external_reference_slope()
Queries the slope of the external reference signal.
Returns:
| Name | Type | Description |
|---|---|---|
ReferenceSlope |
ReferenceSlope
|
The slope of the external reference signal. |
get_filter_slope()
Queries the filter slope setting.
Returns:
| Name | Type | Description |
|---|---|---|
FilterSlope |
FilterSlope
|
The current filter slope setting. |
get_frequency()
Queries the current reference frequency.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The current reference frequency in Hz. |
get_harmonic()
Queries the current harmonic setting.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The current harmonic setting. |
get_input_configuration()
Queries the input configuration.
Returns:
| Name | Type | Description |
|---|---|---|
InputConfiguration |
InputConfiguration
|
The current input configuration. |
get_input_coupling()
Queries the input coupling configuration.
Returns:
| Name | Type | Description |
|---|---|---|
InputCoupling |
InputCoupling
|
The current input coupling configuration. |
get_input_grounding()
Queries the input grounding configuration.
Returns:
| Name | Type | Description |
|---|---|---|
InputGrounding |
InputGrounding
|
The current input grounding configuration. |
get_notch_filters()
Queries the notch filter configuration.
Returns:
| Name | Type | Description |
|---|---|---|
NotchFilters |
NotchFilter
|
The current notch filter configuration. |
get_phase()
Queries the current excitation phase in degrees.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The current phase angle in degrees. |
get_reference_amplitude()
Queries the reference amplitude.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The reference amplitude in volts. |
get_reference_source()
Queries the current reference source.
Returns:
| Name | Type | Description |
|---|---|---|
ReferenceSource |
ReferenceSource
|
The current reference source (INTERNAL or EXTERNAL). |
get_sensitivity()
Queries the sensitivity setting.
Returns:
| Name | Type | Description |
|---|---|---|
Sensitivity |
Sensitivity
|
The current sensitivity setting. |
get_sync_filter_state()
Queries the state of the synchronization filter.
Returns:
| Name | Type | Description |
|---|---|---|
SyncFilterState |
SyncFilterState
|
The current state of the synchronization filter. |
get_time_constant()
Queries the time constant setting.
Returns:
| Name | Type | Description |
|---|---|---|
TimeConstant |
TimeConstant
|
The current time constant setting. |
identify()
Queries the instrument identification string.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The identification string of the instrument. |
reset()
Resets the instrument to its default state.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
reset_data_buffer()
Resets the data buffer of the instrument.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_dynamic_reserve(reserve)
Sets the dynamic reserve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reserve
|
DynamicReserve
|
The dynamic reserve setting to apply. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_external_reference_slope(slope)
Sets the slope of the external reference signal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slope
|
ReferenceSlope
|
The slope to set (e.g., SINE, TTL_RISING, TTL_FALLING). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_filter_slope(filter_slope)
Sets the filter slope.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filter_slope
|
FilterSlope
|
The filter slope setting to apply. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_frequency(frequency)
Sets the reference frequency.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency
|
float
|
The frequency in Hz to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_harmonic(harmonic)
Sets the harmonic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
harmonic
|
int
|
The harmonic to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_input_configuration(configuration)
Sets the input configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configuration
|
InputConfiguration
|
The input configuration to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_input_coupling(configuration)
Sets the input coupling configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configuration
|
InputCoupling
|
The input coupling configuration to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_input_grounding(configuration)
Sets the input grounding configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configuration
|
InputGrounding
|
The input grounding configuration to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_notch_filters(configuration)
Sets the notch filter configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configuration
|
NotchFilters
|
The notch filter configuration to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_phase(phase)
Sets the excitation phase in degrees.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
phase
|
float
|
The phase angle in degrees to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_reference_amplitude(amplitude)
Sets the reference amplitude.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amplitude
|
float
|
The amplitude in volts to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_reference_source(source)
Sets the reference source.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
ReferenceSource
|
The reference source to set (INTERNAL or EXTERNAL). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_sensitivity(sensitivity)
Sets the sensitivity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sensitivity
|
Sensitivity
|
The sensitivity setting to apply. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_sync_filter_state(state)
Sets the state of the synchronization filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
SyncFilterState
|
The synchronization filter state to apply. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |
set_time_constant(time_constant)
Sets the time constant.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time_constant
|
TimeConstant
|
The time constant setting to apply. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Status code indicating the success of the operation. |