LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Dll and dynamic VIs

Hello Board,

I have little experiance with generating Dlls from LabVIEW VIs. Now I have an Application with a main VI and a dynamically called VI. When I build an exe file with the application builder, everything works fin. When I create a Dll, the dynamic VI is missing. When I put the dynamic SubVI in the Folder with the Dll, it works. So dynamic called VIs are not integrated in the Dll, like it is done when building an exe. Is there a way to achieve this? Do I have to generate a Dll of the dynamic VI and use this in my main VI?

Thanks in advance
Dermot
0 Kudos
Message 1 of 4
(2,944 Views)
Which version of LabVIEW are you using? I've done what you are describing in LabVIEW 7.0 and 7.1. All I had to do was to add the VI that was dynamically loaded using the "Add Dynamic VI..." button of the application builder. Have you done this?

When you create the reference to the dynamic VI, what is the value of the "VI path" input to the Open VI Reference? Could you be creating an absolute path to the directory the DLL is in instead of inside the DLL? The VI path should be [path the DLL is in]\DllName.dll\DynamicVIName.vi

Good luck!

Message Edited by phi on 03-31-2005 10:33 AM

0 Kudos
Message 2 of 4
(2,930 Views)
Hello,
I am using LabVIEW 7.1.
I still don't get it to work. I think it is connected to the path information. I am using an current path VI which I modified. But what is working for en exe build does not work with the dll somehow.
I forgot to mention that I want to have all the VIs in one dll for distribution. No VIs as distribution files!
I created a little test application which shows the problem I have with the original application. I put all in the zip.
Always thankful for help.
Best regards
Dermot
0 Kudos
Message 3 of 4
(2,924 Views)
Correct, it is a matter of the paths.
The attatched version should work better.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
Message 4 of 4
(2,902 Views)