<< fmu_call fmu_wrapper fmu_ulink >>

fmu_wrapper >> fmu_wrapper > fmu_link

fmu_link

(Internal) Loading the FMU library into the address space of the calling process.

Calling Sequence

library = fmu_link(path, identifier)
[library, fmuImpl] = fmu_link(path, identifier)
library = fmu_link(path, identifier, fmuImpl)

Arguments

path

string, a path for the library.

identifier

identifier of FMU model.

fmuImpl

A string identifying the FMU implementation like "me 1.0" for Model Exchange 1.0.

library

handle to the library.

Description

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.

See Also


Report an issue
<< fmu_call fmu_wrapper fmu_ulink >>