TO generate/build c++ code from Simulink diagrams one could use Embedded/Simulink Coder toolbox to generate C++ code from the give diagrams. Depending on which toolbox is used, generated code will be saved in a folder including part of "System target file"
which is grt.tlc
for Simulink Coder and ert.tlc
for Embedded Coder Toolbox.
My question: is there any way to write a command to know which "System target file"
is applied for the simulation's configuration?
In my code I need to know which target file is set up for deciding which method comes next?