Koheron / koheron-sdk

SDK for FPGA / Linux Instruments
https://www.koheron.com/software-development-kit/
Other
100 stars 40 forks source link

How to sychronise ADC sampling with a trigger #546

Open v-shetty opened 2 years ago

v-shetty commented 2 years ago

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?

tvanderbruggen commented 2 years ago

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 ?

v-shetty commented 2 years ago

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

tvanderbruggen commented 2 years ago

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.