Jump to content
  • 0

Digital Discovery Kit Script example code


sushant

Question

Hello,

I am using the Digital Discovery kit and below are few questions i have,

1. Can i record the logic analyser for 5s in 32 channel configuration and sampling frequency 100MHz?

2. I need a sample trigger script to trigger on two bus (like BUS1 = xx and BUS2= YY then trigger) and after trigger record the results for 2s.

3. After running the Script outputs should time stamps.

 

Thanks & Regards

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi @sushant

# for Digital Discovery bit order with 32 bit sampling [DIN-0:23 - DIO-24:31]
dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(0))

dwf.FDwfDigitalInTriggerSet(hdwf, c_uint(0), c_uint(0), c_uint(0), c_uint(1<<6)) # DIN6 falling edge
or
dwf.FDwfDigitalInTriggerSet(hdwf, c_uint(0), c_uint(0), c_uint(1<<7), c_uint(0)) # DIN7 rising edge

# for Digital Discovery bit order with 32 bit sampling [DIO-24:39 - DIN-0:15]
dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(1))

dwf.FDwfDigitalInTriggerSet(hdwf, c_uint(0), c_uint(0), c_uint(0), c_uint(1<<6)) # DIO6 (for Digital Discovery +24 DIO-30) falling edge
or
dwf.FDwfDigitalInTriggerSet(hdwf, c_uint(0), c_uint(0), c_uint(1<<7), c_uint(0)) # DIO7 (for Digital Discovery +24 DIO-31) rising edge

See the examples and manual:

image.png

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