이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Variant 이벤트 기반 구성요소
조건에 따라 이벤트와 Simulink 함수의 초기화, 재설정, 종료 실행
선택한 Variant 제어에 따라 모델 초기화, 재설정, 종료 이벤트에서 서브시스템 실행을 활성화 또는 비활성화할 수 있습니다. 또한, 조건에 따라 Simulink® 함수도 실행할 수 있습니다.
이벤트 기반 Variant 블록에 대해 생성한 코드에는 시스템의 모든 Variant 선택지가 포함될 수 있습니다. 코드를 컴파일하기 전에 선택지 간에 전환할 수 있습니다. 이벤트 기반 Variant 블록으로 코드를 생성하는 방법에 관한 자세한 내용은 항목을 참조하십시오.
블록
Initialize Function | 모델 초기화 이벤트에서 서브시스템 실행 |
Reset Function | 모델 재설정 이벤트에서 서브시스템 실행 |
Terminate Function | 모델 종료 이벤트에서 서브시스템 실행 |
Simulink Function | Simulink 블록을 사용하여 그래픽 방식으로 함수 정의 |
클래스
Simulink.VariantControl | Create a variant control variable object (R2021a 이후) |
Simulink.Parameter | Store, share, and configure parameter values |
Simulink.Variant | Specify conditions that control variant selection |
함수
enumeration | 클래스의 열거형 멤버와 이름 |
객체
struct | 구조체형 배열 |
도움말 항목
- Conditionally Execute Custom Initialize, Reinitialize, Reset, and Terminate Routines
The custom routine blocks(Initialize Function, Reinitialize Function, Reset Function, and Terminate Function) blocks are preconfigured subsystem blocks that enable you to add custom routines to the default initialize, reset, and terminate routines to change or read block states.
- Conditionally Execute Simulink Functions
With variant blocks, you can conditionalize functions defined using Simulink Function blocks.