Package: sdg1032x-tspspi
SDG1032X Python libraryThis (unofficial) library allows one to controlsomefunctions of the
SDG1032X arbitrary waveform generator using Python in a simple way via
Ethernet.Exposed functionality:FunctionalityFunctionImplementedTestedCommentsIdentifyidentify()yyQueries the output of IDN, raw binary outputFactory defaultsfactoryDefaults()yResets all device state to factory defaultsEnable outputoutputEnable(channel=1, polarity=POLARITY_NORMAL, load="HZ")yyEnabled the output of the function generatorDisable outputoutputDisable(channel=1)yyDisables the output of the function generatorSet duty cyclesetDutyCycle(dutycycle, channel=1)yySets duty cycleEnabling burst modesetBurstModeEnable(channel=1)yyDisabling burst modesetBurstModeDisable(channel=1)yySetting burst periodsetBurstPeriod(period, channel=1)yyBurst periodSetting burst delaysetBurstDelay(delay, channel=1)yySetting burst tiggersetBurstTriggerSource(triggerSource, channel=1)yySets internal, external or manual triggerSetting burst modesetBurstMode(burstMode, channel=1)yyTriggering bursttriggerBurst(channel=1)ySet waveformsetWaveType(waveform, channel=1)yySets the waveform of the signalSet frequencysetWaveFrequency(frequency, channel=1)yySets the waves frequencySet periodsetWavePeriod(period, channel=1)yySets the waves periodSet wave amplitudesetWaveAmplitude(vpp, channel=1)ySets the amplitude of the wave in VppSet wave offsetsetWaveOffset(offsetV, channel=1)ySets the offset of the wave in VUsage examplewith SDG1032X("10.0.0.14") as sdg:
    print("Identify returns: {}".format(sdg.identify()))

    sdg.setWaveType(sdg.WAVEFORM_SINE)

    for f in range(100, 1100, 100):
        sdg.setWavePeriod(f)InstallationThere are two ways of simply installing the library. One can install
if viapipfrom PyPi:pip install pysdg1032x-tspspiOr one can install it from the downloaded ZIP file from theReleases sectionby using pip (substitutingX.Y.Zby the desired version number):pip install pysdg1032x-tspspi-X.Y.Z.tar.gzThe CLI utilityThere is a simple CLI utility that allows one to control the function generator
from the commandline or via scripts. This tool is calledsdg1032x:SDG1032X signal generator remote control utility

Note: This tool is an inofficial tool and in no way associated
with Siglent

Usage:
	sdg1032x [settings] <commands>

Settings:
	--host ADDRESS		Sets the remote hostname or IP

Commands:
	id			Asks the SDG for it's identity
	defaults		Resets the SDG to it's factory defaults

Simple channel commands:
	on N			Enabled the channel N
	off N			Disabled the channel N

Waveform commands:
	wavetype N WTYPE	Sets the selected wave type. Valid options are:
				sine	Sinusoidal waveform
				square	Square wave
				ramp	Ramping
				pulse	Pulsing
				noise	Noise generator
				arbitrary	Arbitrary waveform from WAV
				dc	Discrete current
				prbs	Pseudo random binary sequence
	frq N FREQ		Set frequency of channel N to FREQ Hz
	period N PERIOD		Set period of channel N to PERIOD seconds
	amp N AMP		Set amplitude of wave for channel N to AMP Vpp
	offset N OFF		Set offset of channel N to OFF V

Burst mode commands (per channel):
	duty N CYCLE		Sets the burst duty cycle for channel N to CYCLE percent
	burston N		Enables burst mode for channel N
	burstoff N		Disables burst mode for channel N
	burstperiod N PERIOD	Sets the burst period for channel N to PERIOD seconds
	burstdelay N DELAY	Sets the burst delay for channel N to DELAY seconds
	bursttrigsource N SRC	Sets the given trigger source. Valid options are:
				int	internal trigger source
				ext	external trigger source
				man	manual trigger source
	burstmode N MODE	Sets the burst mode. Valid modes are:
				gate	Gated burst mode
				ncyc	Number of cycles burst mode
	burst N			Trigger burst on channel N