Call Library Function Dialog Box
- Updated2025-03-14
- 9 minute(s) read
Call Library Function Dialog Box
Right-click a Call Library Function Node on the block diagram and select Configure from the shortcut menu to display this dialog box.
Use this dialog box to specify the library, function, parameters, return value for the object, and calling convention for a call to a shared library. When you click the OK button in the dialog box, LabVIEW updates the object on the block diagram. The object reflects the settings from this dialog box, displaying the correct number of terminals and setting the terminals to the correct data types.
You can use the Call Library Function Node to call code written in text-based programming languages. If you want to call a shared library that contains ActiveX objects, use the Automation Open function with the Property Node and the Invoke Node.
This dialog box includes the following components:
Option | Description |
---|---|
Function | Use the Function tab to configure the Call Library Function Node.
This tab includes the following components:
|
Parameters | Lists the current parameters for the Call Library Function Node. You can configure the Parameters list using the following buttons along the right side of the Parameters list. Return type is a required parameter that you cannot delete.
|
Callbacks |
Use the Callbacks tab to specify functions to call at predefined times. The functions allow you to initialize, update, and/or cleanup data for the DLL or shared library based on the particular instance of the Call Library Function Node you are configuring. Each call passes in the Instance Data Pointer for the Call Library Function Node the function is configured for. Note You cannot use the Callback tab to pass callback functions as parameters to library functions. The Call Library Function Node cannot directly call library functions that require a callback function as a parameter, but you can create a wrapper library to implement such calls.
This tab includes the following components:
|
Error Checking |
Use the Error Checking tab to specify the error checking level for the Call Library Function Node. This tab includes the following components:
|
Related Information
Calling Shared Libraries in LabVIEW
Configure the Call Library Function Node