Simulink FMI 3.0 Binary data

조회 수: 26 (최근 30일)
Sebastian
Sebastian 2023년 12월 4일
댓글: Andrew 2025년 8월 21일
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
Andrew
Andrew 2025년 8월 21일
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
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.

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by