Borrar filtros
Borrar filtros

How to implement a function call/return in simulink ?

1 visualización (últimos 30 días)
Ramesh Vukyam
Ramesh Vukyam el 18 de Nov. de 2013
Comentada: Azzi Abdelmalek el 18 de Nov. de 2013
I have some requirement:
if(...)
Put_Val(1) /*Function call to a sub function inside a c file*/
else
return(NOT_DEFINED)
How to implement it in simulink ?
I tried using function call sub system.But couldn't work it out.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 18 de Nov. de 2013
Have you tried Interpreted Matlab Function block
  2 comentarios
Ramesh Vukyam
Ramesh Vukyam el 18 de Nov. de 2013
Thank you for your help Azzi. The Interpreted Matlab function block applies the specified MATLAB function or expression to the input. Here what I have is my own c function.I suppose it will not help in this case.
Azzi Abdelmalek
Azzi Abdelmalek el 18 de Nov. de 2013
If you are using a c file, maybe you need s-function block

Iniciar sesión para comentar.

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by