Using the environment controller correctly
Mostra commenti meno recenti
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?
Risposte (0)
Categorie
Scopri di più su Simulink Coder in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!