Skip to content

ucn-triumf/SiglentDevices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiglentDevices

API for interfacing with various Siglent devices using SCPI commands

Usage

Install and import

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

Digital Oscilloscpe SDS5034 Examples

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)

Device List

Developer Notes

  • Regenerate documentation with handsdown. Replace all () with nothing to fix markdown links

About

API for interfacing with various Siglent devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages