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