Jump to content
  • 0

AnalogDiscovery2 SDK - Custom digital output in one-shot mode?


Hans Hübner

Question

Hi,

I am working on using an AnalogDiscovery2 to control a scientific instrument that requires a shorter, specific multi-bit pulse train to be generated before an analog signal must be measured over a longer time period.  As the pulse train needs to have a rather high resolution (microseconds), the overall measurement cycle will be too long to fit into the available memory for custom signals. I am thus looking for a way to decouple the generation of the high-resolution pulse train from the ADC measurement.  Is there a way to chain a one-shot custom digital output cycle to an analog input cycle?  It seems like triggering the analog input from the digital output would be straightforward, but can the restart of the custom signal generation signal be avoided?

Thanks,
Hans

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @Hans Hübner

The delay time between trigger and running (or repeats) can be specifies with:
dwf.FDwfDigitalOutWaitSet(hdwf, c_double(sec))

The run length can be specified with:
dwf.FDwfDigitalOutRunSet(hdwf, c_double(sec))

The number of repeats with:
dwf.FDwfDigitalOutRepeatSet(hdwf, c_int(1)) # repeat once

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...