I have an external function which I need to call in code generated using Real-Time Workshop. One of the function input parameters is an enumerated type. I want to set the value of this enumerated parameter in Simulink prior to compiling and use the enumerated constants, not their values, in the generated code.
MATLAB: How to call an external function with enumerated parameters in generated code using Real-Time Workshop
customdefinedefinedexternsimulink codertlctypedefuser
Related Question
- Do I get a compile error when generating code for an automatically generated S-Function
- Do I get a ‘floating-point support’ error when Generating code for a S-function in Real-Time Workshop Embedded Coder 5.4 (R2009b)
- How to resolve S-function mdlRTW error during code generation
- How to customize the “main” function generated by Real-Time Workshop Embedded Coder 5.2 (R2008b)
- Can the S-Function have variable number of inputs and outputs
- How to compare results from the Simulink model to those obtained using the code generation technology for the same model
- Do I receive an error in the Simulink S-function when I compile it using the MCC command provided by the MATLAB Compiler 3.0 (R13)
Best Answer