07-26-2013 04:56 AM
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.....
Solved! Go to Solution.
07-26-2013 06:21 AM
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
07-26-2013 09:05 AM
You can this one for stating
http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C?OpenDocument
07-28-2013 07:59 PM
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!!
07-29-2013 12:53 AM
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
07-29-2013 07:34 PM
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"?