Using mcc with simulink.
11 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Mark McBroom
on 20 Sep 2021
Edited: Mark McBroom
on 20 Sep 2021
You should be using Simulink Compiler to compile and deploy a Simulink model. Simulink Compiler
0 Comments
See Also
Categories
Find more on Deploy Standalone Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!