lantz.drivers.stanford¶
company: | Standford Research Systems. |
---|---|
description: | Manufactures test instruments for research and industrial applications |
website: | http://www.thinksrs.com/ |
copyright: | 2015 by Lantz Authors, see AUTHORS for more details. |
---|---|
license: | BSD, see LICENSE for more details. |
- class lantz.drivers.stanford.SR830(resource_name, name=None, **kwargs)¶
Bases: lantz.messagebased.MessageBasedDriver
Parameters: - resource_name (str) – The resource name
- kwargs – keyword arguments passed to the resource during initialization.
Params name: easy to remember identifier given to the instance for logging purposes.
- auto_gain_async_async(*args, **kwargs)¶
(Async) Equivalent to press the Auto Gain key in the front panel. Might take some time if the time constant is long. Does nothing if the constant is greater than 1 second.
- auto_offset_async_async(*args, **kwargs)¶
(Async) Automatically offset a given channel to zero. Is equivalent to press the Auto Offset Key in the front panel.
Parameters: channel_name – the name of the channel.
- auto_phase_async_async(*args, **kwargs)¶
(Async) Equivalent to press the Auto Phase key in the front panel. Might take some time if the time constant is long. Does nothing if the phase is unstable.
- auto_reserve_async_async(*args, **kwargs)¶
(Async) Equivalent to press the Auto Reserve key in the front panel. Might take some time if the time constant is long.
- measure_async(*args, **kwargs)¶
- pause_data_storage_async(*args, **kwargs)¶
(Async) Pause data storage
- read_buffer_async(*args, **kwargs)¶
(Async) Queries points stored in the Channel buffer
Parameters: - channel – Number of the channel (1, 2).
- start – Index of the buffer to start.
- length – Number of points to read. Defaults to the number of points in the buffer.
- format – Transfer format ‘a’: ASCII (slow) ‘b’: IEEE Binary (fast) - NOT IMPLEMENTED ‘c’: Non-IEEE Binary (fastest) - NOT IMPLEMENTED
- recall_state_async(*args, **kwargs)¶
(Async) Recalls instrument state in specified non-volatile location.
Parameters: location – non-volatile storage location.
- reset_data_storage_async(*args, **kwargs)¶
(Async) Reset data buffers. The command can be sent at any time - any storage in progress, paused or not. will be reset. The command will erase the data buffer.
- save_state_async(*args, **kwargs)¶
(Async) Saves instrument state in specified non-volatile location.
Previously stored state in location is overwritten (no error is generated). :param location: non-volatile storage location.
- start_data_storage_async(*args, **kwargs)¶
(Async) Start or resume data storage
- trigger_async(*args, **kwargs)¶
(Async) Software trigger.
- wait_bit1()¶
- DEFAULTS = {'COMMON': {'write_termination': '\n', 'read_termination': '\n'}}¶
- DEFAULTS_changed¶
- alarm_enabled¶
Key click
Values: {False: 0, True: 1}
- alarm_enabled_changed¶
- analog_input¶
Keys: {1, 2, 3, 4} Input voltage in the auxiliary analog input.
Units: volt
- analog_input_changed¶
- analog_output¶
Keys: {1, 2, 3, 4} Ouput voltage in the auxiliary analog output.
Units: volt Limits: (-10.5, 10.5, 0.001)
- analog_output_changed¶
- analog_value¶
Keys: ANY Units: volt
- analog_value_changed¶
- auto_gain = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa45f8>>, None)¶
- auto_gain_async = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4550>>, None)¶
- auto_gain_async_changed¶
- auto_gain_changed¶
- auto_offset = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa49e8>>, None)¶
- auto_offset_async = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4940>>, None)¶
- auto_offset_async_changed¶
- auto_offset_changed¶
- auto_phase = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4898>>, None)¶
- auto_phase_async = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa47f0>>, None)¶
- auto_phase_async_changed¶
- auto_phase_changed¶
- auto_reserve = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4748>>, None)¶
- auto_reserve_async = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa46a0>>, None)¶
- auto_reserve_async_changed¶
- auto_reserve_changed¶
- buffer_length¶
- buffer_length_changed¶
- display¶
Keys: {1, 2} Front panel output source.
- display_changed¶
- filter_db_per_oct¶
Time constant.
Values: {24, 18, 12, 6}
- filter_db_per_oct_changed¶
- frequency¶
Reference frequency.
Units: Hz Limits: (0.001, 102000, 1e-05)
- frequency_changed¶
- front_output¶
Keys: {1, 2} Front panel output source.
Values: {‘display’: 0, ‘xy’: 1}
- front_output_changed¶
- harmonic¶
Detection harmonic.
Limits: (1, 19999, 1)
- harmonic_changed¶
- input_configuration¶
Configuration of the Input.
Values: {‘A-B’: 1, ‘A’: 0, ‘I1’: 2, ‘I100’: 3}
- input_configuration_changed¶
- input_coupling¶
Input coupling.
Values: {‘DC’: 1, ‘AC’: 0}
- input_coupling_changed¶
- input_filter¶
Input line notch filters (1x, 2x).
Values: {(False, True): 2, (True, False): 1, (False, False): 0, (True, True): 3}
- input_filter_changed¶
- input_shield¶
Input shield grounding.
Values: {‘float’: 0, ‘ground’: 1}
- input_shield_changed¶
- key_click_enabled¶
Key click
Values: {False: 0, True: 1}
- key_click_enabled_changed¶
- measure = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4fefb630>>, None)¶
- measure_changed¶
- pause_data_storage = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4fefb240>>, None)¶
- pause_data_storage_changed¶
- read_buffer = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4fefb8d0>>, None)¶
- read_buffer_changed¶
- recall_state = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4390>>, None)¶
- recall_state_changed¶
- reference_internal¶
Reference source.
Values: {False: 0, True: 1}
- reference_internal_changed¶
- reference_phase_shift¶
Phase shift of the reference.
Units: degrees Limits: (-360, 729.99, 0.01)
- reference_phase_shift_changed¶
- reference_trigger¶
Reference trigger when using the external reference mode.
Values: {‘zero_crossing’: 0, ‘rising_edge’: 1}
- reference_trigger_changed¶
- remote¶
Lock Front panel.
Values: {False: 1, True: 0}
- remote_changed¶
- reserve_mode¶
Reserve mode.
Values: {‘low’: 2, ‘normal’: 1, ‘high’: 0}
- reserve_mode_changed¶
- reset_data_storage = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4fefb3c8>>, None)¶
- reset_data_storage_changed¶
- sample_rate¶
Sample rate.
Values: OrderedDict([(‘62.5 mHz’, 0), (‘125 mHz’, 1), (‘250 mHz’, 2), (‘500 mHz’, 3), (‘1 Hz’, 4), (‘2 Hz’, 5), (‘4 Hz’, 6), (‘8 Hz’, 7), (‘16 Hz’, 8), (‘32 Hz’, 9), (‘64 Hz’, 10), (‘128 Hz’, 11), (‘256 Hz’, 12), (‘512 Hz’, 13), (‘trigger’, 14)])
- sample_rate_changed¶
- save_state = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4400>>, None)¶
- save_state_changed¶
- sensitivity¶
Sensitivity.
Values: OrderedDict([(‘2 nV/fA’, 0), (‘5 nV/fA’, 1), (‘10 nV/fA’, 2), (‘20 nV/fA’, 3), (‘50 nV/fA’, 4), (‘100 nV/fA’, 5), (‘200 nV/fA’, 6), (‘500 nV/fA’, 7), (‘1 uV/pA’, 8), (‘2 uV/pA’, 9), (‘5 uV/pA’, 10), (‘10 uV/pA’, 11), (‘20 uV/pA’, 12), (‘50 uV/pA’, 13), (‘100 uV/pA’, 14), (‘200 uV/pA’, 15), (‘500 uV/pA’, 16), (‘1 mV/nA’, 17), (‘2 mV/nA’, 18), (‘5 mV/nA’, 19), (‘10 mV/nA’, 20), (‘20 mV/nA’, 21), (‘50 mV/nA’, 22), (‘100 mV/nA’, 23), (‘200 mV/nA’, 24), (‘500 mV/nA’, 25), (‘1 V/uA’, 26)])
- sensitivity_changed¶
- sine_output_amplitude¶
Amplitude of the sine output.
Units: volt Limits: (0.004, 5.0, 0.002)
- sine_output_amplitude_changed¶
- single_shot¶
End of buffer mode.
If loop mode (single_shot = False), make sure to pause data storage before reading the data to avoid confusion about which point is the most recent.Values: {False: 1, True: 0}
- single_shot_changed¶
- start_data_storage = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4fefb1d0>>, None)¶
- start_data_storage_changed¶
- sync_filter¶
Synchronous filter status.
Values: {False: 0, True: 1}
- sync_filter_changed¶
- time_constants¶
Time constant.
Values: OrderedDict([(‘10 us’, 0), (‘30 us’, 1), (‘100 us’, 2), (‘300 us’, 3), (‘1 ms’, 4), (‘3 ms’, 5), (‘10 ms’, 6), (‘30 ms’, 7), (‘100 ms’, 8), (‘300 ms’, 9), (‘1 s’, 10), (‘3 s’, 11), (‘10 s’, 12), (‘30 s’, 13), (‘100 s’, 14), (‘300 s’, 15), (‘1 ks’, 16), (‘3 ks’, 17), (‘10 ks’, 18), (‘30 ks’, 19)])
- time_constants_changed¶
- trigger = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f6d4ffa4f28>>, None)¶
- trigger_changed¶
- trigger_start_mode¶
- trigger_start_mode_changed¶
- wait_bit1_changed¶