• 0
Sign in to follow this  
SHong

Running DD logic analyzer with synchronized external clock

Question

Hi,

I would like to do digital data acquisition with the external clock source like the link below, but I would like to use python and waveform sdk to control it, not through waveform software.

https://forum.digilentinc.com/topic/3869-digital-discovery-synchronous-capture/

 

I have been using acqmodeRecord for test purpose as the parameter of FDwfDigitalInAcquisitionModeSet, but I figured out that I needed the synchronized data acquisition sampled by the external clock signal coming to one of DIN pins. Although the waveform software is providing the synchronized acquisition in the link, dwf.h does not seem to have the acquisition mode like acqmodeSync...

 

Does anyone know how to set the acquisition mode to sync, the pin to be used as the clock source, and the rising/falling edge conditions in the config?

 

Td

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @attila

Thank you. I updated the sdk to the recent one and found the example.

In Waveform software, we can set the pin to be used for sync signal in the config. Can we also have the option with python sdk?

Share this post


Link to post
Share on other sites
  • 0

Hi @SHong

The "sync" mode is enabled with:
# for sync mode set divider to -1 
dwf.FDwfDigitalInDividerSet(hdwf, c_int(-1))

In this mode the trigger event is used for sampling condition, like:
# trigger detector mask:          low &     hight & ( rising | falling )
dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(1), c_int(0))

 

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
Sign in to follow this