이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
소스 코드 생성
소스 코드 모듈 생성 및 검증
소스 코드 생성을 시작하는 방법과 코드 생성기가 생성하는 파일과 폴더에 대해 알아봅니다. 대규모 프로젝트를 구성하려면 코드 생성 프로젝트 템플릿을 사용하십시오. 프로젝트는 필요한 파일을 찾고, 파일과 설정을 관리하고 공유하고, 소스 컨트롤과 상호 작용하고, 제어기 코드를 생성하고, 테스트 하네스 시뮬레이션을 실행하는 데 도움이 됩니다.
Generate Code by Using the Quick Start Tool에서 시작할 수 있습니다.
앱
Simulink Coder | Generate and execute C and C++ code from Simulink models, Stateflow charts, and MATLAB functions for use in applications such as simulation acceleration, rapid prototyping, and hardware-in-the-loop (HIL) simulations |
함수
도움말 항목
코드 생성하기
- Generate Code by Using the Quick Start Tool
Prepare a model for quickly generating code for rapid prototyping. - Increase Code Generation Speed
Alter a model to increase the speed at which the code generator generates code. - Generate Code Using Simulink Coder
Select a system target file for a Simulink® model, generate C code for real-time simulation, and view generated files. - Internationalization and Code Generation
Internationalization support for enabling efficient globalization. - What Is Code Replacement?
Why and how to replace code. Code replacement libraries that MathWorks provides. Contents of a code replacement library and how the code generator uses the contents. Terminology and limitations. - Replace Code Generated from Simulink Models
This example shows how to replace generated code by using a code replacement library. - Control Regeneration of Top Model Code
Choose options for regenerating code for the top-level model. - Set Up Model for Controlling Program Execution
Set up a model so that you can start and stop program execution for logging output, monitoring data, and tuning parameters. - Configure Model for Debugging
Configure a model so that generated code and the build process are set for debugging. - Aircraft Position Radar Model
Generate code for model that contains an Extended Kalman Filter that estimates aircraft position from radar measurements.
프로젝트에서 코드 생성
- Generate Code and Simulate Models in a Project
This example shows how to use the code generation template for a new Project. - Generate Code and Simulate Models Programmatically with Project
This example shows how to use the Project API to create a new project and automate project tasks for manipulating files.
코드 생성 파일 및 폴더
- Manage Build Process Folders
Manage folders that the code generator creates. - Manage Build Process Files
Work with generated source files and dependency files that the code generator produces. - Manage Build Process File Dependencies
Work with generated source files and dependency files that the code generator produces. - Build Process Support for File and Folder Names
Troubleshoot build process errors that occur when file system issues prevent file processing.