LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function and path

Hallo,

I want to use a Call library function to use some .dll functions.

Now that call library wants me to give a path to where the dll is stored.
Do I have to put in an absolute path, or can I use some relative path, so
that the call library searches relative to its own position.
That function has no input for path, so it would be hard coded, that's very
unflexible, because the dll would have to be in the same directory structure
on every machine. How can I use a relative path?

Oliver Friedrich
0 Kudos
Message 1 of 2
(2,437 Views)
Oliver;

LabVIEW will look first at the path you specified. Then, it will look at the "VI Search Path", which you can see at Tools -> Options -> Paths.

In general, you will not need to write the full path to the dll if you vi is located in the same directory, or if the dll is located in the Windows/System directory or any path indicated in "VI Search Path".

You can also set the path in the "autoexec.bat" file by using the "set path" command.

Regards;
Enrique
www.vartortech.com
Message 2 of 2
(2,437 Views)