Custom C-Function not resolved in StateFlow Chart

Hello,
I'm trying to integrate some custom C-Code into my stateflow diagram. For this I made a very simple project to learn how to do it in general. Yet even after following the guide my custom function is not recognized and when trying to run the simulation I get an "unresolved symbol" error.
Below you will find my current setup as well as the model itself. I hope someone can tell me what I'm missing here.
Test.h
#ifndef TEST_T
#define TEST_T
void Test();
#endif // TEST_T
Test.cpp
#include <stdio.h>
#include "Test.h"
void Test()
{
printf("Test");
}
Model:
Configuration:
Project See attachment (requires loading of the 'configSetObj.mat' file)

 Respuesta aceptada

Robert Zierhut
Robert Zierhut el 9 de Feb. de 2018

0 votos

Found the cause, it was because the "Action Language" was set to "Matlab" instead of "C"

Más respuestas (0)

Categorías

Más información sobre Stateflow en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Feb. de 2018

Respondida:

el 9 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by