rminstr.instruments.Anritsu_MG3692A

Classes

SignalGenerator

Implementation of the Anritsu MG3692A as a signal generator.

Package Contents

class rminstr.instruments.Anritsu_MG3692A.SignalGenerator(visa_address: str, resource_manager: pyvisa.ResourceManager = None, log_path: str = None)

Bases: rminstr.instruments.communications.Instrument, rminstr.instruments.measurement_functionalities.ABC_SignalGenerator

Implementation of the Anritsu MG3692A 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, **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.

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.