Execution of Sequence Hangs at Step Calling DLL in Code Module

Updated Jan 6, 2020

Reported In


  • TestStand
  • LabVIEW

Issue Details

I have a TestStand sequence that will run smoothly all the way through but will hang when it reaches the step that calls DLL in the code module. The same thing also happens when I'm running it on User Interface. But, when I open LabVIEW and bring it to the front, the sequence continues to execute the next step normally. Every time the execution hangs, I need to run LabVIEW and bring it to the front in order to continue the execution. 

Is there a way to stop this?



This problem is related to the configuration in Calling a DLL from LabVIEW ​​​​​​

In order to stop this, please refer to the steps below:

1. Use the Call Library Function Node to open the relevant VI. The picture below shows the location of the Call Library Function Node in the palette:


2. Double-click the Call Library Function Node to configure the node. On the Function tab of the configuration window, check on Run in any thread instead of Run in UI thread.