Download Getting Started with the Signal Processing Blockset
Transcript
5 Code Generation 3 Type dir at the MATLAB command prompt. The working directory now contains a build directory, gstut8_grt_rtw, which Real-Time Workshop created. Real-Time Workshop put the generated source files in this directory. You have now generated code from your signal processing model file. In “Viewing the Generated Code” on page 5-12, you view your code in an HTML Report. Viewing the Generated Code Once you have generated code from your Simulink model, you can view this code in an HTML report. You asked Real-Time Workshop to create this report by selecting the Generate HTML report check box. The HTML report is a navigable summary of source files that you can view in the Real-Time Workshop Report window: 1 View the code automatically generated by Real-Time Workshop. Select the Real-Time Workshop Report window. You can use the links on the left side of the report to view the different source and header files that were generated. 2 To display one of the generated files, click the gstut8.c link in the Generated Source Files list. The generated code is displayed as an HTML file in the right side of the Real-Time Workshop Report window. Real-Time Workshop produces an HTML file for each source file in a directory named \html within the build directory. 5-12