• 0
RAJEEVA

Digital discovery

Question

10 answers to this question

Recommended Posts

  • 0

Hi @RAJEEVA

You can find the examples and manual in the SDK folder:

image.png

DigitalIO.py

# enable output/mask on 8 LSB IO pins, from DIO 0 to 7, DIO 24 to 31 for Digital Discovery
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(0x00FF)) 
# set value on enabled IO pins
dwf.FDwfDigitalIOOutputSet(hdwf, c_int(0x0012)) 

 

Share this post


Link to post
Share on other sites
  • 0

@attila Thank you

am able to enable and disable it.  how to do it for particular channel. suppose i want to do it for channel 25 in DD?

Share this post


Link to post
Share on other sites
  • 0

On Digital Discovery the index for DIO-24 is 0, 25 is 1,...

dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<0)) # DIO-0 / DIO-24
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<1)) # DIO-1 / DIO-25
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<2)) # DIO-2 / DIO-26
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<3)) # DIO-3 / DIO-27

dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int((1<<0) | (1<<1) | (1<<2))) # DIO-0:2 / DIO-24:26

Share this post


Link to post
Share on other sites
  • 0

Hi @RAJEEVA

The AD2 samping rate is 100MHz bandwidth about 50MHz.
The DD sampling rate is 800MHz on the DIN lines and bandwidth about 100MHz.
The bandwidth highly depends on the driver circuit, wiring...

For IR signal you probably need much lower frequency. This typically uses 30-60kHz carrier signal and kbps data rate.

Share this post


Link to post
Share on other sites
  • 0

How make digital pin 25 only high and low in digital discovery. But it should not effect ow and high to other pins in the digital discovery. 

 

Please this is need very urgently , give the solution. 

 

Share this post


Link to post
Share on other sites
  • 0

Hi @RAJEEVA

dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<1)) # OE DIO-1 / DIO-25
dwf.FDwfDigitalIOOutputSet(hdwf, c_int(1<<1)) # drive high DIO-1 / DIO-25

Share this post


Link to post
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