이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
진단
모델에 대한 진단 결과 보기, 진단 검사 구성 및 사용자 지정, 진단 뷰어 레이아웃 이해
Simulink®는 모델에 대한 Simulink 작업 중에 특정 조건이 감지되는 경우 진단 메시지를 제공합니다. 진단 메시지는 오류, 정보 또는 경고 범주로 나뉘어 캡처됩니다.
프로그래밍 작업 중에 발생하는 진단 메시지는 MATLAB® 명령 창에 표시되는 반면, Simulink 사용자 인터페이스 작업 중에 발생하는 진단 메시지는 진단 뷰어에 표시됩니다. 예를 들어 MATLAB 명령 프롬프트에서 sim
함수를 사용하여 모델을 시뮬레이션하는 경우 명령 창에 진단 메시지가 표시됩니다. 하지만, Simulink 툴스트립에서 시뮬레이션을 실행하는 경우에는 진단 뷰어에 진단 메시지가 표시됩니다.
진단 메시지는 사용자 지정할 수 있으며, 소프트웨어가 검사하는 조건도 사용자 지정하여 오류 또는 경고가 생성되도록 할 수 있습니다.
모델에 대한 진단은 진단 뷰어 사용자 인터페이스에 표시됩니다. 진단 뷰어에 대한 자세한 내용은 View Diagnostics 항목을 참조하십시오.
또한, Model Verification 블록을 모델에 추가하여 특정 신호의 조건을 검사할 수도 있습니다. Model Verification에 대한 자세한 내용은 모델 어드바이저 검사 실행하기에 나열된 항목을 참조하십시오.
함수
sldiagnostics | Display diagnostic information of Simulink system |
Simulink.restoreDiagnostic | Restore diagnostic warnings to a specific block, subsystem, or model |
Simulink.suppressDiagnostic | Suppress a diagnostic from a specific block |
Simulink.getSuppressedDiagnostics | Return Simulink.SuppressedDiagnostic objects
associated with a block, subsystem, or model |
Simulink.BlockDiagram.getChecksum | Return model checksum |
Simulink.SubSystem.getChecksum | Return checksum of nonvirtual subsystem |
modeladvisor | 모델 어드바이저 열기 |
sldebug | Simulink 모델에 대한 시뮬레이션 디버그 세션 시작 |
addterms | 모델에서 연결되지 않은 포트에 종단 추가 |
sldiagviewer.createStage | Create stage to display diagnostic messages |
sldiagviewer.reportError | Report error messages in Diagnostic Viewer |
sldiagviewer.reportInfo | Report information messages in Diagnostic Viewer |
sldiagviewer.reportWarning | Report warning messages in Diagnostic Viewer |
sldiagviewer.diary | Log diagnostic messages and build information in file |
sldiagviewer.reportSimulationMetadataDiagnostics | Display errors and warnings in Simulink.SimulationOutput object
using Diagnostic Viewer (R2020b 이후) |
클래스
Simulink.SuppressedDiagnostic | Suppress diagnostic messages from a specified block |
sldiagviewer | Generate, display, and log diagnostic messages in the Diagnostic Viewer |
모델 설정
검사
도움말 항목
진단 뷰어
- View Diagnostics
View and diagnose errors and warnings with the Diagnostic Viewer. - Systematic Diagnosis of Errors and Warnings
Identify and locate errors and warnings systematically. - 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. - Error Handling in Simulink Using MSLException
Simulink allows you to report an error by throwing an exception using theMSLException
object, which is a subclass of the MATLABMException
class.