class="resources" Call Library Function Node - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Call Library Function Node

Calls a DLL or shared library function directly without using a Code Interface Node.

The Call Library Function Node, shown in the previous illustration, looks similar to a Code Interface Node. This node supports a large number of data types and calling conventions. You can use it to call functions in most standard and custom-made DLLs and shared libraries.

The Call Library Function Node consists of pairs of input and output terminals. You can use one or both terminals. If the node does not return return value, the top pair of terminals is unused. Each additional pair of terminals corresponds to a parameter in the parameter list of the function you call in top-to-bottom order. You pass a value to the function by wiring to the left terminal of a terminal pair. You read the value of a parameter after the function call by wiring from the right terminal of a terminal pair.

Right-click the node and select Configure from the shortcut menu to display the Call Library Function dialog box, which you can use to specify the library name or path, function name, calling conventions, parameters, and return value for the node. When you click the OK button, the node automatically resizes to have the correct number of terminals and sets the terminals to the correct data types.

Refer to the Configuring the Call Library Function Node section of Chapter 2, Shared Libraries (DLLs), of the Using External Code in LabVIEW manual for more information about using the Call Library Node to call code from text-based programming languages.

Example

Refer to the Call DLL VI in the labview\examples\dll\data passing\Call Native Code.llb directory for an example of using the Call Library Function Node function.

 


Resources


 

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