How to solve the error while building a simulink model?
Mostrar comentarios más antiguos
Hey everyone,
I'm using Matlab R2015b and I've made a very simple simulink model. It only contains an ADC and a Display block. Now I want to use "Build" to get the necessary files for using the model in dSPACE ControlDesk 5.5 in combination with MicroAutoBox (ds1401/1501). While building the model I always get the error "### Failed to generate all binary outputs."
When I activate the checkbox "Generate code only" in Configuration Parameters > Code Generation, the building process runs without an error but also no .trc-file was generated. This one is missing when I try to use the generated .sdf-file in ControlDesk.
When I type
rti_build('Test.slx')
in the command window in Matlab, the answer is 1. And I think it shouldn't be 1 ;)
Is there anyone who can solve this problem?
P.S.: Here you can see the whole message from the diagnostic viewer in Matlab/Simulink:
### Generating code into build folder: C:\Users\stestu2\Documents\MATLAB\Test_rti1401
### Generated code for 'Test' is up to date because no structural, parameter or code replacement library changes were found.
*** Optional User System Description File test_usr.sdf not available
*** Optional User Variable Description File Test_usr.trc not available
### Using toolchain: MinGW64 v4.x | gmake (64-bit Windows)
### 'C:\Users\stestu2\Documents\MATLAB\Test_rti1401\Test.mk' is up to date
### Building 'Test': C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Test.mk all
C:\TDM-GC~1\bin/gcc -c -ansi -pedantic -Wno-long-long -fwrapv -O0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=Test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -IC:/Users/stestu2/Documents/MATLAB/Test_rti1401 -IC:/Users/stestu2/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2015b/extern/include -IC:/PROGRA~1/MATLAB/R2015b/simulink/include -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common -o "Test.obj" "Test.c"
In file included from Test_trc_ptr.h:16:0,
from Test.c:17:
Test.h:23:20: fatal error: brtenv.h: No such file or directory
#include <brtenv.h>
^
compilation terminated.
gmake: *** [Test.obj] Error 1
----------------------------------------------------------------------
Error(s) encountered while building "Test":
### Failed to generate all binary outputs.
----------------------------------------------------------------------
*** Stopped RTI build procedure for model: Test.
----------------------------------------------------------------------
Error(s) encountered while building "Test":
### Failed to generate all binary outputs.
4 comentarios
Lukas Bathelt
el 14 de Jul. de 2017
T3 Cabon
el 8 de Mzo. de 2018
To which Compiler have you switched? I have the same problem and don't know, which Compiler should be usefull.
Lukas Bathelt
el 3 de Jul. de 2018
Editada: Lukas Bathelt
el 3 de Jul. de 2018
Siddhartha Varma
el 25 de Sept. de 2023
which compiler used to debug these error
Respuestas (0)
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!