필터 지우기
필터 지우기

Is it possible to call macro functions in Simulink?

조회 수: 2 (최근 30일)
Szabolcs Fodor
Szabolcs Fodor 2020년 2월 25일
Dear all,
Is it possible to call macro functions defined in C header files in Simulink?
For instanceand for the sake of argument, you have the following header file (errPro.h) :
#ifndef ERRPRO_H_
#define ERRPRO_H_
#define MAXi(a, b) (((a)>(b))?(a):(b))
#define xyz(a, b) ((a)<(b))
#endif
After including this particular header file to the right place (Simulation Target -> Header File), is it possible to call these macro functions in Simulink? I know that it is possible to call functions with c caller in Simulink, but I was not able to figure it out with macro functions.
Any help is highly appriciated, so thanks in advance.
Best regards,
Szabi

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by