Jump to content
  • 0

multiple Digital Discovery logic analyzers via Python


JeromeBoateng

Question

Hi,

I have three Digital Discovery boards. I want to use them in logic analysis mode to read simultaneously 20 channels. However, I don't understand how to synchronize them. Also, I want them to start acquisition when a rising edge occurs on any of the inputs. Could you please provide a part of the code for that? 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @JeromeBoateng

See the WF SDK/ samples/ py/ DigitalIn_Trigger.py or other similar examples and the pdf manual.

Remove or set to zero option to have DIN0... order: 
dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(0))
Set sampling format to 32 bit and use c_uint samples:
dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(32))
To trigger on any rising edge on DIN0-19:
dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(0xFFFFF), c_int(0))

image.thumb.png.40b7afaec660fb54f29e54e72456e88a.png

Link to comment
Share on other sites

  • 0
18 hours ago, attila said:

Hi @JeromeBoateng

See the WF SDK/ samples/ py/ DigitalIn_Trigger.py or other similar examples and the pdf manual.

Remove or set to zero option to have DIN0... order: 
dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(0))
Set sampling format to 32 bit and use c_uint samples:
dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(32))
To trigger on any rising edge on DIN0-19:
dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(0xFFFFF), c_int(0))

image.thumb.png.40b7afaec660fb54f29e54e72456e88a.png

Thank you for the tip for triggering. And what about synchronization between three Digital Discoveries? 

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...