Using the environment controller correctly
Show older comments
Hi, I'm looking for some help on trying to create conditionally generated code for functions. If you can imagine a hypothetical situation in where I have a main algorithm calling a function which takes a value and returns a value.
- In simulation I want the function to simulate a graphical function, where I can point it to a stateflow graphical function and change the values/way the function operations.
- However, during code generation, I would like for the function call to call a stub function just for linking purposes during the making phase of the stateflow function call because the guts of the called function will reside in a neighboring software module.
I tried using the environment controller block, and then encasing the graphical function chart in an enabled subsystem which is only called during simulation (1->SIM, 0->CODER); however, doing this results in a double include.
Is there a way to achieve what I'm looking to do?
Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!