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
인포메이션 타입 FAQ

dSPACE direct 뉴스레터 서비스를 통해 최신 소식을 받아보세요.

dSPACE 뉴스레터 서비스를 통해 최신 use case 와 신규 솔루션 및 제품, 교육 및 이벤트에 대한 정보를 지속적으로 확인하세요. 여기에서 무료 로구독을 신청하세요.

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.