08-22-2008 07:46 AM
Hi, I am working on Labview 8.0.
I am trying to communicate to a thrid party HW using the driver file he has provided to me.
The drive file is a *.lib file.
I am unable to call the function from the lib file.
I could get only from a DLL.
Pls help .
Regards
-Patil
08-22-2008 07:55 AM
08-22-2008 07:57 AM
08-22-2008 09:32 AM
muks wrote:
Did you try calling the library function?R u getting any error?
(Translation: R u = Are you)
You cannot call .lib files from LabVIEW. You must have a DLL.
08-22-2008 09:37 AM
Thank you smercurio_fc
08-25-2008 12:18 AM
Hi Muks,
When it is possible in Lab Windows, why calling a function from a static library is prohibited?
I was trying to use Function node, but found that it is only for functions from a DLL file.
Will CIN be useful.?
Regards
-Patil
08-25-2008 02:59 AM
08-25-2008 09:41 AM
patil wrote:When it is possible in Lab Windows, why calling a function from a static library is prohibited?
I was trying to use Function node, but found that it is only for functions from a DLL file.
Will CIN be useful.?
LabWindows is not the same as LabVIEW. LabVIEW cannot call .lib files. LIB files are intermediary products and you need to use a wrapper DLL that's compatible with the object format of the .lib file. It's as simple as that. LabWindows creates C application and from that perspective is no different than a regular C compiler. That's why you can call .lib files because that's how .lib files are used.
A CIN, as pointed out, is something completely different and will not help you.
08-26-2008 02:55 AM
Well,
I have only .lib. Do you mean LabView has limitations and works only with DLLs.
And there are no straight ways to use existing drivers provided as libs.
Thanks everyone for your recommendations and help.
08-26-2008 09:20 AM
patil wrote:Well,
I have only .lib. Do you mean LabView has limitations and works only with DLLs.
And there are no straight ways to use existing drivers provided as libs.
Thanks everyone for your recommendations and help.
Did you read this reply:
smercurio_fc wrote:
You cannot call .lib files from LabVIEW. You must have a DLL.
You can keep asking the question, but the answer won't change.