Hi,
I'm recently working on the Waveforms SDK with the Analog Discovery 2. I manage to trigger my AnalogIn with the AnalogOut sinus that I generate. My aim is to acquire my sinus in order to calculate the phase shift.
Is there a way to get the delay between the start of the AnalogOut generation and the trigger pulse attached to it ?
Thank you.
Here is the code that I'm using :
FDwfAnalogOutNodeEnableSet(hdwf, 0, AnalogOutNodeCarrier, true);
FDwfAnalogOutNodeFunctionSet(h
Hi @Mahito
In your code you are generating 1kHz sine. With the run length set to 2ms it will generate trigger signal at this rate and repeat indefinitely (0).
With the scope you are capturing 40 samples at 10kHz, 4 sine periods.
The scope triggers on analogout/wavegen-1. The trigger type (level, condition...) is only relevant if you set the trigger source to detector-analogin.
The default trigger position is 0sec, at the middle of the capture.
If you want the trigger to be at the