Simulink FMI 3.0 Binary data

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 commentaires

Jatin
Jatin le 23 Mai 2024
Hello Sebastian,
I don't have a solution to your problem but I am currently exploring the implementation of the new binary data type in FMI 3. I couldn't find any fmu examples with binary data type.
Could you share any insights on this?
Thank you
Jatin
Andrew
Andrew le 21 Août 2025
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

Connectez-vous pour commenter.

Réponses (1)

Yash
Yash le 19 Jan 2025

0 votes

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.

Produits

Version

R2023b

Question posée :

le 4 Déc 2023

Commenté :

le 21 Août 2025

Community Treasure Hunt

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

Start Hunting!

Translated by