Connecting to TSP2012 by Tektronix in Python
Instrument Card
The TPS2000 Series easily addresses the unique challenges that plague industrial power designers and technicians. You regularly confront high voltages and currents, and must often make potentially hazardous floating measurements. With the TPS2000 Series’ power bundle (TPS2PBND), which includes the P5120 passive, high-voltage probes and TPS2PWR1 power measurement and analysis software, you can use a single instrument to make a broad range of measurements.
Easily evaluate these high voltages and currents, or debug power electronics control circuits, with differential voltages up to 600 VRMS CAT II (or 300 VRMS CAT III) floating. Accurately measure three-phase power and circuits with different low levels or ground references.
Quickly perform a broad range of power-specific measurements, such as switching loss, harmonic distortion measurements to the 50th harmonic, and dv/dt and di/dt cursor measurements.
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 TSP2012 in Python
OSCILLOSCOPES > TEKTRONIX
PROTOCOLS > SCPI
Here is an example Python script that uses Qcodes to connect to a TPS2012 Oscilloscope:
import qcodes as qcfrom qcodes.instrument_drivers.tektronix.TPS2012 import TPS2012
# Create an instance of the TPS2012 instrumentscope = TPS2012('scope', 'TCPIP0::192.168.1.1::INSTR')
# Connect to the instrumentscope.connect()
# Print the instrument IDprint(scope.IDN())
# Set the horizontal scale to 1 ms/divscope.horizontal_scale(1e-3)
# Set the trigger type to EDGEscope.trigger_type('EDGE')
# Set the trigger source to CH1scope.trigger_source('CH1')
# Start the acquisitionscope.run()
# Wait for the acquisition to completescope.wait_for_acquisition()
# Get the waveform data from channel 1data = scope.channels.ch1.curvedata()
# Disconnect from the instrumentscope.disconnect()
Note: Replace 'TCPIP0::192.168.1.1::INSTR'
with the actual address of your TPS2012 Oscilloscope.