이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
진단
모델에 대한 진단 결과 보기, 진단 검사 구성 및 사용자 지정, 진단 뷰어 레이아웃 이해
Simulink®는 모델에 대한 Simulink 작업 중에 특정 조건이 감지되는 경우 진단 메시지를 제공합니다. 진단 메시지는 오류, 정보 또는 경고 범주로 나뉘어 캡처됩니다.
프로그래밍 작업 중에 발생하는 진단 메시지는 MATLAB® 명령 창에 표시되는 반면, Simulink 사용자 인터페이스 작업 중에 발생하는 진단 메시지는 진단 뷰어에 표시됩니다. 예를 들어 MATLAB 명령 프롬프트에서 sim
함수를 사용하여 모델을 시뮬레이션하는 경우 명령 창에 진단 메시지가 표시됩니다. 하지만, Simulink 툴스트립에서 시뮬레이션을 실행하는 경우에는 진단 뷰어에 진단 메시지가 표시됩니다.
진단 메시지는 사용자 지정할 수 있으며, 소프트웨어가 검사하는 조건도 사용자 지정하여 오류 또는 경고가 생성되도록 할 수 있습니다.
모델에 대한 진단은 진단 뷰어 사용자 인터페이스에 표시됩니다. 진단 뷰어에 대한 자세한 내용은 진단 뷰어 항목을 참조하십시오.
또한, Model Verification 블록을 모델에 추가하여 특정 신호의 조건을 검사할 수도 있습니다. Model Verification에 대한 자세한 내용은 모델 어드바이저 검사 실행하기에 나열된 항목을 참조하십시오.
함수
클래스
Simulink.SuppressedDiagnostic | Suppress diagnostic messages from specific block |
sldiagviewer.DiagnosticReceiver | Create receiver to get diagnostic details of model operation (R2025a 이후) |
네임스페이스
sldiagviewer | Summary of classes, functions, and namespaces associated with diagnostics |
sldiagviewer.Comparator | Summary of functions for comparing diagnostics (R2025a 이후) |
앱
파라미터 양자화 어드바이저 | Inspect numerical issues related to parameter quantization (R2022b 이후) |
툴
진단 뷰어 | View, compare, and diagnose errors and warnings generated by Simulink models |
모델 설정
검사
도움말 항목
진단 뷰어
- 오류 및 경고에 대한 체계적인 진단
오류 및 경고를 체계적으로 식별하고 찾습니다. - Report Diagnostic Messages Programmatically
Usesldiagviewer
functions to generate, display, and log diagnostic messages. - Suppress Diagnostic Messages Programmatically
Suppress and restore diagnostic messages programmatically. - Customize Diagnostic Messages
Customize error messages to display text and hyperlink. - Compare Diagnostic Messages Between Model Simulations
Compare diagnostic messages from different run-time operations of a model in the Diagnostic Viewer. - Compare Diagnostic Messages Between Model Simulations Programmatically
Compare diagnostic messages from different run-time operations of a model programmatically. - Error Handling in Simulink Using MSLException Objects
Simulink allows you to report an error by throwing an exception using theMSLException
object, which is based on the MATLABMException
object.