01-11-2009 04:55 AM
I wish I could use the camera on my Nokia phone in my labview project, in this case the AT command doesn’t apply. I guess Nokia_PC_Connectivity_API_3.2 (consist of LIB files and header files) might be useful, but I don’t know how to load a static library in Labview. Do I have to write a C program first before labview could use those API function? Or is there a simple way to control my nokia phone?
Would be grateful if anyone could help!
01-11-2009 05:04 AM
Hi larryD,
if you have a dll, then you can call the exported functions with the "Call Library Function Node". No need to write a C program.
Mike
01-11-2009 05:42 AM
02-24-2010 04:08 AM
Hi,
Did you find the solutions how to use static library? I have the same issue, here.
If so, please share with me. (thomaschae@paran.com)
Thanks,
Thomas-
03-04-2010 09:14 PM
03-04-2010 09:16 PM
03-04-2010 09:56 PM - edited 03-04-2010 10:00 PM
It supports DLL(*.dll) only, not LIB(*.lib). I need LIB interface.
Possible options are,
1) to make a new DLL calling LIB by using C/C++ complier (ex. visual c), then use "Call Library Function Node",
2) to generate new c source code calling external LIB, then using CIN(Code Interface Node).
They looked available, but NI has addressed that either one won't work, unless original code desinger makes a new clean dll.
Do you have another idea?
03-05-2010 12:41 AM - edited 03-05-2010 12:44 AM
thomaschae wrote:It supports DLL(*.dll) only, not LIB(*.lib). I need LIB interface.
Possible options are,
1) to make a new DLL calling LIB by using C/C++ complier (ex. visual c), then use "Call Library Function Node",
2) to generate new c source code calling external LIB, then using CIN(Code Interface Node).
They looked available, but NI has addressed that either one won't work, unless original code desinger makes a new clean dll.
Do you have another idea?
Don't go the CIN route! They are legacy technology and not supported anymore on all LabVIEW platforms. The shared library (Call Library Node) interface is the way to go nowadays.
And I don't understand your second last sentence. A lib while having the same file ending is not a standard format as its internal layout and format depends highly on the compiler that was used. So there is no way NI could make a general purpose interface node to interface directly to lib files. It is even so bad that a lib created with one comiler can not usually be used with a different compiler.
03-05-2010 03:27 AM
Yes, my point was that we don't seem to have any way to use library(*.lib) file.
I requested the original library maker to develop DLL file available to LV environment and the result seems now promissing.
Thanks, all.
Thomas-