Skip to content

Connecting to R&S RTO1000 by Rohdes&Schwarz in Python

Instrument Card

With an acquisition memory of 400 Mpts per channel simultaneously for all four channels, the oscilloscope offers up to 100 times the memory depth of comparable devices as standard.

The R&S MXO 4 oscilloscopes offer the worldโ€™s highest update rate of 4.5 million waveforms per second.

R&S RTO1000

Device Specification: here

Manufacturer card: ROHDES&SCHWARZ

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

Demo: Measure signal width and phase with a Tektronix oscilloscope

Connect to the R&S RTO1000 in Python

PROTOCOLS > SCPI

Here is an example Python script that uses Qcodes to connect to a R&S RTO1000 Oscilloscope:

import qcodes as qc
from qcodes.instrument_drivers.rohde_schwarz.RTO1000 import RTO1000
# Connect to the oscilloscope
oscilloscope = RTO1000('oscilloscope', 'TCPIP0::192.168.0.1::inst0::INSTR')
# Print the IDN of the oscilloscope
print(oscilloscope.IDN())
# Enable channel 1
oscilloscope.ch1.state('ON')
# Set the timebase scale to 1 us/div
oscilloscope.timebase_scale(1e-6)
# Set the trigger source to channel 1
oscilloscope.trigger_source('CH1')
# Set the trigger level to 0 V
oscilloscope.trigger_level(0)
# Acquire a single trace
oscilloscope.run_single()
# Wait for the acquisition to complete
while not oscilloscope.is_acquiring():
pass
# Get the trace from channel 1
trace = oscilloscope.ch1.trace()
# Plot the trace
trace.plot()
# Disconnect from the oscilloscope
oscilloscope.close()

Note: Replace 'TCPIP0::192.168.0.1::inst0::INSTR' with the actual VISA resource address of your oscilloscope.