Main Content

连接信号端口

Previous releases useGet Attributeblocks to output the values of entity attributes. SimEvents 5.0 is more closely tied to Simulink®. This close association lets you use traditional Simulink tools to get attribute values. ReplaceGet Attributeblocks using these guidelines.

If Connected to Gateway Blocks

SimEvents®models no longer require gateway blocks. Remove all gateway blocks, as shown in the figure:

Return to连接信号端口.

If Using Get Attribute Blocks to Observe Output

If you useGet Attributeblocks to observe output, seeObserve Output. For example, you can use the Simulation Data Inspector to visualize entities from anEntity Generatorblock. This example shows how to visualize entities using the Simulation Data Inspector, logging, and a scope.

Return to连接信号端口.

If Connected to Computation Blocks

If theGet Attributeblock is connected to computational blocks, reproduce the behavior of these blocks with万博1manbetx仿真软件的功能blocks.

  1. Place the computation blocks in a万博1manbetx仿真软件的功能block.

  2. Call the万博1manbetx仿真软件的功能block from an event action.

This example places theGainandBiasblocks in the万博1manbetx仿真软件的功能block.

This table shows how each statistics port gets updated.

Statistics Port 更新Event
Entry Exit Blocked Preempted

Number of entities departed, d

Number of entities in block, n

Number of entities arrived, a

Pending entity present in block, pe

Number of pending entities, np

Number of entities preempted, p

Average intergeneration time, w

Average wait, w

Average queue length, l

Utilization, util

Return to连接信号端口.

If Connected to Reactive Ports

In previous releases, reactive ports are signal input ports that listen for updates or changes in the input signal. When the input signal changes, an appropriate reaction occurs in the block possessing the port. Convert all reactive port event signals to messages, as in this example.

For more information, seeReactive Ports.

Return to连接信号端口.

Related Topics