This code requires you to connect the outputs to their respective inputs with same length cables and you need a jumper between trig1 and D0 which is easy to do on the header.
It produces two quadrature phase channels which are both FM modulated with high index. I was impressed by the performance of the AD2 in the sense that FM is accomplished
in a robust way by mathematical phase manipulation so that the output that is received by the ADC conforms well to the desired waveform. There's only one problem which is that
the code doesn't always work. Sometimes channel two is just a straight line a 1 Volt, I invoke the code over and over and the internal state changes and the AD2 acts differently. At
least mine does. I don't need help with this because I have moved on to another method but it might be worth a look at Digilent headquarters to see what's up.
About the code: this is hackware, ugly stuff with no error checking, use at your own risk, etc. With a device like this a lot of the time you want is just an example of how to do
something. The code is properly constructed only in the sense that it drives the API to do a particular thing. If no one objects I will offer up a few more examples. I like the
platform a lot and would like it to thrive and evolve which is why I'm taking a stab at contributing.
Question
darth458
This code requires you to connect the outputs to their respective inputs with same length cables and you need a jumper between trig1 and D0 which is easy to do on the header.
It produces two quadrature phase channels which are both FM modulated with high index. I was impressed by the performance of the AD2 in the sense that FM is accomplished
in a robust way by mathematical phase manipulation so that the output that is received by the ADC conforms well to the desired waveform. There's only one problem which is that
the code doesn't always work. Sometimes channel two is just a straight line a 1 Volt, I invoke the code over and over and the internal state changes and the AD2 acts differently. At
least mine does. I don't need help with this because I have moved on to another method but it might be worth a look at Digilent headquarters to see what's up.
About the code: this is hackware, ugly stuff with no error checking, use at your own risk, etc. With a device like this a lot of the time you want is just an example of how to do
something. The code is properly constructed only in the sense that it drives the API to do a particular thing. If no one objects I will offer up a few more examples. I like the
platform a lot and would like it to thrive and evolve which is why I'm taking a stab at contributing.
setup.cpp
swoop_1.cpp
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.