How to exclude Simulink blocks from code generation?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Basically, my project is: to acquire data from a USB webcam and perform some color thresholding and object tracking. The output obtained from these blocks is then given to Arduino for hardware implementation. Now if I directly build the model, it generates code for the whole model and then deploys to Arduino board which is basically consuming more memory and making my model to run at a slower speed.
How can exclude these blocks(computer vision and image processing toolbox) from code generation?
1 Commento
Robert Miklosovic
il 10 Mag 2024
I can use the following statement to ignore code sections when using Matlab Coder, but it does not work with PLC coder.
if isempty(coder.target)
% Place code here you want to exclude from code generation
end
Is there a way to ignore code sections only during PLC code generation? Is there a way to detect in code that PLC Coder is operating on the code?
Risposte (1)
TAB
il 1 Ott 2018
If you want to exclude some blocks from Simulion and Code Generation, then you can comment them out.
As far I know, there is no way to exclude some block only from code generation.
Vedere anche
Categorie
Scopri di più su Modeling in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!