set parameters read from outside a compiled simulink model at startup/initialization
Hi,
I have a Simulink Model I wish to compile into an executable which works fine except that I need to be able to set some parameters/variables at the start of the program or in the initialization phase.
So far, I have no hand-written code (.c or .h) files where I could add some lines.
What do I have to do and where would I place the code?
As of now, I’ve been using the following line to compile the simulink model:
mcc(‘-N’,’-p’,’icomm’, ‘-m’,’Reglerexe’,’-a’,[‘*’,ext],’-a’,[‘*’,ext_thunk{:}], ‘-d’, myDir)
Thanks in advance for your help!
SwantjeHi,
I have a Simulink Model I wish to compile into an executable which works fine except that I need to be able to set some parameters/variables at the start of the program or in the initialization phase.
So far, I have no hand-written code (.c or .h) files where I could add some lines.
What do I have to do and where would I place the code?
As of now, I’ve been using the following line to compile the simulink model:
mcc(‘-N’,’-p’,’icomm’, ‘-m’,’Reglerexe’,’-a’,[‘*’,ext],’-a’,[‘*’,ext_thunk{:}], ‘-d’, myDir)
Thanks in advance for your help!
Swantje Hi,
I have a Simulink Model I wish to compile into an executable which works fine except that I need to be able to set some parameters/variables at the start of the program or in the initialization phase.
So far, I have no hand-written code (.c or .h) files where I could add some lines.
What do I have to do and where would I place the code?
As of now, I’ve been using the following line to compile the simulink model:
mcc(‘-N’,’-p’,’icomm’, ‘-m’,’Reglerexe’,’-a’,[‘*’,ext],’-a’,[‘*’,ext_thunk{:}], ‘-d’, myDir)
Thanks in advance for your help!
Swantje reading parameters into an executable at startup MATLAB Answers — New Questions