MATLAB: Do I receive an error that the file ‘dsp_rt.h’ could not be opened when generating code with MotoHawk™ ECU-based rapid prototyping system Version 0.8.0 using blocks from the DSP Blockset with Real-Time Workshop Embedded Coder 3.0 (R13)

dsp_rt.hecuEmbedded Codererrormotohawkmototron

I am using the Polyfit block from the DSP Blockset in my Simulink model. Although the model runs fine in the simulation mode, I am unable to generate code using Real-Time Workshop Embedded Coder for my MotoHawk™ ECU (Electronic Control Unit)-based rapid prototyping system. I receive the following error message in the MATLAB Command Window during the build process:
ERROR: "C:\MATLAB6p5\work\combustion_control\nn_6_Build\nn_6_private.h", line 45: catastrophic error #5:
could not open source file "dsp_rt.h"
I have checked and dsp_rt.h is installed in the correct directory (MATLABROOT\toolbox\dspblks\include, where MATLABROOT is the MATLAB installation directory) and that this directory is on my MATLAB path.

Best Answer

This error is caused by the way MotoHawk™ ECU-based rapid prototyping system handles the build process. Because of the way that MotoHawk handles the build process, it is necessary to move all include files from the DSP Blockset to MotoHawk’s build folder. This process is done automatically in Signal Processing Blockset 6.0 (R14) and later. Contact MotoTron Corporation directly for additional information: