RAJEEVA Posted December 2, 2019 Share Posted December 2, 2019 How to enable/disable digital channel in digital discovery using python? Link to comment Share on other sites More sharing options...
0 attila Posted December 2, 2019 Share Posted December 2, 2019 Hi @RAJEEVA You can find the examples and manual in the SDK folder: 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)) Link to comment Share on other sites More sharing options...
0 RAJEEVA Posted December 2, 2019 Author Share Posted December 2, 2019 @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? Link to comment Share on other sites More sharing options...
0 attila Posted December 2, 2019 Share Posted December 2, 2019 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 Link to comment Share on other sites More sharing options...
0 RAJEEVA Posted December 3, 2019 Author Share Posted December 3, 2019 what is the highest frequency range of AD2 and DD can capture IR signal ? Link to comment Share on other sites More sharing options...
0 RAJEEVA Posted December 3, 2019 Author Share Posted December 3, 2019 (edited) what is the highest sample rate for AD2 and DD to capture IR signal ? Edited December 3, 2019 by RAJEEVA Link to comment Share on other sites More sharing options...
0 attila Posted December 3, 2019 Share Posted December 3, 2019 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. Link to comment Share on other sites More sharing options...
0 RAJEEVA Posted December 9, 2019 Author Share Posted December 9, 2019 HI @attila self.device.dwf.FDwfDigitalIOOutputEnableSet(self.device.hdwf, c_int(out_value)) how to enable for "FDwfDigitalIOOutputEnableSet" 25 DIO in DD? Link to comment Share on other sites More sharing options...
0 attila Posted December 9, 2019 Share Posted December 9, 2019 Hi @RAJEEVA On 12/2/2019 at 3:17 PM, attila said: dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<1)) # DIO-1 / DIO-25 Link to comment Share on other sites More sharing options...
0 RAJEEVA Posted December 13, 2019 Author Share Posted December 13, 2019 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. Link to comment Share on other sites More sharing options...
0 attila Posted December 13, 2019 Share Posted December 13, 2019 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 Link to comment Share on other sites More sharing options...
0 Alejandro-Dev Posted June 21, 2021 Share Posted June 21, 2021 On 12/2/2019 at 1:49 PM, attila said: Hi @RAJEEVA You can find the examples and manual in the SDK folder: 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)) Hi, thanks for the info. Is there a reference for this maybe somewhere in the SDK Reference? Should I assume that dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<9) enables pin 32? And will then dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(0xFFFF) enable pins 24-39? Thanks,Alejandro Link to comment Share on other sites More sharing options...
0 attila Posted June 22, 2021 Share Posted June 22, 2021 Hi @Alejandro-Dev See the earlier mentioned SDK manual pdf Alejandro-Dev 1 Link to comment Share on other sites More sharing options...
Question
RAJEEVA
How to enable/disable digital channel in digital discovery using python?
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now