Effacer les filtres
Effacer les filtres

Is it possible to call macro functions in Simulink?

2 vues (au cours des 30 derniers jours)
Szabolcs Fodor
Szabolcs Fodor le 25 Fév 2020
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

Réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by