Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
MATLAB_R2013a_SimEvents_маг.doc
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
5.48 Mб
Скачать

Build a Discrete-Event Model(дискретно - событийная)

On this page…

Overview(обзор)

Open a Model and Libraries

Move Blocks into the Model Window

Configure Blocks

Connect Blocks

Run the Simulation

Insert Blocks

Build a Model Using Model Construction Commands

Overview

This section describes how to build a new model representing a discrete-event system. The system is a simple queuing system in which "customers"(клиенты) — entities — arrive at a fixed deterministic rate(приходим к фиксир детерминир скоростью), wait in a queue, and advance to a server that operates at a fixed deterministic rate(переходящая в серевер, который работает с фиксированной....). This type of system is known as a D/D/1 queuing system in queuing notation. The notation indicates(показывает) a deterministic arrival rate, a deterministic service rate(скорость обслуживания), and a single server.

Using the example system, this section shows you how to perform basic model-building tasks, such as:

  • Adding blocks to models

  • Configuring blocks using their parameter dialog boxes

The next section, Explore Simulations Using the Debugger and Plots(содержание, участки, отсеки) (директория R2013a>SimEvents>Getting Started with SimEvents), uses the same D/D/1 system to illustrate techniques more specific to discrete-event simulations, such as:

  • Using the SimEvents® debugger to examine the state of a server

  • Using plots to understand simulation behavior(поведение), including plots that show multiple values at a fixed time

To skip(пропускать) the model-building steps and open a completed version of the example model, enter simeventsdocex('doc_dd1')simeventsdocex('doc_dd1') in the MATLAB® Command Window. После нажатия клавиши Enter появится модельное окно (редактор) doc_dd1:

Save the model in your working folder (здесь C:\Users\Sony\Documents\MATLAB\MATLAB_R2013a) as dd1. Для сохранения модели в меню File её редактора нужно выбрать опцию Save As, которая даст соответствующее диалоговое окно:

Сохранять свои модели в указанной здесь директории путей C:\Program Files\MATLAB\R2013a\help\toolbox\simevents\examples нельзя, так как это MATLAB-директория пакета. Необходимо сменить данную директорию на текущую рабочую, user-предустановленную (your working folder). Для этого следует набрать нужное имя (например dd1) модели в строке "Имя файла", кликнуть правый крайний треугольный указатель во второй строке сверху и выбрать требуемую директорию:

После клика выбранной директории и кнопки "Сохранить" вид установочного поля изменится:

В поле Current Folder рабочего стола Desktop появится новый файл SimEvents-модели - dd1.slx (slx - расширение или тип файла):

Для целей самостоятельного построения указанной модели файл dd1.slx из текущей папки Current Folder следует удалить.

Note:   When you later create your own models, use the conversion blocks(блоки преобразования) from the Gateways library (gateway blocks) to convert signals and function-calls from signal-based to event-based and vice versa(наоборот).

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]