Forum Discussion

seb_'s avatar
seb_
Icon for New Contributor rankNew Contributor
2 years ago
Solved

DSP Builder MATLAB invalid MEX file

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>'.

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

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

4 Replies

  • Kshitij_Intel's avatar
    Kshitij_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


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


    Thank you

    Kshitij Goel


  • seb_'s avatar
    seb_
    Icon for New Contributor rankNew Contributor

    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.

  • Kshitij_Intel's avatar
    Kshitij_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    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