I am generating a custom signal using WaveGen, apply it to DUT and then reading the result using the scope. I know that the speed/rate at which I am reading is limited by the USB and it is recommended not to go beyond 1M. I assumed I am going to lose few samples here and there, but the problem is that I am losing a big chunk of data which it seems more like a sync issue.
Here is the generated signal:
and here is the signal I am reading:
Is there a way to properly sync the AnalogIn and the AnalogOut to avoid such a problem? I am using the AnalogIn to trigger the scope.
here is the relevant part of the code to configure the scope:
Note that this problem is happening only at certain sampling frequencies, even >2M still things are working.
the scope buffer here is 8192 and wavegen buffer is 4096,
sampling rate is 4194304 for the scope, and 1024 or 4194304/4096 for the wavegen signal
thank you for the help
ssm
Example of out of sync signal:
example of part of the signal is gone:
here I used a very short pulse (5 sample points) at the start of the custom signal to trigger the AnalogIn, but this pulse is dragged for a long time, not sure why:
Question
ssm
Dear Help,
I am generating a custom signal using WaveGen, apply it to DUT and then reading the result using the scope. I know that the speed/rate at which I am reading is limited by the USB and it is recommended not to go beyond 1M. I assumed I am going to lose few samples here and there, but the problem is that I am losing a big chunk of data which it seems more like a sync issue.
Here is the generated signal:
and here is the signal I am reading:
Is there a way to properly sync the AnalogIn and the AnalogOut to avoid such a problem? I am using the AnalogIn to trigger the scope.
here is the relevant part of the code to configure the scope:
here is the wavegen configuration:
FDwfAnalogOutNodeEnableSet(hdwf, 0, AnalogOutNodeCarrier, true);
this is the Acquisition code:
Note that this problem is happening only at certain sampling frequencies, even >2M still things are working.
the scope buffer here is 8192 and wavegen buffer is 4096,
sampling rate is 4194304 for the scope, and 1024 or 4194304/4096 for the wavegen signal
thank you for the help
ssm
Example of out of sync signal:
example of part of the signal is gone:
here I used a very short pulse (5 sample points) at the start of the custom signal to trigger the AnalogIn, but this pulse is dragged for a long time, not sure why:
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.