LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert DLL into LLB

Solved!
Go to solution

Hi there,

 

Does it make sense to distribute a dll into a llb? if yes how can I do it?

 

Cheers

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 1 of 5
(3,708 Views)

Hi there 

 

No, this makes no sense. Your OS can't find the DLLs if it's hidden inside a llb.

 

Why do you want to hide the DLL?

 

(please ignore attachment)

Message Edited by chrisger on 01-13-2009 12:09 AM
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 5
(3,681 Views)

Hi Chris,

 

I use a dll with a LabVIEW program and I think it would be convenient to distribute all the files (including the dll) together into a llb.

 

Are you saying that a vi calling the dll couldn't find the dll if they're all into a llb? In this case it doesn't make sense to group them in a dll.

 

Thanks,

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 3 of 5
(3,653 Views)
Solution
Accepted by topic author CharlyStardust
You shouldn't (and cannot, as far as I know) put anything other than a VI in an llb.  Only LabVIEW knows how to find a VI inside an LLB; your operating system knows nothing about it.  When you make a call to a dll from your code, you're asking the operating system to find that dll and call a function inside of it.  If the dll were to be hidden inside an llb, the operating system would be unable to find the dll and the function call would fail.  So, the short answer to your question is no, do not put dlls in llbs.  Use a zip file instead.
0 Kudos
Message 4 of 5
(3,633 Views)
Thank you Chris and Nathan
It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 5 of 5
(3,624 Views)