LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL display window problem

Solved!
Go to solution

Hi!

 

I am trying to write a DLL with Labview that is called from a C++ application. However, when I run it, the window below opens up briefly and then disappears.

Can I hide the window? It is really annoying

 

Thank you.

 

capture

0 Kudos
Message 1 of 4
(2,617 Views)

Hi 🙂

 

It is very probably that you are dynamically calling a VI using some kind of absolute path in the function compiled to DLL. TO have the window not appear you should take all the functions/VI that you are using and put them in the same folder as your DLL. I think that should help.

 

Please let me know if that helped.

 

Piotr

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
Message 2 of 4
(2,588 Views)
Solution
Accepted by topic author nokia

Hi Nokia!

 

The loading window is most likely popping up because it cannot find this DLL dependency (NI_AALBase.lvlib) in its expected place. So the program searches for a while, and finds it at another location. My suggestions would be:

 

1. Install/reinstall the appropriate version af the LabVIEW Run-time Engine (same version as your LV).

2. If that doesn't work try manually adding NI_AALBase.lvlib to your DLL build, and make sure it is in the Always Included tab in the source file selection.

3. There is an .ini setting to suppress loading windows. You must open you labview.ini setting file (it is in the same directory as LabVIEW.exe) and add the line 

   

    ShowLoadProgressDialog=True

 

Though this might be ignored if a file or directory is not found by the loader.

 

What is your LabVIEW version? Do you run this DLL on the same PC where it was created? Please try these solutions and in that time I can check if there is anything version related in this problem.

 

Best regards:

 

Andrew Valko

National Instruments

Andrew Valko
National Instruments Hungary
Message 3 of 4
(2,582 Views)

Thank you guys!

 

With your help I have found the problem and the solution.

I have copied just the dll file, but not the subfolder "data" where the lvanlys.dll could be found.

 

Thank you.

Enjoy

0 Kudos
Message 4 of 4
(2,570 Views)