When I use the "legacy_code" command to generate a Simulink block from legacy C code (i.e. from ".c" files and ".h" files), I only see one inport, one outport, and one block parameter.
However, my C code explicitly states that there are two inports "in1" and "in2", one outport, and one block parameter "gain", so what could be going wrong? How can I generate a block with the correct number of inports/outports?
Best Answer