LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does a developed DLL automatically get linked?

Hi guys,
Okay, I created my own DLL for use in a "Call Library Function" vi. This DLL was developed using Visual C and it's coded in C. When I use the DLL in my vi everything works fine. However, when I try to run my vi on another computer, an error comes up during loading that says "cannot find Secondary DLL".
My question is: does LabVIEW or Visual C automatically link the created DLL to another DLL? I know it can't be like an OBJ file because I deleted files associated with the developed DLL. So I'm guessing it's a Visual C DLL, a LabVIEW DLL, or simply a Windows DLL. Can anyone help? Thanks.

-Mike
0 Kudos
Message 1 of 4
(2,987 Views)
This might help

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/b252279da3a02f80862566b20059ba7a?OpenDocument

and

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/9f6e197adf081277862569fb005e21cd?OpenDocument

A Rafiq
0 Kudos
Message 2 of 4
(2,985 Views)
Hi Mike! Check the following:

You must copy the .dll file you created in the other computer.

A good place to copy your .dll (assuming a Windows computer) is the C:\WINDOWS\SYSTEM directory. Another place will be in the same directory where the vi is located.

LabVIEW will automatically look on those places for the missing .dll

If this do not solve your problem, reply this message.

Best regards;
Vargas
www.vartortech.com
0 Kudos
Message 3 of 4
(2,985 Views)

Hi Vargas,

         I have a similar type of problem. I have used a dll in one of my LabVIEW 7.1 vis. Now when I open the same vi in LabVIEW 8.2, the dll is getting linked correctly but it is still reporting an invalid method error. Only after I select the 'Select Method' from the right click menu and press OK, it is getting linked correctly. I couldnt save it to LabVIEW8.2 as I need them in both. What could be the problem here?

Thanks,

Vasanth.

Ya Ya
0 Kudos
Message 4 of 4
(2,809 Views)