FAQ 555: Bus Manager - Signal extraction from model port block created by Bus Configuration

Question

How to extract signals from a Model Port Block for Model Mapping 
Model port blocks are usually created during the propagation of the bus configuration. However, due to the hierarchy of that configuration, it’s not always possible to directly map model signals to the model port block. 
To access signals from this hierarchy, we often need to connect the bus creator block, which can be a tedious task. 
A MATLAB script can simplify this process by automatically extracting the ports and connecting the model signals, saving time and effort.

Solution

Generate Model Port Blocks

Propagate the bus configuration using any approach (e.g., port-based, block-based, or function-based).
Example: Block-based approach.

Create Model Port Block Periphery

Select the model port block and choose the “Create Model Port Block Periphery” option.

  • This option connects constant inputs and terminations to the respective inports and outports.
  • The constants generated will be placed in subsystems based on the hierarchy of the bus configuration.

Add the Script to the Working Directory

After completing the above steps, add the provided script to your working directory.

Execute the Command for Periphery Blocks

  • Select the periphery blocks generated (e.g., ‘In’ and ‘Out’ in the example) one at a time.

In the MATLAB Command Window, run: givePeripheryInports(gcb)

Tags

Date 2026-06-16
产品 Bus Manager
资料信息 常见问答

通过 dSPACE时事通讯服务了解最新信息。

通过 dSPACE 时事通讯服务,我们将随时向您通报当前的使用案例、新解决方案和产品以及培训和活动。在此注册,免费订阅。

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.