How to build an S function from a shared library generated using the system target file ert_shrlib.tlc.

1 次查看(过去 30 天)
I'd like to build a shared library from a proprietary Simulink model then deliver both the library and a Simulink S function using the library to a third party for analysis. The proprietary model is similar to the rtwdemo_shrlib example with constant parameters, inputs and outputs. I've tried setting the code generation interface packaging to reusable function with individual arguments but don't understand how to hand the first argument of the step function which is related to the constants. When generating the S function using the Legacy Code Tool, how would the commands look for defining the OutputFcnSpec with constant, input, and output arguments?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by