LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling lvlib into LabVIEW

Solved!
Go to solution

Hi,

I have a lvlib with a picture in it. I would like to know how do I call that library using LabVIEW? 

(Currently using LabVIEW 9 SP1)

Download All
0 Kudos
Message 1 of 8
(3,500 Views)

Did you try opening a Project and then opening the Library?  When I opened your library (with a Project of my own opened), it gave me a warning that the FL80 bmp had been Deleted or moved, and pointed to where it thought the BMP should be (I hadn't put it there, but I'm guessing if I had, it would have found it -- alternatively, once in the Project, I could probably have "re-pointed" it to whereever the image was stored).

 

I just tried this -- I was able to substitute the .JPG that you attached (after I downloaded it) in place of the missing .BMP.  Looks good to me.

 

BS

0 Kudos
Message 2 of 8
(3,445 Views)

@Bob_Schor wrote:

Did you try opening a Project and then opening the Library?  When I opened your library (with a Project of my own opened), it gave me a warning that the FL80 bmp had been Deleted or moved, and pointed to where it thought the BMP should be (I hadn't put it there, but I'm guessing if I had, it would have found it -- alternatively, once in the Project, I could probably have "re-pointed" it to whereever the image was stored).

 

I just tried this -- I was able to substitute the .JPG that you attached (after I downloaded it) in place of the missing .BMP.  Looks good to me.

 

BS




Hi BS,

 

Maybe my previous question wasn't clear enough but what I wanted is to call that library in the block diagram, not using the Project Explorer to open it. 

0 Kudos
Message 3 of 8
(3,430 Views)

Hi LHS,

 

As my understanding from you question, you need a "call library Function Node" in block diagram.

Then, select specific path of Library that you would like to call.

 

P.S. Double click on the node and check specific path.

Below is some useful link to config this node.

 

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/call_library_function/

http://zone.ni.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/configuring_the_clf_node/

 

Hope this help,

Chomphunut N.

 

0 Kudos
Message 4 of 8
(3,408 Views)
Solution
Accepted by topic author LHX

The library that was attached had only a link to a (missing) .BMP file.  You also included a .JPG, so I opened a new Project, added the Library, then added the .JPG to the Library.

 

Once I had done this, I wrote the following simple VI (Show Image from LVLib) shown in the Snippet.  Note that the path to the JPG was produced simply by dragging the file in the Library (from Project Manager) to the Block Diagram -- I didn't do any typing of this path.  The functions I'm using are from the Vision (IMAQdx) Toolkit.  When I run this, a new window opens up with the JPG showing in all its glorious Shades of Grey.

 

This was so straight-forward that I fear that, once again, I've missed responding to the question or concern that you have.  Note that I'm using (as data) only the two files that you originally attached, an LVLib that consisted of a "missing .BMP" and a separate .JPG.

 

BS

Show Image from LVLib.pngIMAQ Create, IMAQ ReadFile, IMAQ WindDraw

0 Kudos
Message 5 of 8
(3,400 Views)

@cnannar wrote:

Hi LHS,

 

As my understanding from you question, you need a "call library Function Node" in block diagram.

Then, select specific path of Library that you would like to call.

 

P.S. Double click on the node and check specific path.

Below is some useful link to config this node.

 

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/call_library_function/

http://zone.ni.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/configuring_the_clf_node/

 

Hope this help,

Chomphunut N.

 


But I thought that the Call Library Function is for DLL only? 

0 Kudos
Message 6 of 8
(3,399 Views)

Ignore the post about the Call Library Node. Someone hearing "library" thought that the magical and omnipotent Call Library Node would be the solutions to anything with the word library in it.

But being a bit more elaborate and explicit in your first post would have helped too!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 8
(3,389 Views)

Hi All,

 

Apologize for my mistake.

I will more carefully for next post.

 

 

0 Kudos
Message 8 of 8
(3,377 Views)