I'm using a AD9371 with Zynq ZC706 and controlling it through MATLAB 2018a. When testing with the example file found here https://github.com/analogdevicesinc/MathWorks_tools/tree/master/hil_models/ad9371 I receive the following error every few times it is run (usually every 2-3 times):
Error using adi.AD9371.TxChanging the value of a non-tunable property is not allowed without first calling the release() method.Error in adi.common.RxTx/releaseChanBuffers (line 89) obj.enabledChannels = false;Error in matlabshared.libiio.base/doTeardownError in matlabshared.libiio.base/releaseImplError in matlabshared.libiio.base/cstatusError in matlabshared.libiio.base/sendDataError in adi.common.Tx/stepImpl (line 22) sendData(obj,outputData);Error in ad9371.m (line 22)tx(y);
The release() method is definitely being called on the Tx and Rx objects, though I am quite new to this and am quite stuck as to the exact problem. The only solution I have at the moment is to restart both the board and MATLAB.
Thanks for any help!
We don't technically support R2018a (I'm installing it at the moment to test), but are you modifying the example in any way?
Hi Travis, thanks for your reply.
No changes were made to the example.
I 'm currently using R2018a with BSP support package 18.1.0 (I see this is for use with R2018b so I am installing now to check), though I noticed BSP version 19.1 was released 13hrs ago for use with R2019a. Does this mean that R2019a is now the currently supported version (I previously had reverted from R2019a to R2018a due to the same problems mentioned here: https://ez.analog.com/linux-device-drivers/linux-software-drivers/f/q-a/111405/streaming-data-inout-from-matlab-for-ad9371-zc706-not-working)?
I have now tested on R2018b and R2019a with corresponding BSP support packages (v18.2.1 and v19.1) both of which give me the same error.
After the error are you able to ping the board?
Yes pinging the board after the error works fine. Could it be to do with the image on the SD card in the ZC706? I realised it is using the 2016_R1 image. I'm curently setting up the 2018_R2 image to see if there is any difference.