koheron-sdk icon indicating copy to clipboard operation
koheron-sdk copied to clipboard

How to sychronise ADC sampling with a trigger

Open v-shetty opened this issue 2 years ago • 3 comments

Hi All,

I would like to know, how can i start receiving ADC data based on the trigger for fixed number of sample? Trigger is internal software trigger, i would like to start sampling from ADC, when DDS from BRAM is streaming to DAC

my approach (software solution) : using the given example ADC-DAC BRAM instrument

writing python thread script , which listen to the trigger(software trigger) and capture the ADC data

Do you have any hardware solution?or software solution is good enough?

v-shetty avatar Nov 08 '21 09:11 v-shetty

DAC data in BRAM are played synchronously with ADC data BRAM filling. So in that sense ADC data are already triggered with DAC data output.

But maybe I misunderstood your problem ?

tvanderbruggen avatar Nov 08 '21 09:11 tvanderbruggen

@tvanderbruggen thank you. One more question, how to change the DAC and ADC size? currently it is 65536 in adc-dac-bram example

v-shetty avatar Nov 11 '21 10:11 v-shetty

You can set the size in the memory section of the instrument configuration file.

The size is defined in the range section of each memory.

tvanderbruggen avatar Nov 15 '21 09:11 tvanderbruggen