02-08-2012 07:45 PM
Hi, i have some issues running a dll in a .VI.
to be more specific...
I am running a main VI, and that main VI calls for a .dll when it is running labview crashes. after that y tried another way, I made the main VI a .dll then when i ran it everything went good.
so the question is, does labview have to run everything in .dll when something is in .dll or i can mix a .dll in a vi or viceversa
hope i explained myself
02-09-2012 08:50 AM
LabVIEW can call DLLs just fine, so you do not need to run everything in a DLL. Your most likely issue is incorrect configuration of the Call Library Function Node, or you are not managing memory properly. There have been many threads posted in the forum on calling DLLs with various parameters. There's a very extensive example that ships with LabVIEW called "Call DLL". I would suggest searching the forum for message related to the error that you are seeing and/or the kinds of datatypes you are trying pass into/out of the DLL. If you cannot find the answer, then post back. Please provide details, such as the DLL header file, or at the very least the prototype for the function, as well as your LabVIEW code for how you are calling the DLL.