You should be using Simulink Compiler to compile and deploy a Simulink model. Simulink Compiler
Using mcc with simulink.
11 次查看(过去 30 天)
显示 更早的评论
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
-------------------------------------------------------------------------------------------------------
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deploy Standalone Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!