Pseudonym1 Posted December 22, 2017 Share Posted December 22, 2017 I'm trying to setup the Analog Discovery 2 as an automated variable power supply for a project. I'd like to control it using the SDK rather than the GUI. Is this supported, and if so what are the functions/API for the supplies? Link to comment Share on other sites More sharing options...
Pseudonym1 Posted December 23, 2017 Author Share Posted December 23, 2017 The power supplies can be controlled under the *AnalogIO* functions (search for "supplies", not "supply"). If you're using the linux command line interface, they are the first 2 channels in the AnalogIO group. Link to comment Share on other sites More sharing options...
attila Posted December 29, 2017 Share Posted December 29, 2017 Hi @Pseudonym1 You can find examples in the SDK folder: C:\Program Files (x86)\Digilent\WaveFormsSDK\ like: samples/py/AnalogIO_AnalogDiscovery2_Power.py # set up analog IO channel nodes # enable positive supply dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(0), c_double(True)) # set voltage to 5 V dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(1), c_double(5.0)) # enable negative supply dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(1), c_int(0), c_double(True)) # set voltage to -5 V dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(1), c_int(1), c_double(-5.0)) # master enable dwf.FDwfAnalogIOEnableSet(hdwf, c_int(True)) Link to comment Share on other sites More sharing options...
Question
Pseudonym1
I'm trying to setup the Analog Discovery 2 as an automated variable power supply for a project. I'd like to control it using the SDK rather than the GUI. Is this supported, and if so what are the functions/API for the supplies?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.