07-02-2013 04:23 AM
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)
Solved! Go to Solution.
07-04-2013 09:50 AM
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
07-04-2013 08:07 PM
@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.
07-04-2013 11:04 PM
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.
07-04-2013 11:38 PM
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
IMAQ Create, IMAQ ReadFile, IMAQ WindDraw
07-04-2013 11:40 PM
@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?
07-05-2013 01:27 AM - edited 07-05-2013 01:28 AM
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!
07-05-2013 03:40 AM
Hi All,
Apologize for my mistake.
I will more carefully for next post.