LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Labview so search for dll's

Hi
 
I have 2 dll's with different names, both which work with Labview.  I eventually want to create an application that can be used by myself and say customers, however, I would like to have acces to one dll while the custmers have access to the other.  So basically I would like Labview to automatically search which DLL is available in a specified directory and use that one AND not ask the user "which dll to use" before running the application .  I need the dll's to have different names to differentiate between the two.  I have no idea how to go about this if anybody can help
 
Worse comes to Worst I will probably create 2 dll's with the same name in different directories and then copy and paste it to the directory Labview will be seraching but again I would like the dll's to have different names to easily differentiate between the 2.
 
Thanks
 
REZA_SED
0 Kudos
Message 1 of 8
(3,131 Views)
You could create two dynamically called sub-vis.  One for each dll.  Then call the one you need at runtime.


Paul
0 Kudos
Message 2 of 8
(3,122 Views)

yeah, but I don't want to give the user the choice between or access to the 2 dll's.  Meaning if I packaged this on a cd I would include only the dll that they (the sutomers)would need and Labview, upon seeing which dll was available on the cd would then call the appropriate one.

Is that possible?

 

REZA_SED

0 Kudos
Message 3 of 8
(3,118 Views)
I can't remember if LabVIEW 8.0 had this feature, but LabVIEW 8.2 and 8.5 have the ability to specify the path for the DLL on the block diagram using an input terminal, rather than in the Call Library Node configuration dialog. So you could actually program the directory searching into your application. Your VI will find the appropriate DLL and use it.
Jarrod S.
National Instruments
0 Kudos
Message 4 of 8
(3,113 Views)
and if you use the dynamic subvi approach, just include the subvi that calls the correct dll.

Paul
0 Kudos
Message 5 of 8
(3,092 Views)
Jarrod, would you happen to have any examples or information on how to go about doing that......mainly what function allows you to specify the path for the DLL on the block diagram using an input terminal
 
Thanks
 
Reza
0 Kudos
Message 6 of 8
(3,079 Views)
Drop the call library function, open the configuration panel, and there is a check box right under the library name or path that says "Specify path on diagram"


Message Edited by Stradis on 09-07-2007 11:00 AM


Paul
Message 7 of 8
(3,078 Views)

Perfect,

Thanks alot

REZA

0 Kudos
Message 8 of 8
(3,066 Views)