LabVIEW Hangs when a DLL Created in LabVIEW is Called with the Call Library Function.

Updated Sep 27, 2024

Reported In

Software

  • LabVIEW

Issue Details

A DLL I created with LabVIEW and call from LabVIEW, with the Call Library Function node, causes my application to hang. How do I stop this behavior?

Solution

This is known issue with the Call Library Function node. When it is configured to run the DLL in the UI thread the node will hang when calling a DLL built in LabVIEW.

To ensure a DLL written in LabVIEW executes correctly, configure the Call Library Function node to execute the DLL in any thread, as follows:
  1. Right-click on the Call Library Function node and select Configure... from the shortcut menu.
  2. Select the Function tab.
  3. Select the 'Run in any thread' radio button as shown below.
  4. Configure the rest of the parameters as needed.
  5. Press OK.
Run in any thread radio button.
 

Additional Information

Bug # 2422942