How do I execute S-function Block from .m script.

The model has S-function block.
This S-function block purpose is to run building process.
If I double-click this S-function block, matlab run building process for making *.dll file.
I want to execute these process from *.m file.
What do I use matlab function?

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2022-10-5
编辑:Fangjun Jiang 2022-10-5
Select the block, right click, select "Properties ...".
Click the "Callbacks" tab, select OpenFcn, there should be some type of commands there.
That is the function or command that you can use in your M-script to achieve the same as double clicking the block.

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2016b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by