Initialization of static parameters in a dll

1 view (last 30 days)
Sandesh
Sandesh on 2 Mar 2015
Edited: Sandesh on 2 Mar 2015
Hello all,
We are using the Simulink coder toolbox for our application. The aim of this is to generate a code out of our model. The model has a set of inputs which are both dynamic and static. In the generated code, we are modifying the grt main file to export some functions from a .dll generated out of this.A function named "GetControllerOutput" is the interface that handles the inputs and outputs of the Simulink model. This function is called in the visual studio project based on the task cycle of the model. The issue we are facing is that not all the inputs to the model are dynamic i.e. they just need to be initialized once during the initialization of the model.
We are unable to figure out how to make few of the inputs static because we want to eliminate unnecessary initialization of these parameters every task cycle.
Kindly look onto this and extend your support regarding this
Regards, Sandesh

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!