rminstr.instruments.Anritsu_MG362x1A¶
Classes¶
Implementation of the Anritsu MG362x1A as a signal generator. |
Package Contents¶
- class rminstr.instruments.Anritsu_MG362x1A.SignalGenerator(visa_address: str, resource_manager: pyvisa.ResourceManager = None, log_path: str = None)¶
Bases:
rminstr.instruments.communications.Instrument,rminstr.instruments.measurement_functionalities.ABC_SignalGeneratorImplementation of the Anritsu MG362x1A as a signal generator.
Initialize a signal generator object.
- Parameters:
- visa_addressstr
Visa address of 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(**kwargs)¶
Set initial state of the machine.
- Parameters:
- other_commandslist, optional
List of strings, commands to be sent directly to machine. The default is None.
- Returns:
- None.
- setup(dBm: float = None, f_GHz: float = None, dBm_limit: float = None, source_on: bool = None, AM: bool = None, AM_ext_port: int = None, AM_ext_sensitivity_percent_per_volt: float = None, **kwargs)¶
Adjust settings on the machine.
- Parameters:
- dBmfloat, optional
Power level setting in dBm. The default is None.
- f_GHzfloat, optional
Frequency setting in GHz. The default is None.
- dBm_limitfloat, optional
Power level setting in dBm. The default is None.
- source_onbool, optional
Turns source on when True, off when False. The default is None.
- AMbool, optional
Turns on or off the Amplitude Modulation. The default is None.
- AM_ext_portint, optional
What port to use for Amplitude Modulation. The default is None.
- AM_ext_sensitivity_percent_per_voltfloat, optional
Sensitivity of the Amplitude Modulation in percent per volt. The default is None.
- Returns:
- None.
- query_state()¶
Check the state of the machine.
- 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 has errors or is in an error state.
- get_errors()¶
Query the status of the instrument. If there are errors, returns the error message.
- Returns:
- str
Instruments error message
- get_frequency()¶
Get the frequency.