AnsweredAssumed Answered

DAQ2 ZCU102 Matlab crash

Question asked by Nuno on Aug 9, 2018
Latest reply on Aug 16, 2018 by Nuno

Hi,

I tried to run hil_models for daq2_data_stream on zcu 102 rev 1.1 Board running 2018_R1  Linux/hdl version

The iio oscilloscope application runs correctly both on zcu device and remotely.

When using libiio with matlab iio_sys object it crashes both if I use simulink or matlab (r2018a or r2017b)

This seems to happen in  delete(obj.libiio_data_in_dev); function in releaseImpl method,  or in  writeData(obj.libiio_data_in_dev, varargin{1}) in stepImpl just like the pointers to device are not correct.

 

I tried both using MinGW and Visual C++ compilers and i substituted libiio_if with the libiio_if_daq2 and renaming it.

Remote host where Matlab is installed runs Windows 10. The result does not change even if i install the latest 0.15 release of libiio.

 

I attach the basic script I'm using. The output after setup_method seems also correct

 

libiio_if: Connected to IP 158.138.139.137
libiio_if: Remote libiio version: 0.12, (git-05759f9)
libiio_if: Local libiio version: 0.12, (git-757b366)
libiio_if: Found 6 devices in the system
libiio_if: axi-ad9144-hpc was found in the system
libiio_if: Found 2 output channels for the device axi-ad9144-hpc
libiio_if: axi-ad9144-hpc output data channels successfully initialized
libiio_if: Connected to IP 158.138.139.137
libiio_if: Remote libiio version: 0.12, (git-05759f9)
libiio_if: Local libiio version: 0.12, (git-757b366)
libiio_if: Found 6 devices in the system
libiio_if: axi-ad9680-hpc was found in the system
libiio_if: Found 2 input channels for the device axi-ad9680-hpc
libiio_if: axi-ad9680-hpc input data channels successfully initialized
libiio_if: Connected to IP 158.138.139.137
libiio_if: Remote libiio version: 0.12, (git-05759f9)
libiio_if: Local libiio version: 0.12, (git-757b366)
libiio_if: Found 6 devices in the system
libiio_if: ad9523-1 was found in the system

 

after this matlab crash in stepImpl .

Attachments

Outcomes