How can bus elements inherit data type?

조회 수: 3 (최근 30일)
Waldemar Warkentin
Waldemar Warkentin 2017년 8월 26일
댓글: Connor Holmes 2021년 3월 10일
I want to use a non-virtual bus for one subsystem with e.g. 4 inputs in order to get a struct interface in generated code. However the inputs have already different data types (e.g. int16, sfx16_En3, ufx16_En6, uint16) defined in the subsystem. To define bus object with the 4 elements it is necessary to define data types for the elements. I would like to inherit the existing data types via back propagation. But this data type option is not available??? Does anybody know a solution for this issue? Thanks in advance.

답변 (1개)

Sudarshan Kolar
Sudarshan Kolar 2017년 8월 29일
Hi Waldemar,
As of now it is not possible for the inputs of the Bus creator to inherit data types via back propagation. You have to explicitly specify the data types in the bus object.
-Sudarshan
  댓글 수: 1
Connor Holmes
Connor Holmes 2021년 3월 10일
It is possible only if you force the bus creator to output a non-virtual bus. However, this may have other consequences

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by