Enm, Bus and S-function builder

1 回表示 (過去 30 日間)
Voulgarakis Georgios
Voulgarakis Georgios 2014 年 4 月 28 日
Hello everybody!
My situation is the following:
1) I have declared an enumeration class for simulink. 2) I have a s-function builder which returns a Bus. 3) This Bus, has as one of it's attributes the Enm which I have declared in 1).
Even though the enm declaration is correct, and I can use it with other simulink blocks, when I try to compile the s-function, I get a build error.
In the xxx_bus.h file, which is automatically generated by MATLAB, the compiler complains about this line:
Enum:data_type_enm data_type;
Any ideas on what to do? (The main problem is that when I compile, the xxx_bus.h file gets overwritten. This means I cannot just change the header file and try to recompile. I end up with the same faulty file, automatically! )

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by