Rohde and Schwarz Signal Generator SMA100B module

” Created on Fir Feb 02 13:00:00 2024

@author: mweizel

class SMA100B.SMA100B(hostname)[source]

Bases: Instrument

A class thats uses vxi11 library to interface a SMA100B Need to have python ‘vxi11’ library installed!

Close()[source]
act_DCOffset(state)[source]
Return type:

Activates a DC offset.

ask_OutputImpedance()[source]
Returns:

Queries the impedance of the RF outputs.

Return type:

TYPE

getIdn()[source]
Returns:

DESCRIPTION.

Return type:

TYPE

query(message)[source]
reset()[source]
set_CMOS_Voltage(value)[source]
Parameters:

value (int/float) – Sets the voltage for the CMOS signal. Range: 0.8 to 2.7 Increment: 0.001

Raises:

ValueError – Wrong range Error.

Return type:

None.

set_ClockSigPhase(value)[source]
Parameters:

value (int/float) – Shifts the phase of the generated clock signal. Range: -36000 to 36000 Increment: 0.1

Raises:

ValueError – Wrong Value Error.

Return type:

None.

set_DCOffset(value)[source]
Parameters:

value (int/float) – Sets the value of the DC offset. Range: -5 to 5 Increment: 0.001

Return type:

None.

set_OutputPowerLevel(value)[source]

Sets the Signal Generator Output Power in dBm

Parameters:

value (float) – Output Power in dBm

set_freq_CW(value, unit)[source]
Parameters:
  • value (int/float) – Parameter Frequency

  • unit (str) – Frequency Unit: ‘GHz’ or ‘MHz’

Return type:

None.

set_frequency_mode(MODE)[source]
Parameters:

MODE (str) –

<Mode> CW | FIXed | SWEep | LIST | COMBined

CW|FIXed

Sets the fixed frequency mode. CW and FIXed are synonyms. The instrument operates at a defined frequency.

SWEep

Sets sweep mode. The instrument processes frequency (and level) settings in defined sweep steps.

LIST

Sets list mode. The instrument processes frequency and level settings by means of values loaded from a list.

COMBined

Sets the combined RF frequency / level sweep mode. The instrument processes frequency and level settings in defined sweep steps.

set_output(value)[source]

Activates the Signal Genrator RF Output

Parameters:

value (str/int) – ‘ON’ 1 or ‘OFF’ 0

Raises:

ValueError – Valid values are: ‘ON’, ‘OFF’, 1, 0

set_rf_output(value)[source]

Activates the Signal Genrator RF Output

Parameters:

value (str/int) – ‘ON’ 1 or ‘OFF’ 0

Raises:

ValueError – Valid values are: ‘ON’, ‘OFF’, 1, 0

set_rf_output_all(value)[source]

Activates all Signal Genrator RF Outputs

Parameters:

value (str/int) – ‘ON’ 1 or ‘OFF’ 0

Raises:

ValueError – Valid values are: ‘ON’, ‘OFF’, 1, 0

set_rf_power(value)[source]

Sets the Signal Generator Output Power in dBm

Parameters:

value (float) – Output Power in dBm