rminstr.instruments.RS_NRP75TWG

Classes

RFPowerMeter

Implements the RF powermeter measurment functionality for the RS_NRP75TWG.

Package Contents

class rminstr.instruments.RS_NRP75TWG.RFPowerMeter(GPIB_address: str, resource_manager: pyvisa.ResourceManager = None, log_path: str = None)

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

Implements the RF powermeter measurment functionality for the RS_NRP75TWG.

Initiate the instrument.

Parameters:
visa_resourcevisa.Resources

The pyvisa resource.

Returns:
None.
num_readings = 0
trigger_source = 'IMM'
trigger_t0 = None
init_t0
info_dict
default_setup_settings
initial_setup(**kwargs)

Initiliazation method.

Returns:
None.
raise_errors()

Raise instrument errors the errors as python errors.

Returns:
None.
get_errors()

Raise instrument errors the errors as python errors.

Returns:
None.
setup(read_units: str = None, integration_time: int = None, average_state: int = None, zero_once: bool = None, trig_delay: float | str = None, **kwargs)

Change powermeter settings.

Parameters:
read_unitsstr, optional

W for Watts, dBm for dBm.

integration_timestr, optional

time in seconds of an average

average_stateint, optional

averaging only effective when ON. ‘On’ or ‘Off’.

zero_once: bool, optional

Performs a zeroing measurement on setup call. Ensure all input signals are turned off. Blocks script while zeroing finishes. Performs if True.

trig_delay: float, optional

Sets the delay between the measurement and the trigger event. If ‘AUTO’, the sensor automatically waits until it settles to take the measurement. 0.1 to 5.0 or ‘auto’/’AUTO’. Default is ‘auto’.

Returns:
None.
arm(delay: float = 0, trigger_source: str = 'BUS')

Arm the Voltmeter to measure when tiggered.

Parameters:
delayfloat, optional

delay after triggered. The default is 0.

trigger_sourcestr, optional

how the instrument will be triggered. The default is “BUS”.

Returns:
None.
trigger()

Send trigger signal over GPIB.

Returns:
None.
fetch_data(p_column_name: str = None, v_column_name: str = None) dict

Fetch data from the Voltmeter.

Parameters:
p_column_name: str, optional

Name to give power clumns in output dictionairy. The default is “Power (<UNIT>)”

v_column_namestr, optional

alias for p_column_name.

Returns:
dict

dictionary with give names as keys.

check_is_measuring()

Check if power meter is measuring.

query_state() str

Check the state.

Returns:
str

Instrument state.

do_after_group_trigger()

Perform tasks after a group trigger.