analogdevicesinc / libiio-matlab

MATLAB bindings for libiio
Other
13 stars 25 forks source link

lost signal when configuring the iio object in Matlab2017b #4

Closed LimoJ closed 6 years ago

LimoJ commented 6 years ago

hi! i get a problem and don't know how to solve it.

matlab 2017 b simulink

when i use the example in https://github.com/analogdevicesinc/MathWorks_tools , i get some problems. i want to change the ip address to what my board own, but some signal lost ,and matlab throw out the warning "Port number 1 specified in 'port_label' drawing command exceeds the number of input ports of 'fmcomms5/FMCOMMS5/MATLAB System1'".

erroe

                                                                                                                                    Thanks.
tfcollins commented 6 years ago

Are you changing anything else in the model?

LimoJ commented 6 years ago

I didn‘t edit any files. I just add the libiio-matlab-master path to matlab and open the .slx file in simulink. I use MathWorks_tools-2017b branch which I think is match with the matlab version.

tfcollins commented 6 years ago

Make sure the current MATLAB path is "hil_models\fmcomms5_data_stream" which contains the correct models. If you are not in that folder the Simulink model may utilize the wrong system objects.

LimoJ commented 6 years ago

Thank you for your generous response. It works.