The Conveyor System block transports entities across a surface. Use this block to model transportation applications.
When using the Conveyor length, Conveyor speed, Minimum distance between entities, and Entity length value parameters, ensure that the values are consistent with each other. For example, if you want an entity length of 10 cm using a conveyor system of length 100 m, use these values:
Conveyor length to
Entity length to 0.1
port_1— Incoming entity
Input entity port for entities entering the queue.
port_1— Exiting entity
Output entity port for entities leaving the queue
d— Number of exited entities
Selecting this check box outputs the number of entities that have exited the block.
To enable this port, select the Statistics > Number of entities departed, d check box.
n— Entities in block
Selecting this check box outputs the number of entities in the block.
To enable this block, select the Statistics > Number of entities in block, n check box.
pe— Pending entity in block
Selecting this check box outputs the number of pending entities in the conveyor system.
To enable this port, select the Statistics > Pending entity in block, pe.
Conveyor length— Length of surface
Length of surface that entities travel on.
Conveyor speed— Speed of surface
Speed of surface that entities travel on.
Minimum distance between entities— Minimum physical separation
Minimum physical separation entities maintain while moving across the conveyor system.
Entity length source— Entity length source
Provide entity length, selected from the drop-down list.
Dialog — Selecting this option
enables the Entity length value
Attribute — Selecting this option
enables the Entity length attribute name
Entity length value— Length of entities
Length of entities, specified as a numeric value.
To enable this parameter, select Entity length valueDialog.
Entity length attribute name— Name of entity length attribute
Length(default) | character vector
Name of entity length attribute, specified as a character vector.
Blocked output behavior— Behavior when the output is blocked
Behavior when output is blocked, selected from drop-down list:
Accumulate — Accumulate
Pause — Pause conveyor system.
Error — Return an error.
Error if conveyor full— Conveyor behavior when the maximum number of entities is reached
Conveyor behavior when system is full.
Return an error if the conveyor system is full.
Do not return an error if the conveyor system is full.
Simulate using— Simulate using specified mode
Select the simulation mode.
On the first model run, simulate and generate code for using only MATLAB® functions supported for code generation. If the structure of the block does not change, subsequent model runs do not regenerate the code.
Simulate model using all supported MATLAB functions. Choosing this option can slow simulation performance.
Number of entities departed, d— Number of entities departed
Number of entities that have departed the block.
Number of entities in block, n— Number of existing entities
Outputs the number of entities present in the block.
Pending entity in block, pe— Pending entities
Indicates whether there are entities present in the block that have yet to depart.