API for interfacing with various Siglent devices using SCPI commands
To install clone this directory then execute the following:
cd SiglentDevices
pip install --user .
Notes:
user
should be typed in verbatim, it is not your username- don't forget the
.
at the end
Import as
import SiglentDevices
Run functionality tests with pytest
Read waveform
from SiglentDevices import SDS5034
import matplotlib.pyplot as plt
# connect to device
sds = SDS5034('tucan-scope1.triumf.ca')
# switch scope into run state
sds.run()
# switch scope into stop state (no longer takes data)
sds.stop()
# read waveform ch1
volts = sds.read_wave_ch(1)
Advanced measurement
from SiglentDevices import SDS5034
# connect to device
sds = SDS5034('tucan-scope1.triumf.ca')
# measurements activated
sds.set_measure_state(True)
# advanced mode
sds.set_measure_adv_mode('advanced')
# there are 12 possible measurements which can be done at once
# make sure we can do up to this maximum
sds.set_measure_adv_nitems(12)
# set first measurement to CH1, mean value, enable
sds.set_measure_adv_source(1, ch=1)
sds.set_measure_adv_item(1, item='mean')
sds.set_measure_adv_state(1, state=True)
# get the value
val = sds.get_measure_adv_value(1)
- Siglent Device Base Class
- Digital Oscilloscpe SDS5034
- Programmable DC Power Supply SPD3303
- RIGOL Arbitrary Waveform Generator DG1032Z
- Regenerate documentation with
handsdown
. Replace all()
with nothing to fix markdown links