Jump to content
  • 0

IO pull up/down config by script


Etienne

Question

Dear all,

I'm using the "Digital Discovery" by script and I would like to know how to apply this pull up/down scheme by script: see attached picture

I try the different "Supplies.Output.DigitalVoltage.DIOPP/DIOPE.value" suggested by Waveform when I put the mouse on the blue knob but it set all my channels to pull-down.

Thanks in advance
Best regards
Etienne

Digilent_IO_Pull_by_script.jpg

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Hi @Etienne

See the SDK/ samples/ py/ AnalogIO_DigitalDiscovery.py

# pull enable for DIO 39 to 24, bit 15 to 0
dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(2), c_double(0xFFFF)) # all
# pull up/down for DIO
dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(3), c_double(0x0EA0)) # according your screenshot 

 

... and in WF Script tool:

image.png.f31160fcdbf6256a380be0a9d6612cde.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...