How to implement a function call/return in simulink ?

조회 수: 3 (최근 30일)
Ramesh Vukyam
Ramesh Vukyam 2013년 11월 18일
댓글: Azzi Abdelmalek 2013년 11월 18일
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.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 18일
Have you tried Interpreted Matlab Function block
  댓글 수: 2
Ramesh Vukyam
Ramesh Vukyam 2013년 11월 18일
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 2013년 11월 18일
If you are using a c file, maybe you need s-function block

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by