Simulink code generation definition handling

1 view (last 30 days)
Matthew
Matthew on 18 Sep 2014
Commented: EddieM on 10 Nov 2017
Hello!
I want to generate C code from a Simulink model, which I want to build in Altium Tasking. Almost everything is all right, but unfortunatelly there's a problem. I got two declarations into model_private.h header, but it's needed to be a .c source file which contains the definitions. Earlier I generated and used succesfully projects with VisualStudio with theese declarations in header, but the Tasking can't eat this. I wrote the deffinitions into a TLC file:
%openfile buffer
/*Handle of Mutex*/
SemaphoreHandle_t %<SFcnParamSettings.QName>;
%closefile buffer
%<LibCacheDefine(buffer)>
Now I ask You to help me solve this program please! I think if I make the questionable variables global, it could be a good sollution, but please describe me, how to do this!
Thank you very much!
  1 Comment
EddieM
EddieM on 10 Nov 2017
Did you find a solution to this? I'm having a similar problem and need to define global variables in C file

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!