How to use Bus with enumeration in S-Function Builder

Dear Support Team,
I am currently working on a Simulink project where I would like to use an S-Function to integrate C++ code.
I require the S-Function to have multiple Simulink.Bus inputs. For the configuration of this S-Function I use the S-Function builder. It works fine for most Simulink.Bus objects, however I can not get it to compile for Simulink.Bus objects that contain enumerated types.
The error message I receive in the S-Function Builder/Build Info tab is: "ERROR: For enumerated types a header must be specified for the Bus object ... for input port 1".
Following this hint, I tried to specify a header file for the bus object of interest, which got me one step further. The build process starts, however fails for the reason that there are undefined references to that bus object.
Unfortunately, I could not find any help online, which is why I am contacting you. Do you have any siggestions how to resolve this issue?

Answers (0)

Asked:

on 7 Sep 2020

Community Treasure Hunt

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

Start Hunting!