What is the output data type of entity gate block in Simulink?

2 次查看(过去 30 天)
I want to send the output of entity gate block to goto block. If I connect them directly then I get an error that the output port of entity gate is not compatible with the input port of goto. I have also put data conversion block before goto. But I got same error again. Please help me out.

回答(1 个)

Mandar Patwardhan
Mandar Patwardhan 2017-5-10
Entity gate block is a part of the SimEvents library. SimEvents is usually used for modeling and simulating discrete-event systems. In this regard, the Entity gate block is used for signal routing. Hence the output of the Entity gate block itself is not fixed, but it lets the control signal go through it (as an output) based on the selected operating mode.
  • When the Operating mode parameter is set to Enable gate, this block represents a gate that is open whenever the control signal at the input port is positive, and closed whenever the signal is zero or negative. By definition, an open gate permits entity arrivals as long as the entities would be able to advance immediately to the next block, while a closed gate forbids entity arrivals. The input signal is a numerical signal of type double. Because the signal can remain positive for a time interval of arbitrary length, an enabled gate can remain open for a time interval of arbitrary length. The length can be zero or a positive number.
  • When the Operating mode parameter is set to Release gate, this block permits the arrival of one pending entity when a signal-based event or function call occurs; at all other times, the entity input port of the block is unavailable. By definition, the opening of the gate permits one pending entity to arrive if the entity is able to advance immediately to the next block.
No simulation time passes between the opening and subsequent closing of the gate. The gate opens and then closes in the same time instant. If no entity is already pending when the gate opens, then the gate closes without processing any entities.
To understand the working of Entity Gate block, refer to the Passenger Checkin model. Execute the following command to open the model.
>>seExampleEntityPriority

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by