The Equalizer subsystem contains annotation text with the keyword S:Description. You can insert design documentation entered as text in the model into the comments of the generated code. To run the model step function, an application writes data to in, calls the Equalizer_step() function, and then reads the results from out.įor more information on Data Objects see Create Data Objects for Code Generation with Data Object Wizard (Embedded Coder). For example, the signals in and out are declared as a global variable in Equalizer.c. These data objects are associated with signal lines in the model and are used to specify descriptions and storage classes of the corresponding variables in the generated code. The parameterized data specification file, dspparameq_data.m, creates in and out signal data objects in the MATLAB workspace. You can trace from the block to the associated code by right clicking on any of the Biquad Filter blocks and then selecting Code Generation > Navigate to code.įor more information about how to integrate generated code into another application see Deploy Applications to Target Hardware (Embedded Coder). For example, each Biquad Filter block is configured to implement a different filter structure. The report also enables bidirectional linking between the generated code and the model. The model is configured to generate an HTML report that can be used to navigate the generated source and header files. You can also generate code by clicking the following hyperlink: Generate Code for the Equalizer Subsystem.Ĭode Generation Report with Links to and from the Model To generate C code, right-click on the Equalizer subsystem, select Code Generation > Build Subsystem, then click the Build button when prompted for tunable parameters. The following sections show some of the code customizations for this model and provide references to documentation that describe these customizations in more detail. These customizations ease the code review and integration process. This model is configured to show some common code generation customizations accessible from Embedded Coder product. Once you achieve the desired simulation behavior, you can generate C code for the Equalizer subsystem based on the algorithm specification. ![]() ![]() Generate C Code for the Equalizer Subsystem
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |