Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

lib_call (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: libraries

Requires: MathScript RT Module (Windows)

Syntax

[out2, out3, ...] = lib_call(libname, funcname, in1, in2, ...)

[out1, out2, out3, ...] = lib_call(libname, funcname, in1, in2, ...)

Legacy Name: calllib

Description

Calls a function in a shared library. Make sure the shared library uses supported data types.

Details

Examples

Inputs

Name Description
libname Specifies the name of the shared library that contains the function you want to call. If you assigned an alias when you loaded the shared library, use the alias for libname. libname is a string.
funcname Specifies the function you want to call. funcname is a string.
in1, in2, ... Specify inputs for the function you want to call.

Outputs

Name Description
out1 Returns the value of the function. If the function does not return a value, LabVIEW returns out2 as the first output.
out2, out3, ... Return the pointer inputs.

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', 'includepath', r)
N = 50;
A = peakfcn2d(N);
mesh(A)
B = lib_call('myDemo', 'DrawStar', A, N, 8);
figure(2)
mesh(B)
lib_unload('myDemo')

Related Topics

labviewroot
lib_funclist
lib_isloaded
lib_load
lib_unload


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit