rminstr.instruments.HP437B¶
Classes¶
Implements the powermeter measurment functionality for the HP437B. |
Package Contents¶
- class rminstr.instruments.HP437B.RFPowerMeter(GPIB_address: str, resource_manager: pyvisa.ResourceManager = None, log_path: str = None)¶
Bases:
rminstr.instruments.communications.Instrument,rminstr.instruments.measurement_functionalities.ABC_RFPowerMeterImplements the powermeter measurment functionality for the HP437B.
Initialize the powermeter class instance.
- 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.
- info_dict¶
- default_setup_settings¶
- initial_setup(**kwargs)¶
Initialization method.
- Returns:
- None.
- setup(meas_freq_MHz: int = None, cal_factor_percent: int = None, read_units: str = None, read_range: int = None, resolution: int = None, averages: int = None, zero_cal: bool = False, **kwargs)¶
Change powermeter settings.
- Parameters:
- meas_freq_MHzint, optional
Measurement update frequency.
- cal_factor_percentint, optional
Cal factor.
- read_unitsstr, optional
LN or W for Watts, LG or dBm for dBm.
- read_rangeint, optional
Set range (0 is auto, 1 is -20 dBm, 2 is -10 dBm, …, 5 is 20 dBm).
- resolutionint, optional
1 for 1%, 2 for 0.1 %, 3 for 0.01% full scale.
- averagesint, optional
Filter averages. uncertainties may change with this setting.
- zero_calbool, optional
Will zero calibrate the instrument with a power sensor. Default is False
- Returns:
- None.
- arm()¶
Arm the powermeter to measure when tiggered.
- Returns:
- None.
- trigger()¶
Send trigger signal over GPIB.
- Returns:
- None.
- fetch_data(p_column_name: str = 'Power (W)') dict¶
Fetch data from the powermeter.
- Parameters:
- p_column_namestr, optional
Name to give power columns in dictionary. The default is “Power (W)”
- Returns:
- dict
Dictionary with give names as keys.
- raise_errors()¶
Raise instrument errors the errors as python errors.
- Returns:
- None.
- get_errors()¶
Return instrument errors messages if any.
- Returns:
- str
Instrument errors.
- query_state() str¶
Check the state.
- Returns:
- str
Instrument state.
- do_after_group_trigger()¶
Perform operations immediatley after a grouptrigger is called.
This function should take not arguments. Don’t override if nothing is required for the specific instrument.
- Returns:
- None.