Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68586

Dynamically Loading VI using DLL

$
0
0

Hi all,

 

In Labview, I have made a GUI and a library for interfacing to a device. I have compiled this to an .exe and it all work well.

 

I haved compiled these exposed VIs into a DLL using LV2012 and written a small C++ program that is linked to my DLL. The problem I am having is that when I run my "begin" function (it calls some dynamically loaded VIs), I get Error 7 Path not found. Now, I imagine that this is something to do with either me not including the dynamic VIs when I compile the DLL (which I am sure I have done) or, the paths somehow being changed. When I load my VI, I use a relative path constant e.g. "UserCommands\Device1\Device1CommandFactory.vi" that gets converted to an absolute path.

 

 

What do I need to do in order to get the DLL to load the VI properly?

 

Thanks in advance


Viewing all articles
Browse latest Browse all 68586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>