I am making a control algorithm model in Simulink from which I want to generate readable (and highly-efficient) C code. I want to add comments in the generated C code for certain Simulink signals and states. I have tried to apply the method shown in the demo model 'rtwdemo_comments', but despite many attempts, I still have not managed to realize the comments in the C code.
In my model, I have added a description for the Simulink.Signal objects corresponding to a certain state and a signal, but the description does not pop up as a comment in the generated C code. How can this be accomplished?
Best Answer