User-Defined Functions
사용자 지정 함수 블록(예: MATLAB Function, MATLAB System, Simulink Function, Initialize Function)
User-Defined Functions 라이브러리의 블록을 사용해 새로운 유형의 블록을 만들어 Simulink® 모델링 기능을 확장합니다. MATLAB®, C/C++, Fortran® 코드를 사용하여 블록 알고리즘을 구현할 수 있습니다.
블록
| C Caller | Integrate C code in Simulink |
| C Function | Integrate and call external C/C++ code from a Simulink model |
| Fcn | 지정된 표현식을 입력에 적용 |
| Function Caller | Call a Simulink function |
| Initialize Function | 모델 초기화 이벤트에서 서브시스템 실행 |
| Interpreted MATLAB Function | (제거될 예정임) MATLAB 함수 또는 표현식을 입력에 적용 |
| Level-2 MATLAB S-Function | 모델에서 Level-2 MATLAB S-Function 사용 |
| MATLAB Function | Simulink 모델에 MATLAB 코드 포함 |
| MATLAB System | Include System object in model |
| Python Code | Integrate native Python code into a Simulink model (R2025a 이후) |
| Reinitialize Function | Execute subsystem on model or subsystem reinitialize event (R2022a 이후) |
| Reset Function | 모델 재설정 이벤트에서 서브시스템 실행 |
| S-Function | 모델에 S-Function 포함 |
| S-Function Builder | C 또는 C++ 코드를 통합하여 S-Function 생성 |
| Simulink Function | Simulink 블록을 사용하여 함수 정의 |
| Terminate Function | 모델 종료 이벤트에서 서브시스템 실행 |
관련 정보
- Call Legacy Lookup Table Functions Using C Function Block
- Modify States of a C Function Block Using Persistent Symbols
- Call C++ Class Methods Using C-Style Wrapper Function from C Function Block
- Call C++ Class Methods Directly from a C Function Block
- Common Uses of the Initialize Function Block
- Reinitialize Function 블록 사용하기
- Initialize, Reset, and Terminate State of Simulink Block