(Internal) Loading the FMU library into the address space of the calling process.
library = fmu_link(path, identifier) [library, fmuImpl] = fmu_link(path, identifier) library = fmu_link(path, identifier, fmuImpl)
string, a path for the library.
identifier of FMU model.
A string identifying the FMU implementation like "me 1.0" for Model Exchange 1.0.
handle to the library.
![]() | Internal function which is used by Scilab macros that implement standard FMI functions. |
fmu_link is the function that loads the specified library
.dll for Windows and .so for Linux. If this
function succeeds, the return value is a handle to the library. If it fails, the return
value is the last error that has been received for the dynamic library.
Without the fmuImpl input arguments, the API will be detected and returned to let the user call the right functions. In the case of a multi-version shared library, an error is issued and you have to select the implementation you expect.