이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Simulink 함수
Simulink 모델에서 액세스 가능한 함수 만들기
Simulink® 함수는 입력이 제공될 경우 출력을 계산하는 계산 유닛입니다. Simulink 함수는 함수 정의 및 함수 호출자에 대한 하나의 공통된 텍스트 인터페이스를 제공하므로 함수를 어떻게 정의할지는 사용자의 선택입니다. 함수는 다음과 같은 방법으로 정의할 수 있습니다.
Simulink Function 블록에 있는 Simulink 블록
내보낸 Stateflow® 그래픽 함수에 있는 Stateflow 상태 천이
내보낸 Stateflow MATLAB 함수에 있는 MATLAB® 코드 문
함수를 정의한 후에는 Function Caller 블록, MATLAB Function 블록 또는 Stateflow 차트를 사용하여 호출할 수 있습니다.
블록
도움말 항목
Simulink 함수 이해
- Simulink Functions Overview
Functions in a Simulink model that share a common text interface with function callers. - Add a Simulink Function to a Model
Define a Simulink function using a Simulink Function block or an exported graphical or MATLAB function from a Stateflow chart. - Call a Simulink Function from a Model
Call a Simulink function from a Simulink model using a Function Caller block, a MATLAB Function block, or a Stateflow chart. - Scoped, Global, and Port-Scoped Simulink Function Blocks Overview
Specify visibility and access of Simulink Function blocks. - Simulink Function Blocks in Referenced Models
Add and access functions in model components.
유효 범위가 설정된 Simulink 함수
- Scoped Simulink Function Blocks in Subsystems
Limit the scope of a function to a subsystem. - Scoped Simulink Function Blocks in Models
Limit the scope of a function to a model. - Define Diagnostic Services Using Simulink Functions
Create a diagnostic service with functions where callers pass an error code. - Resolve Error: Block Is Unable to Call The Scoped Simulink Function
Troubleshoot block unable to call the function error in Simulink.
Simulink의 클라이언트-서버 인터페이스
- Model Client-Server Communication Using Function Ports
Use function ports to model client and server components in a service-oriented architecture. - Model Service-Oriented Communication Between Sensors (System Composer)
Use a service interface to call services from multiple instances of a referenced component. - Service Interfaces Overview (System Composer)
Create client and server ports, author service interfaces in Interface Editor, associate interfaces with ports.