This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing code generated from simulink

Other Parts Discussed in Thread: CONTROLSUITE

Hi all,

I am using f28335 to do some project. I use Matlab/Simulink to build the model first and then generate code to code composer studio from simulink using IDE tool. But the product generated is a folder which consists of all files needed like the pic shown below. The code we can run is the ".out" file in CustomMW folder.

My questions are:

With the inflexibility of blocks provided in simulink, can we modify the code generated? The file structure looks different than usual project, and such file can not be imported to CCS as a "project". Hence even if I can access the C file and H file, I can not build the "project" again and therefore the ".out" file will not be updated.

Is there any link between Simulink and CCS in those files? If not, can we copy the code in those files to build a project in CCS on our own? What files should be included?

Thank,

Doris

  • Hi,

    Hezi Zhu said:
    Is there any link between Simulink and CCS in those files? If not, can we copy the code in those files to build a project in CCS on our own? What files should be included?

    As you correctly mentioned you won't be able to alter the source file generated by simulink. You need to do all the modifications before generating the code.

    Secondly, you won't be able to use these generated files to integrate them to CCS project directly. I guess, you should be able to use the algorithms by modifying them a bit.

    Can you share the generated c file? I would like to have a look and compare how different the source file is if compared with controlSuite examples.

    Regards,

    Gautam