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

8 visualizaciones (últimos 30 días)
Takehana Takasi
Takehana Takasi el 5 de Oct. de 2022
Editada: Fangjun Jiang el 5 de Oct. de 2022
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?

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 5 de Oct. de 2022
Editada: Fangjun Jiang el 5 de Oct. de 2022
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.

Categorías

Más información sobre Block and Blockset Authoring en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by