Closed Th721ass closed 1 year ago
Zero based indexing is (and always has been) allowed in the FMI (see https://github.com/modelica/fmi-standard/releases/download/v2.0.4/FMI-Specification-2.0.4.pdf, p. 6):
[Clarification for FMI 2.0.2: In the structured naming convention both 0- and 1-based array indexing is allowed.]
Hello, first of all thank you for the great tool. I have the problem when I combine several signals with a mux into one output signal and then build an FMU from this model. When I import the FMU with the normal FMU Simulink import, I get the error that the index does not start at 1. This is also clearly visible in the file "modelDescription.xml". The output signal is then generated with Output [0], Output [1], Output [2], Output [3], Output [4]. When importing into Matlab, the following warning is shown and all signals are again integrated separately as outputs.
Is there a way to make the index of the array count from 1 when creating the FMU. Or in which script of FMIkit is this done. As I understand it, this has to be adapted to comply with the FMI standard. Has anyone else had problems using array or matrix outputs?