How can i make S-Function builder to accept data types like uint8_t, uint16_t, int16_t, int64_t, etc..... ?

4 views (last 30 days)
I am trying to use a bus object in S-Function builder. The bus has its signals with data types like uint16_t, int16_t, float64_t... when i try to build the S-Function builder block it shows the below error message. How can I make my S-Function Builder compatible to these data types.
Invalid bus "Bus Name" specified for output port: 2. The element 'Bus element name' specifies data type uint8_t, which is unsupported. S-Function Builder supports bus elements of the following data types: double, single, int8, uint8, int16, uint16, int32, uint32, boolean, fixed-point, enumerated, bus.
Note: The bus object has it own header file where all the data types are defined/declared.

Answers (0)

Community Treasure Hunt

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

Start Hunting!