Jump to content
  • 0

AD2 SDK time between events


uulldd

Question

Hi,

I'm trying to time obtain the time between turning on one of the wavegens, and when I receive a digital trigger. I'm using python. I am not trying to do any sampling, just capture this time. At the moment i'm using time.time(), but it doesn't give the resolution I'm after.

I am wondering if there is any good way to read the internal clock to do this? I have considered outputting a pattern generator and connect back into a trigger and simply counting pulses at the frequency I require, but is there a better method than this?

 

Thanks alot!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hi @uulldd

You could connect the trigger signal to a DIO line.
Trigger the digital-in (logic analyzer) on analog-out-0 (wavegen 1), parse the digital data to find the first sample with active trigger.

Here Logic triggers on W1, for demonstration this is also connected to DIO0, and a W2 to simulate a trigger signal on DIO1.

image.thumb.png.fecc4b54ff81344cb914e96b1daa5d79.png

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...