Simulink FMI 3.0 Binary data
38 次查看(过去 30 天)
显示 更早的评论
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 个评论
Christian Bertsch
2024-5-24
You can find a simple example in the FMI Reference FMUs
Andrew
2025-8-21,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
回答(1 个)
Yash
2025-1-19
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!