Using mcc with simulink.

조회 수: 26 (최근 30일)
Amiya Chokhawala
Amiya Chokhawala 2021년 9월 1일
편집: Mark McBroom 2021년 9월 20일
Hi,
I am compiling .m file that calls simulink model.
When I compile it gives out a lot of errors. I have copied a few of them here:
Can you guide me?
Best,
Amiya
--------------------------------------------------------------------------------------------------------
>> mcc -m class_d_vimon_adc_model_setup.m -I ../../matlab/ -o matlab_model -R '-nojvm,-nodisplay'
### Build procedure for class_d_vimon_adc_model aborted due to an error.
Build Summary
Top model rapid accelerator targets built:
Model Action Rebuild Reason
===================================================================================
class_d_vimon_adc_model Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 8.8745s
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Unable to build a standalone executable to simulate the model 'class_d_vimon_adc_model' in rapid
accelerator mode.
Error in buildRacTarget
Error in buildRacTarget - Show complete stack trace
Caused by:
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error due to multiple causes. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error due to multiple causes. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error evaluating parameter 'rep_seq_t' in 'class_d_vimon_adc_model/ClassD/Quantizer/FD
Ramp' - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Unrecognized function or variable 'trst'. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Variable 'trst' does not exist.
Suggested Actions:
? Load a file into base workspace. - Fix
? Create a new variable. - Fix
- Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error evaluating parameter 'rep_seq_y' in 'class_d_vimon_adc_model/ClassD/Quantizer/FD
Ramp' - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Unrecognized function or variable 'Vramp_pp'. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Variable 'Vramp_pp' does not exist.
Suggested Actions:
? Load a file into base workspace. - Fix
? Create a new variable. - Fix
- Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error due to multiple causes. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Error evaluating parameter 'Ts' in 'class_d_vimon_adc_model/IMON ADC mfn/DSM
Lite/Band-Limited White Noise' - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Unrecognized function or variable 'Ts'. - Show complete stack trace
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Variable 'Ts' does not exist.
Suggested Actions:
? Load a file into base workspace. - Fix
? Create a new variable. - Fix
- Show complete stack trace
-------------------------------------------------------------------------------------------------------

답변 (1개)

Mark McBroom
Mark McBroom 2021년 9월 20일
편집: Mark McBroom 2021년 9월 20일
You should be using Simulink Compiler to compile and deploy a Simulink model. Simulink Compiler

카테고리

Help CenterFile Exchange에서 Deploy Standalone Applications에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by