Skip to content

Connecting to Rigol DS1074Z by Rigol in Python

Instrument Card

4 analog channels, Upgradable to 16 digital channels (requires optional RPL1116 logic probe to operate) Built in 2 channel 25MHz waveform generator

Rigol DS1074Z

Device Specification: here

Manufacturer card: RIGOL

RIGOL

RIGOL Technologies, Inc. specializes in development and production of test and measuring equipment and is one of the fastest growing Chinese companies in this sphere. RIGOL’s line of products includes digital storage oscilloscopesfunction/arbitrary waveform generatorsdigital multimeters, PC-based devices compatible with LXI standard etc.

  • Headquarters: Beijing, China
  • Yearly Revenue (millions, USD): 23
  • Vendor Website: here

Demo: Measure signal width and phase with a Tektronix oscilloscope

Connect to the Rigol DS1074Z in Python

PROTOCOLS > SCPI

Here is a Python script that uses Qcodes to connect to a Rigol DS1074Z Oscilloscope:

from qcodes.instrument.visa import VisaInstrument
class RigolDS1074Z(VisaInstrument):
# ... code omitted for brevity ...
# Create an instance of the RigolDS1074Z instrument
rigol = RigolDS1074Z("rigol", "USB0::0x1AB1::0x04CE::DS1ZA222222222::INSTR")
# Connect to the instrument
rigol.connect()
# Access and set parameters
rigol.trigger_mode("edge")
rigol.trigger_level(0.5)
# Access channel parameters
channel1 = rigol.channels.ch1
channel1.vertical_scale(0.1)
# Get the trace data from channel 1
trace_data = channel1.trace()
# Disconnect from the instrument
rigol.disconnect()

This script creates an instance of the RigolDS1074Z instrument, sets the trigger mode and level, accesses the parameters of channel 1, retrieves the trace data from channel 1, and finally disconnects from the instrument.