Member of the libraries class.
loadlibrary(libname, headername)
loadlibrary(libname, headername, options)
Loads a shared library. After you load the shared library, you can use the calllib function to call a function from the shared library.
| Name | Description | ||||||||||||
| libname | Specifies the name of the shared library you want to load. If you do not specify a file extension, LabVIEW assumes .dll. libname is a string. | ||||||||||||
| headername | Specifies the name of the header file. If you do not specify a file extension, LabVIEW assumes .h. headername is a string. | ||||||||||||
| options | Specifies additional options. You can list the options in any order, as long as you list the option value immediately after the corresponding option. For example, alias value always must follow 'alias'. options accepts a combination of the following values.
|
Refer to the MathScript Shared Libraries.lvproj in the labview\examples\MathScript\MathScript Shared Libraries directory for examples of calling shared libraries from MathScript.
r = [labviewroot '\examples\MathScript\MathScript Shared Libraries']
loadlibrary('myDemo', 'demo', 'alias', 'myD', 'includepath', r)
unloadlibrary('myD')