Is there support for using the AD9371 Observational Receivers (ORx) within MATLAB.
Using Rx is the default and I cannot find any documentation for using the ORx through MATLAB.
Thanks for any help!
Added an observation system object here: https://github.com/analogdevicesinc/MathWorks_tools/tree/ad9371-obs/%2Badi/%2BAD9371
Be sure to grab the update base class.
It will be merged into master in a few days.
Thanks so much Travis that was so quick! Have got it up and running all fine now.
I think I found a few small mistakes in the Obs.m file though and thought I'd mention:
Line 120: 'obj.GainChannel0' should be 'obj.Gain'
Line 121: 'obj.GainControlModeChannel0' should be 'obj.GainControlMode'
Line 129: 'obj.EnableQuadratureTrackingChannel0' should be 'obj.EnableQuadratureTracking'
Thanks for your help!
Thanks for letting me know
I've also realised that from the Base class the Obs object inherits the property 'SamplingRate' as 122.88MHz as a const value, but it seems that the default sampling rate for ORx on the board is set to 245.76MHz (correct me if I'm wrong) and isn't altered on the board by MATLAB anywhere, so there is mismatch between the sampling rate of ORx on the board and what is returned by obj.SamplingRate.
If this is the wrong channel through which to discuss this kind of thing I apologise!
After more testing I have found the default transmit sampling frequency is also 245.76MHz which explains why to this point I have always been seeing a modulating tone at eg. 40MHz when I intend to transmit at 20MHz on a spectrum analyser. Again this is down to the 'SamplingRate' of the Tx object being set to 122.88MHz in Base.m but is never used to assign out_voltage_sampling_frequency on the board which has a default of 245.76MHz.
Am I correct in thinking this is a problem or am I doing something completely wrong (I may well be)!