프로그래밍 방식으로 시뮬레이션 디버그하기
Simulink® 디버그 프로그래밍 인터페이스는 Simulink 편집기에서 사용할 수 있는 것과 유사한 디버그 옵션을 MATLAB 명령 창에서 제공합니다. 또한 프로그래밍 인터페이스를 사용하여 다음을 수행할 수 있습니다.
한 번에 하나의 블록 메서드씩 모델을 순차적으로 실행합니다.
블록 메서드에 중단점을 설정합니다.
솔버 재설정 중단점과 같은 추가적인 모델 중단점을 설정합니다.
비가상 서브시스템 목록을 포함하여 모델에 대한 추가 정보를 표시합니다.
시뮬레이션 디버그 세션에서 데이터 표시 및 모델 실행을 제어하는 기능은 디버그 세션을 시작한 후에만 사용할 수 있습니다.
함수
시뮬레이션 디버그 세션 시작
sldebug | Simulink 모델에 대한 시뮬레이션 디버그 세션 시작 |
시뮬레이션 디버그 세션에서 모델 실행 제어
bafter | Insert breakpoint after specified method in simulation debugging session |
break | Insert breakpoint before specified method in simulation debugging session |
clear | Clear breakpoint in simulation debugging session |
continue | 시뮬레이션 디버그 세션 계속 |
ebreak | Set or clear breakpoint to pause when solver error occurs in simulation debugging session |
emode | Switch between accelerator and normal mode during simulation debugging session |
nanbreak | Set or clear breakpoint to pause when Inf or
NaN value occurs in simulation debugging session |
next | Progress simulation debugging session to start of next method in model execution list |
quit | 시뮬레이션 디버그 세션 종료 |
rbreak | Configure simulation debugging session to pause before solver reset |
run | 중단점을 무시하고 현재 지점부터 시뮬레이션의 끝까지 시뮬레이션 디버그 세션 실행 |
step | Advance simulation by specified increment |
stop | 시뮬레이션 디버그 세션 중지 |
tbreak | Set or clear breakpoint that pauses simulation debugging session at specified time |
xbreak | Set or clear breakpoint to pause when state limits step size in simulation debugging session |
zcbreak | Configure simulation debugging session to pause when nonsampled zero-crossing events occur |
시뮬레이션 디버그 세션에서 정보 표시
ashow | Identify and highlight algebraic loops in simulation debugging session |
atrace | Configure simulation debugging session to display information each time algebraic loop is solved |
bshow | Highlight block in model with specified block ID during simulation debugging session |
disp | 시뮬레이션 디버그 세션이 일시 중지되면 지정된 블록에 대한 정보를 표시 |
elist | Display execution order in simulation debugging session |
etrace | Configure simulation debugging session to display information when entering and exiting methods |
help | Display help for Simulink debugging programmatic interface during simulation debugging session |
probe | Display input, output, and state data for specified block in simulation debugging session |
slist | Display sorted list of blocks in model during simulation debugging session |
states | 시뮬레이션 디버그 세션 중 상태 값 표시 |
status | Display options used in current simulation debugging session |
stimes | Display information about sample times in model during simulation debugging session |
strace | Display solver information in simulation debugging session |
systems | List nonvirtual subsystems in model or model hierarchy during simulation debugging session |
trace | 시뮬레이션 디버그 세션에서 블록이 실행될 때마다 지정된 블록에 대한 정보 표시 |
undisp | Remove display point in simulation debugging session |
untrace | Remove trace point in simulation debugging session |
where | Display current location within simulation loop during simulation debugging session |
zclist | List blocks that detect zero crossings in simulation debugging session |
도움말 항목
- Simulink Debugging Programmatic Interface
Learn the basics of the Simulink debugging programmatic interface.
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)