I have a subsytem that contains an "Inport block" feeding into a Switch block. When I connect an "Inport" block or a "Constant" block to the subsystem and generate code for a reusable function, the code generated should be independent of the input-output signature. However, I observe that seperate functions are generated for each case based on the input to the subsystem.
MATLAB: Do I not get a reusable function for a subsystem containing a Switch block, when driven by a Constant block using the Real-Time Workshop 6.0 (R14)
codegenconstantreusablereusefcnsimulink coderswitch
Related Question
- Does the block limitation in the Student Edition of Simulink include inport & outport blocks
- Does the generated S-function have incorrect sample times when generated from a subsystem using the Real-Time Workshop
- Does Real-Time Workshop 6.0 (R14) include an extra copy of bus signals in a model’s generated code
- Does Real-Time Workshop 7.5 (R2010a), not generate a reusable function for the atomic subsystem with variable sized signal input or outputs
- Does an error occur when I update a diagram that uses bus objects and Configurable Subsystems in Simulink 6.1 (R14SP1)
- How to switch between Model Reference and Subsystems in the model for debugging
Best Answer