MATLAB Answers

0

How to exclude Simulink blocks from code generation?

Omkar Bhanap 님이 질문을 제출함. 30 Sep 2018
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?

  댓글 수: 0

로그인 to comment.

제품


릴리스

R2017a

답변 수: 1

Answer by TAB
on 1 Oct 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.

  댓글 수: 1

I don't want to exclude these blocks from Simulation. Just want to simulate the model without generating any code for these blocks.

로그인 to comment.



Translated by