Simulink FMI 3.0 Binary data

38 views (last 30 days)
Sebastian
Sebastian on 4 Dec 2023
Commented: Andrew on 21 Aug 2025 at 14:36
I'm currently testing the importing of a FMU v3.0 (Co-Simulation) in Simulink, which is supported since R2023b. In the 3.0 specification, binary data is supported as a new data type. I have a simple test FMU with an binary output signal, which is recognized when importing the FMU aswell as the data type "FMUBinary".
The model runs without any array error and the Float64Output behaves like expected. But when I try to connect the signal with any other block, like, for example a MATLAB function to do some calculations with the data, I get the error message:
Error:The 'SubSystem' block cannot accept a signal of type FMUBinary. A signal of type FMUBinary is connected to 'Input Port 1' of block 'DynamicArray/MATLAB Function'.
Does some know how to handle this FMUBinary data type? Thanks in advance!
  3 Comments
Andrew
Andrew on 21 Aug 2025 at 14:36
Hi all,
I am attempting to create a FMUBinary data type, but am still running into issues. Do you happen to have any examples of this yet? I apologize for the revival of an old thread
Regards,
Andrew

Sign in to comment.

Answers (1)

Yash
Yash on 19 Jan 2025
The error you're encountering arises because the MATLAB Function block does not support the FMUBinary data type. Consequently, while your FMU operates correctly on its own, this issue arises when integrating it with a MATLAB Function block. It seems that the FMUBinary data type is compatible with Inport, Outport, From, and Goto blocks in Simulink. To resolve this, try using an S-Function block to convert the FMUBinary data into a compatible data type.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!