Connecting to DPO7000 by Tektronix in Python
Instrument Card
The MSO/DPO70000DX is one of the most advanced oscilloscopes in its class—enabling today’s engineer to see signals better with minimal noise, debug signal anomalies faster and utilize measurement and analysis tools for automated compliance testing and other verifications
Device Specification: here
Manufacturer card: TEKTRONIX
Tektronix, Inc., historically widely known as Tek, is an American company best known for manufacturing test and measurement devices such as oscilloscopes, logic analyzers, and video and mobile test protocol equipment.
- Headquarters: USA
- Yearly Revenue (millions, USD): 5800
- Vendor Website: here
Demo: Measure signal width and phase with a Tektronix oscilloscope
Connect to the DPO7000 in Python
OSCILLOSCOPES > TEKTRONIX
PROTOCOLS > SCPI
from instrumentkit import Scope
# Connect to the oscilloscopescope = Scope("TCPIP::192.168.1.1::INSTR")
# Set up the oscilloscopescope.set_timebase(1e-6) # Set timebase to 1us/divscope.set_channel_scale(1, 0.1) # Set channel 1 scale to 0.1V/divscope.set_channel_scale(2, 0.2) # Set channel 2 scale to 0.2V/div
# Acquire waveform datawaveform = scope.acquire_waveform(1) # Acquire waveform from channel 1
# Print the acquired waveform dataprint(waveform)
# Disconnect from the oscilloscopescope.disconnect()In this script, we first import the Scope class from the instrumentkit module. Then, we create an instance of the Scope class by passing the instrument’s address as a string to the constructor.
Next, we set up the oscilloscope by calling various methods on the scope object. For example, we use the set_timebase method to set the timebase to 1us/div and the set_channel_scale method to set the scale of channel 1 to 0.1V/div and channel 2 to 0.2V/div.
After setting up the oscilloscope, we can acquire waveform data using the acquire_waveform method. In this example, we acquire the waveform from channel 1 by passing 1 as an argument to the method.
Finally, we print the acquired waveform data and disconnect from the oscilloscope using the disconnect method.
Note: Replace "TCPIP::192.168.1.1::INSTR" with the actual IP address or VISA resource string of your DPO7000 Oscilloscope.