Jump to content
  • 0

Output DC voltage of digital on DigitalDiscovery


laurent

Question

Hi,

With Waveforms, I can output the DC voltage of the digital signals, i.e. 3.3V on DigitalDiscovery.

But with a python script, I use :

# set voltage to 3.3 V (DD)
dwf.FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, c_double(3.3))
# enable positive supply
dwf.FDwfAnalogIOEnableSet(hdwf, 1) # enable VIO

 

But, I cannot the get the 3.3V voltage reference. What is missing ?

Thanks, BRgds,

Laurent

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi @laurent

In case your script quits the device gets closed and the outputs stopped.
Set the following parameter before opening the device to keep it running on quit/close:
dwf.FDwfParamSet(DwfParamOnClose, c_int(0)) # 0 = run, 1 = stop, 2 = shutdown

The VIO could be stopped due to over-current.
See the SDK/ samples/ py/ AnalogIO_DigitalDiscovery.py

Edited by attila
Link to comment
Share on other sites

  • 0

Hi,
I have the same problem here. In particular I used the DigitalOut_Custom python code, but with the oscilloscope I realized I can't reach 1V output and I need more.
Therefore before declaring the variable "pin=0", I put:

# set voltage to 3.3 V (DD)
dwf.FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, c_double(3.3))
# enable positive supply
dwf.FDwfAnalogIOEnableSet(hdwf, 1) # enable VIO"

but nothing has changed. Any suggestions?
Thank you.

 

Link to comment
Share on other sites

  • 0

Hi @Alessandro

Which device are you using?
The VIO voltage can be adjusted on Digital Discovery and ADP3X50 but not on Analog Discovery. See the SDK manual pdf

If you have dwf.FDwfDeviceAutoConfigureSet(hdwf, c_int(0)) set then call dwf.FDwfAnalogIOConfigure(hdwf)

 

image.png.513293d5bd27db5f0453ea99ac053ec9.png

image.png.65e08db59a31a34028f1758a3a108114.png

Edited by attila
Link to comment
Share on other sites

  • 0

I'm using Analog Discovery 2. Examining the digital channels, I can see they're synchronous, but they show 500mV as maximum voltage.
I don't know if there's a possibility to obtain perfect synchronous channels with greater voltage range...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...