이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Simulink 디버거
Simulink 디버거를 사용하면 한 번에 하나의 메서드에 대한 시뮬레이션을 실행하고 각 메서드를 실행한 결과를 검토할 수 있습니다. 모델 시뮬레이션이 진행됨에 따라 Simulink 편집기 내에서 블록 상태, 블록 입력 및 출력, 블록 메서드 실행에 대한 정보를 표시할 수 있습니다. 이를 통해 모델에서 특정 블록, 파라미터 또는 상호 연결에 대한 문제를 찾아낼 수 있습니다.
Simulink 디버거를 사용하면 다음을 수행할 수 있습니다.
단일 주 시간 스텝 중에 단일 블록 동특성(예: 출력 및 업데이트) 모니터링.
주 시간 스텝을 실행하는 동안 시스템 상태 확인.
단일 주 시간 스텝 중에 솔버 동특성 관찰.
Simulink 디버거는 실행할 모든 디버거 명령에 대해 활성화된(시작된) 상태여야 합니다.
Simulink는 시뮬레이션 스텝 지정기를 사용한 디버그도 지원합니다. 시뮬레이션 스텝 지정기를 사용하면 시뮬레이션을 앞뒤로 스텝 이동하여 데이터를 확인하고 시스템이 상태를 언제 어떻게 변경하는지 검사할 수 있습니다. 자세한 내용은 How Simulation Stepper Helps With Model Analysis 항목을 참조하십시오.
함수
sldebug | 디버그 모드에서 시뮬레이션 시작 |
Simulink 디버거 명령
ashow | Show algebraic loop |
atrace | Set algebraic loop trace level for |
bafter | Insert breakpoint after specified method |
break | Insert breakpoint before specified method |
bshow | Show specified block |
clear | Clear breakpoints from model |
continue | 시뮬레이션 계속 |
disp | Display block's I/O when simulation stops |
ebreak | Enable (or disable) breakpoint on solver errors |
elist | List simulation methods in order in which they are executed during simulation |
emode | Toggle model execution between accelerated and normal mode |
etrace | Enable or disable method tracing |
help | Display help for debugger commands |
nanbreak | Set or clear nonfinite value break mode |
next | Advance simulation to start of next method at current level in model's execution list |
probe | I/O and state data for blocks |
quit | 시뮬레이션 디버거 중지 |
rbreak | Break simulation before solver reset |
run | 시뮬레이션이 완료될 때까지 실행 |
slist | Sorted list of model blocks |
states | 현재 상태 값 |
status | Debugging options in effect |
step | Advance simulation by one or more methods |
stimes | Model sample times |
stop | 시뮬레이션 중지 |
strace | Set solver trace level |
systems | List nonvirtual systems of model |
tbreak | Set or clear time breakpoint |
trace | 블록이 실행될 때마다 블록의 I/O 표시 |
undisp | Remove block from debugger's list of display points |
untrace | Remove block from debugger's list of trace points |
where | Display current location of simulation in simulation loop |
xbreak | Break when debugger encounters step-size-limiting state |
zcbreak | Toggle breaking at nonsampled zero-crossing events |
zclist | List blocks containing nonsampled zero crossings |
예제 및 방법
- Simulink 디버거 시작하기
디버거에서 시뮬레이션을 시작하는 방법
- Start a Simulation
How to start a simulation in debug mode.
- Run a Simulation Step by Step
How to run a simulation step by step.
- Set Breakpoints in Simulink Debugger
How to set breakpoints at blocks and time steps.
- Display Information About the Simulation
How to display information about the current simulation.
- Display Information About the Model
How to display information about the model being debugged.
- Run Accelerator Mode with the Simulink Debugger
Use the Accelerator mode with the debugger.
개념
- Introduction to the Debugger
Overview of the debugger.
- Debugger Graphical User Interface
How to use the debugger graphical user interface.
- Debugger Command-Line Interface
How to debug from the MATLAB® command line.
- Debugger Online Help
How to get help on debugger commands.