Jump to content
  • 0

Running DD logic analyzer with synchronized external clock


SHong

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

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...