How can bus elements inherit data type?

2 views (last 30 days)
Waldemar Warkentin
Waldemar Warkentin on 26 Aug 2017
Commented: Connor Holmes on 10 Mar 2021
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.

Answers (1)

Sudarshan Kolar
Sudarshan Kolar on 29 Aug 2017
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 Comment
Connor Holmes
Connor Holmes on 10 Mar 2021
It is possible only if you force the bus creator to output a non-virtual bus. However, this may have other consequences

Sign in to comment.

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!