LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change function name before building a DLL

Solved!
Go to solution

I am building a image analysis software platform which will import an image online from a camera or offline from a file directory. I'm writing the software architecture in such a way that an exe file will call several image analysis DLLs to analyse the image and return data.

 

Image analysis DLLs will change and be added from time to time. So the DLL file must be able to be called dynamically by the exe file.

I made all the DLLs have strictly same input output type. So the exe file will read the DLL path from a text file and call the DLL accordingly.

The advantage is i don't have to recompile the exe file even i add or remove some DLL files.

Unfortunately i keep getting error from "Call Library Function Node" when it tries to call the second DLL.

 

Calling different DLLs dynamically without adding the DLLs in the vi, is that possible to be done in LabVIEW 2012?

Please help..... 

0 Kudos
Message 1 of 6
(2,942 Views)
Solution
Accepted by topic author brock85

Yes, you can.

Here's a starting point:

 

http://digital.ni.com/public.nsf/allkb/77594203D78D12278625729100758BE5

 

As for the error you get:

can you post a code snapshot?

 

Regards,

Marco

0 Kudos
Message 2 of 6
(2,923 Views)

You can this one for stating

http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C?OpenDocument

Boldness has genius, power and magic in it!'
0 Kudos
Message 3 of 6
(2,914 Views)

Thank you MarcoMauri, now i'm able to load dynamically any DLL into my program by just hanging a config file in txt format without compiling the exe file.

 

As my appreaciation, is there a way i can give a good rate to the solution you provided?

 

Thank you so much!!

0 Kudos
Message 4 of 6
(2,893 Views)

Hi!

 

You can provide kudos to posts you like by clicking the star on the left of the message.

 

Glad to be of help,

Marco

Message 5 of 6
(2,885 Views)

By the way, i found out that if i'm need to check the "run in any thread" box if i want to load the DLL dynamically. Anyone knows what is the difference between "run in any thread" and "run in UI thread"?

0 Kudos
Message 6 of 6
(2,871 Views)