Simulink FMI 3.0 Binary data
35 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Christian Bertsch
el 24 de Mayo de 2024
You can find a simple example in the FMI Reference FMUs
Andrew
el 21 de Ag. de 2025 a las 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
Respuestas (1)
Yash
el 19 de En. de 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.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!