Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Calling Shared Libraries

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

You can call shared libraries from LabVIEW.

(Windows) A shared library is called a DLL.

(Mac OS) A shared library is called a Framework.

(Linux) A shared library is called a Shared Library function.

You can use any language to write shared libraries as long as the shared libraries can be called using one of the calling conventions LabVIEW supports, either stdcall or C. Examples and troubleshooting information help you build and use shared libraries and successfully configure the Call Library Function Node in LabVIEW. The general methods described here for DLLs also apply to other types of shared libraries.

LabVIEW loads shared libraries in a unique application instance. Opening a shared library in a unique application instance prevents naming conflicts with VIs in the shared library, and VIs outside of the shared library.

Refer to the labview\examples\dll directory for examples of using shared libraries.

(Windows) You also can use functions that belong to the MathScript libraries class to call shared libraries from the LabVIEW MathScript Window or the MathScript Node. Refer to the MathScript Shared Libraries.lvproj in the labview\examples\MathScript\MathScript Shared Libraries directory for examples of calling shared libraries from MathScript.


Resources


 

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