이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
이벤트 함수
디폴트 모델 초기화 및 종료 메서드에 사용자 지정 루틴을 추가하여 동적인 시작 및 종료 동작을 모델링할 수 있습니다. 시뮬레이션 중에 이벤트를 사용해 메서드가 실행되는 시점을 제어할 수 있습니다. 함수를 만들어 초기값으로 블록을 재초기화할 수 있습니다.
블록
모델 설정
Parameter Writer 블록 유효성 검사 | Globally or locally enable parameter validation (R2023a 이후) |
도움말 항목
- Common Uses of the Initialize Function Block
This example shows how to use the Initialize Function block to perform these common initialization actions.
- Using Initialize, Reinitialize, Reset, and Terminate Functions
Set the state of a block with an initialize function-call event. Reset block states with a reinitialize or reset function-call event. Save the state of a block with a terminate function-call event.
- Create Test Harness to Generate Function Calls
Schedule initialize, reset, and terminate function-call events.
- Initialize, Reset, and Terminate State of Simulink Block
This example shows how to use the Initialize Function, Reset Function, and Terminate Function blocks to respond to events in a Simulink model.
- Initialize and Reset Parameter Values
Use the Parameter Writer block to change block parameter values during model simulation.
- Reinitialize Function 블록 사용하기
이 예제는 Reinitialize Function 블록을 사용하여 서브시스템이 수신한 모든 함수 호출 이벤트에 대해 Discrete-Time Integrator 블록의 초기 조건을 재설정하는 방법을 보여줍니다.
- Initialize, Reinitialize, Reset, and Terminate Function Limitations
Determine whether Initialize Function, Reinitialize Function, Reset Function, or Terminate Function blocks support a block, feature, or modeling pattern.
- Prepare Sensor and Controller Models in a Distributed Monitoring System for Code Generation
Prepare models to generate code for deployment on target hardware platforms.
- Use Parameter Writer Block to Change Block Parameters
This example shows how to use the Parameter Writer block to change the values of block parameters.
- Use Connectors Tool to Visualize Connections Between Blocks
This example shows how to use the Connectors tool to visualize the connections between blocks.
- Access Data Store at Higher Level in Model Hierarchy
Access data store defined at a higher-level in the model hierarchy.