Refer attached model (Iteration_01.slx) which contain following parts:
1. Custom Simulink Blocks (created for accessing hardware status) (Attached AnalogInputLib.slx file of the libary used).
2. Custom Simulink Inports/Outports (Blue ports are inports and Orange ports are outports generated using script and inport's (Blue) value is updated via BSW and outport's (orange) value is transferred to BSW using Embedded Coder's generated code in BSW sofware of respective Hardware.
1. Custom Simulink Blocks: Here custom simulink blocks were used on root canvas and in a subsystem. While compiling this simulink model for code generation, the code for the model on the root canvas was generated but code for the subsystem blocks was not generated as the blocks in the subsystem are refered as virtual blocks.
2. Custom Simulink Inports/Outports: Here custom simulink inports/outports were used on root canvas and in a subsystem. While compiling this simulink model for code generation, the code for the model on the root canvas was generated but code for the subsystem ports was not generated as the ports in the subsystem are refered as virtual blocks.
Is there anyway we can generate code for these custom simulink blocks and custom simulink inports/outports without taking them on root canvas?