LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Any one tell me what is the step in calling a function from a *.lib file in Labview application

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

0 Kudos
Message 1 of 11
(2,787 Views)
Did you try calling the library function?R u getting any error?
0 Kudos
Message 2 of 11
(2,785 Views)
Will this be of some help?
0 Kudos
Message 3 of 11
(2,784 Views)

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.

Message 4 of 11
(2,775 Views)

 


(Translation: R u = Are you)

 

Thank you smercurio_fc 

0 Kudos
Message 5 of 11
(2,773 Views)

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

 

 

0 Kudos
Message 6 of 11
(2,753 Views)
CIN is meant for calling C code (or, any other code written in a text-based prog language) in LV.
- Partha ( CLD until Oct 2027 🙂 )
Message 7 of 11
(2,739 Views)

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.  

Message 8 of 11
(2,720 Views)

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.

0 Kudos
Message 9 of 11
(2,700 Views)

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. Smiley Wink

0 Kudos
Message 10 of 11
(2,682 Views)