In FMI 2.0, array parameters are serialized to scalar variables. Importing tools can display them as arrays, but their size is fixed and their handling is inefficient. Better array support is currently in development by a working group of the FMI project, but I would like to know about workarounds how to handle array parameters in the meantime.
Ideas are to
- hard code them (disadvantage: the are no paramters any more ...)
- put them in a CSV file in the resources folder and read them at the start of the simulation (disadvantage: no parameter mask support, complicated)
- put them in a string parameter and parse it at simulation start (disadvantage: limited length of strings, complicated)
Are there other ideas / workarounds? Thanks in advance.