I have a requirement to call an m script when the build button is clicked after selecting a target in real time workshop. Can anyone suggest, how this can be accomplished ? Also I have to pass the name of the simulink model in this m script. Is there a function to extract the name of the current simulink model?
Thanks for your help in advance.