Is it possible to set output width of a C S-function block from parameters?

4 次查看(过去 30 天)
I am implementing a simulink model with which I would like to associate a C file. Therefore, I have added a C S-function to the model. The output width of the block is variable from a simulation to another. However, it remains constant during an instance of a simulation. Now I intend to feed the output width as a parameter to the block. Eventually, a GUI will be provided which modifies the parameter's value. My first question is whether it is possible to set the output width via the block's parameter? If yes, then how? And lastly, is it possible to modify a block's parameter from a GUI?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Block and Blockset Authoring 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by