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
Device Specification: here
Manufacturer card: 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 oscilloscopes, function/arbitrary waveform generators, digital 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
Read our guide for turning Python scripts into Flojoy nodes.
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 instrumentrigol = RigolDS1074Z("rigol", "USB0::0x1AB1::0x04CE::DS1ZA222222222::INSTR")
# Connect to the instrumentrigol.connect()
# Access and set parametersrigol.trigger_mode("edge")rigol.trigger_level(0.5)
# Access channel parameterschannel1 = rigol.channels.ch1channel1.vertical_scale(0.1)
# Get the trace data from channel 1trace_data = channel1.trace()
# Disconnect from the instrumentrigol.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.