MATLAB SIMEVENTS RELEASE NOTES Uživatelská příručka Strana 39

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 38
Explore Simulations Using the Debugger and Plots
2-17
Explore Simulations Using the Debugger and Plots
In this section...
“Explore the D/D/1 System Using the SimEvents Debugger” on page 2-17
“Explore the D/D/1 System Using Plots” on page 2-19
“Information About Race Conditions and Random Times” on page 2-28
Explore the D/D/1 System Using the SimEvents Debugger
The plot in “Run the Simulation” on page 2-13 indicates how many entities have
departed from the server, but does not address the following question: Is any entity still
in the server at the conclusion of the simulation? To answer the question, you can use the
SimEvents debugger, as described in this section. Using the debugger involves running
the simulation in a special debugging mode that lets you suspend a simulation at each
step or breakpoint and query simulation behavior. Using the debugger does not require
you to change the model. The topics in this section are as follows:
“Start the Debugger” on page 2-17
“Run the Simulation” on page 2-18
“Query the Server Block” on page 2-18
“End the Simulation” on page 2-19
“For Further Information” on page 2-19
Start the Debugger
To open a completed version of the example model for this tutorial, enter
simeventsdocex('doc_dd1') in the MATLAB Command Window. Save the model in your
working folder as dd1.
To start simulating the current system in debugging mode, enter this command at the
MATLAB command prompt:
sedebug(bdroot)
The output in the MATLAB Command Window indicates that the debugger is active. The
output also includes hyperlinks to information sources.
*** SimEvents Debugger ***
Zobrazit stránku 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 113 114

Komentáře k této Příručce

Žádné komentáře