Skip to content

Connecting to SFM by Rohdes&Schwarz in Python

Instrument Card

Generation of standard TV signals (standards B&G, D&K, L&L, I, M, N, K1) including stereo/dual sound and NICAM Double-sideband test modulator for all IFs between 32 and 46 MHz RF upconverter, 5 to 1000 MHz, with high frequency resolution (1 Hz)

Device Specification: here

Manufacturer card: ROHDES&SCHWARZ

Rohde & Schwarz GmbH & Co KG is an international electronics group specializing in the fields of electronic test equipment, broadcast & media, cybersecurity, radiomonitoring and radiolocation, and radiocommunication.

  • Headquarters: Munich, Germany
  • Yearly Revenue (millions, USD): 2500
  • Vendor Website: here

Connect to the SFM in Python

PROTOCOLS > SCPI

To connect to a SFM RF Signal Generator using Pymeasure, you can use the following Python script:

from pymeasure.adapters import VISAAdapter
from pymeasure.instruments.rf import SFM
# Create a VISA adapter for communication
adapter = VISAAdapter("GPIB::1::INSTR")
# Connect to the SFM RF Signal Generator
signal_generator = SFM(adapter)
# Perform operations on the signal generator
signal_generator.frequency = 100E6 # Set the frequency to 100 MHz
signal_generator.level = -10 # Set the output level to -10 dBm
# Disconnect from the signal generator
signal_generator.disconnect()

This script creates a VISAAdapter object to establish a connection with the SFM RF Signal Generator using the GPIB interface. Then, it creates an SFM object with the adapter to interact with the instrument.

You can perform various operations on the signal_generator object, such as setting the frequency and output level. Finally, you can disconnect from the signal generator using the disconnect() method.

Note: Make sure to replace the GPIB address in the VISAAdapter constructor with the correct address for your instrument.