Open hitotech1221 opened 1 year ago
Can you provide an example to reproduce the problem?
This occurred with 3.1 mex files, not with 3.0. Attached is a screen shot of the problem, and the FMI-kit outputs the constant value with a delay. The top is the FMI-kit block and the bottom is the FMU block in simulink. The output of the In1 signal is also delayed. This is common between 3.0 and 3.1.
Can you share the model and FMUs above?
forgit.zip Attached files.
When outputting a non-zero constant such as a constant block as is, the output is zero at time 0. This behavior is different from the official simulink fmu block. In line 1776 of sfun_fmurun.c, shouldn't h>=0 instead of h>=0?