LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using LV DLL from C++

Hello,
I've read questions about calling LV DLL with front panel.
It is recommended to change the configuration to reentrant and not to use UI model.
I made this but my dll still does not display her front panel when called from my C++ application.
It seems to run in background.
Any help?
0 Kudos
Message 1 of 2
(2,628 Views)
To show the front panel of your DLL you will need to use VI properties>>Window Appearance>>Customize. Set the Front Panel when called option. This will open the front panel to your DLL when the DLL is called.

If you call the DLL from a LabVIEW VI running in the user interface thread (a.k.a. execution system) you will get a deadlock if the VI called inside the DLL needs to do some work (such as showing its front panel).

To work around the deadlock, you must make sure that the DLL is called from a thread other than the user interface thread. To do so, first configure the shared library node to be "Reentrant" rather than "Run in UI Thread". Then make sure that the VI is not running in the UI thread by looking in VI Properties>>Execution>>Preferred Execution S
ystem

I think the same would apply if called from a C++ application.
0 Kudos
Message 2 of 2
(2,628 Views)