Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16655 Discussions

DSP Builder MATLAB invalid MEX file

seb_
Beginner
1,222 Views

Hello,

 

I use MATLAB R2022b with Quartus Prime Standard 19.1 and DSP Builder 19.1. But it does not work as expected. Here is what I do.

 

Open “DSP Builder – Start in MATLAB R2022b_x64”

Open Simulink

DSP Builder – New Model Wizard

 

MATLAB Command Window tells me

Making new model of type Fixed-Point IP (simple testbench)...A copy of the original file "test1.mdl" has been created because it was last saved in an earlier version of Simulink. To recover the original version, rename the file "test1.mdl.r2013a" as "test1.mdl".

You can turn this feature off using the Simulink Preferences. Click here if you don't want to see this message again.
Error while obtaining sizes from MEX S-function 'mip_chanview' in 'test1/ChanView'.

 

DSP Builder – New Model Wizard – Output shows (see figure below, in red font)

Error from MATLAB: Error while obtaining sizes from MEX S-function 'mip_chanview' in '<a ref="matlab:open_and_hilite_hyperlink ('test1/ChanView','error')">test1/ChanView</a>'.

seb__0-1681483960586.png

 

Sometimes it shows instead

 
Error from MATLAB: Error while obtaining sizes from MEX S-function 'mip_control' in '<a href="matlab:open_and_hilite_hyperlink ('test1/Control','error')">test1/Control</a>'.

 

Open test1.mdl

seb__1-1681483960593.png

 

Click on “Hardware generation is on / Automatic testbenches are on” to open the "DSP Builder for Intel FPGAs Blockset – Settings"

 

Click OK (with or without changing the settings)

 

Matlab Command Window

Error using ControlInit
Error while obtaining sizes from MEX S-function 'mip_control' in 'test1/Control'.

Error in dspba.SettingsLaunch - Show complete stack trace
Caused by:
    Error using ControlInit
    Invalid MEX-file 'C:\APPS\Altera19\quartus\dspba\Blocksets\BaseBlocks\windows64\mip_control.mexw64': The specified module could not be found. - Show complete stack trace

 

With “Dependency Walker” I found out, that multiple dll’s are missing . There are so many missing, that I can’t add them manually. How can I fix that?

 

By accident I found out that the error disappears, when I first "run" the model and then open&OK the block. But then I get instead the following warning in the MATLAB command window

 

Warning: Error parsing: unable to open primary document entity 'C:/Test_DSP1/test1_params.xml'

> In ControlInit
In ControlInit
In dspba.SettingsLaunch
Warning: Error parsing: unable to open primary document entity 'C:/Test_DSP1/test1_params.xml'

> In ControlInit
In dspba.SettingsLaunch

 

What does that mean?

 

Thank you for your support

0 Kudos
1 Solution
Kshitij_Intel
Employee
1,105 Views

Hi,


MATLAB R2022b is not supported with Q19.1. Please refer to the below link.

https://www.intel.com/content/www/us/en/docs/programmable/683322/22-4/system-requirements.html


Please try with the compatible and supported version of Quartus with MATLAB.


Thank you

Kshitij Goel


View solution in original post

0 Kudos
4 Replies
Kshitij_Intel
Employee
1,148 Views

Hi,


Can you please share your model, So that I will try to replicate the issue at my end.


Thank you

Kshitij Goel


0 Kudos
seb_
Beginner
1,126 Views

Hello, Thank you for your response. It's just the exapmle that the "DSP - New Model Wizard" builds for me. You find the files attached.

0 Kudos
Kshitij_Intel
Employee
1,106 Views

Hi,


MATLAB R2022b is not supported with Q19.1. Please refer to the below link.

https://www.intel.com/content/www/us/en/docs/programmable/683322/22-4/system-requirements.html


Please try with the compatible and supported version of Quartus with MATLAB.


Thank you

Kshitij Goel


0 Kudos
Kshitij_Intel
Employee
1,023 Views

Hi,


As we do not receive any response from you on the previous answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


Thank you

Kshitij Goel


0 Kudos
Reply