Execute the matlab SIL test shows error.
Mostrar comentarios más antiguos
When i execute the matlab SIL test ,it shows "An error occurred ('RTW:buildProcess:fatalBuildError') when calling 'sim':
Error(s) encountered while building "model name""

Can we pinpoint the root cause of this type of error? Every time we run BtoB tests and encounter such issues, it will take a great deal of time if we cannot identify exactly where the problem occurs.
2 comentarios
Torsten
hace alrededor de 24 horas
If the options below don't solve your problem, contact support:
Answer from AI:
RTW:buildProcess:fatalBuildError during a SIL test means the C/C++ compiler or make tool failed while building the SIL binary or library for SL_ADASSF_V20_21BT6. [1, 2]
1. Check the Exact Compiler or gmake Error
- Open the Diagnostic Viewer or build log right above the fatal build message.
- Look for the first compiler or gmake error (such as missing headers, syntax errors, or permission errors) rather than the final fatalBuildError summary. [1, 2, 3, 4]
2. Verify Your Compiler and Build Settings
- Run mex -setup in MATLAB to confirm a supported compiler (such as MinGW or MSVC) is selected and avoid deprecated compilers like LCC.
- Ensure the build path has no locked files, read-only permissions, or overly long paths.
- Check Model Settings > Code Generation > Interface and set Shared code placement to Auto if shared utility files are causing build conflicts. [1, 2, 3]
3. Clean Stale Build Artifacts Between Runs
- Stale files in slprj or SIL build folders can break repeated test runs.
- Clear old build artifacts before re-running your SIL test, or use a pre-build callback / build-once workflow when running multiple test cases in sequence. [1, 2, 3]
4. Check Model and Block Compatibility
- Confirm all blocks and custom C/C++ code in SL_ADASSF_V20_21BT6 support code generation and SIL execution.
- Make sure External Mode is not accidentally left enabled on the model if it conflicts with your SIL setup. [1, 2]
You can review similar SIL build failures on MATLAB Answers or explore how to build only once when running SIL simulation. [1, 2]
ding
hace alrededor de 10 horas
Respuestas (1)
x = linspace(0,10,100);
y = x.^2;
plot(x,y);
grid on
x = linspace(0,10,100);
y = sin(x);
plot(x,y,'r--','LineWidth',2);
grid on
legend('sin');
axis([0 5 -1.5 1.5])
Categorías
Más información sobre Test Execution 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!

