# lib_load (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info

Owning Class: libraries

Requires: MathScript RT Module (Windows)

## Syntax

Legacy Name: `loadlibrary`

## Description

Loads a shared library. After you load the shared library, you can use the lib_call function to call a function from the shared library.

Details

Examples

## Inputs

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.

## Details

Refer to the MathScript Shared Libraries.lvproj in the labview\examples\MathScript\MathScript Shared Libraries directory for examples of calling shared libraries from MathScript.

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

## Examples

r = [labviewroot '\examples\MathScript\MathScript Shared Libraries']
lib_load('myDemo', 'demo', 'alias', 'myD', 'includepath', r)