rminstr.instruments.LS155¶
Classes¶
Implementation the LS155 as a current generator. |
Package Contents¶
- class rminstr.instruments.LS155.CurrentGenerator(GPIB_address: str, resource_manager: pyvisa.ResourceManager = None, log_path: str = None)¶
Bases:
rminstr.instruments.communications.Instrument,rminstr.instruments.measurement_functionalities.ABC_CurrentGeneratorImplementation the LS155 as a current generator.
Initialize a LS155 for the current generator.
- Parameters:
- visa_resourcevisa.Resource
Visa resource for the instrument.
- resource_managervisa.ResourceManager, optional
Pyvisa resource manager for opening visa resources. The default is None.
- log_pathstr, optional
If provided, will log at the specified path. The default is None.
- Returns:
- None.
- default_setup_settings¶
- initial_setup(panel: str = None, **kwargs)¶
Set initial state of the machine.
- Parameters:
- panelstr, optional
The panel to use (REAR or FRONT). The default is None.
- other_commandslist, optional
list of strings, commands to be sent directly to machine. The default is None.
- Returns:
- None.
- setup(panel: str = None, i_range: float = None, i_limit: float = None, over_voltage_protection: float = None, current_level: float = None, source: bool = None, other_commands: list = None, **kwargs)¶
Adjust settings on the machine.
- Parameters:
- panelstr, optional
The panel to use (REAR or FRONT). The default is None.
- currentfloat, optional
The current to output. The default is None.
- i_rangefloat, optional
The range for the current output. The default is None.
- i_limitfloat, optional
Maximum current the sourec will output. The default is None.
- over_voltage_protectionfloat, optional
Maximum voltage the source will output. The default is None.
- current_levelfloat, optional
The current amplitude to source in A. The default is None.
- sourcebool, optional
Turns source on when True, off when False. The default is True.
- other_commandslist, optional
List of other command not covered by keyword arguments. Written directly to instrument. The default is None.
- Returns:
- None.
- arm()¶
Arms the instrument.
- Returns:
- None.
- trigger()¶
Set the output of the source on.
- Returns:
- None.
- fetch_data()¶
Fetch the data. This does nothing execpt state model stuff.
- Returns:
- None.
- query_state()¶
Check the state of the machine according to state model.
- Returns:
- str
Current state of the instrument.
- raise_errors()¶
Query the status of the instrument. If there are errors, raise them as Python errors.
- Returns:
- None.
- Raises:
- InstrumentError
Instrument error if the instrument returns an error message or state.
- get_errors()¶
Query the status of the instrument. If there are errors, returns the error message.
- Returns:
- str
Instruments error message.