Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

진단

모델에 대한 진단 결과 보기, 진단 검사 구성 및 사용자 지정, 진단 뷰어 레이아웃 이해

Simulink®는 모델에 대한 Simulink 작업 중에 특정 조건이 감지되는 경우 진단 메시지를 제공합니다. 진단 메시지는 오류, 정보 또는 경고 범주로 나뉘어 캡처됩니다.

프로그래밍 작업 중에 발생하는 진단 메시지는 MATLAB® 명령 창에 표시되는 반면, Simulink 사용자 인터페이스 작업 중에 발생하는 진단 메시지는 진단 뷰어에 표시됩니다. 예를 들어 MATLAB 명령 프롬프트에서 sim 함수를 사용하여 모델을 시뮬레이션하는 경우 명령 창에 진단 메시지가 표시됩니다. 하지만, Simulink 툴스트립에서 시뮬레이션을 실행하는 경우에는 진단 뷰어에 진단 메시지가 표시됩니다.

진단 메시지는 사용자 지정할 수 있으며, 소프트웨어가 검사하는 조건도 사용자 지정하여 오류 또는 경고가 생성되도록 할 수 있습니다.

모델에 대한 진단은 진단 뷰어 사용자 인터페이스에 표시됩니다. 진단 뷰어에 대한 자세한 내용은 항목을 참조하십시오.

또한, Model Verification 블록을 모델에 추가하여 특정 신호의 조건을 검사할 수도 있습니다. Model Verification에 대한 자세한 내용은 모델 어드바이저 검사 실행하기에 나열된 항목을 참조하십시오.

함수

sldiagnosticsDisplay diagnostic information of Simulink system
Simulink.restoreDiagnosticRestore diagnostic warnings to a specific block, subsystem, or model
Simulink.suppressDiagnosticSuppress a diagnostic from a specific block
Simulink.getSuppressedDiagnostics Return Simulink.SuppressedDiagnostic objects associated with a block, subsystem, or model
Simulink.BlockDiagram.getChecksumReturn model checksum
Simulink.SubSystem.getChecksumReturn checksum of nonvirtual subsystem
modeladvisor모델 어드바이저 열기
sldebugSimulink 모델에 대한 시뮬레이션 디버그 세션 시작
addterms모델에서 연결되지 않은 포트에 종단 추가
sldiagviewer.createStageCreate stage to display diagnostic messages
sldiagviewer.reportErrorReport error messages in Diagnostic Viewer
sldiagviewer.reportInfoReport information messages in Diagnostic Viewer
sldiagviewer.reportWarningReport warning messages in Diagnostic Viewer
sldiagviewer.diaryLog diagnostic messages and build information in file
sldiagviewer.reportSimulationMetadataDiagnosticsDisplay errors and warnings in Simulink.SimulationOutput object using Diagnostic Viewer (R2020b 이후)

클래스

Simulink.SuppressedDiagnosticSuppress diagnostic messages from a specified block
sldiagviewerGenerate, display, and log diagnostic messages in the Diagnostic Viewer

도움말 항목

진단 뷰어