How to get C-code generated from Simulink systems to have same I/O names as the I/O port name of the block?
    5 次查看(过去 30 天)
  
       显示 更早的评论
    
I have a Simulink model with multiple systems connected with each other. When I do code generation for a specific system in the model, what config settings should I use so that in the generated C-code (using Simulink/embedded coder), the I/O names (e.g. in ert_main.c) are consistent with the corresponding I/O port names in the block. Currently, the I/O names in the C-code seem to inherited from output ports of upstream blocks, which is undesired.
0 个评论
回答(1 个)
  Satishkumar Aruljothi
      
 2016-8-11
        You need to make the particular/desired subsystem to atomic. MATLAB treats it as single unit with input and output.
right click on the subsystem and in properties select "Treat as atomic"
0 个评论
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

