07-04-2013 12:50 AM
07-04-2013 01:01 AM
Which Library you are refering here?
07-04-2013 01:08 AM
07-04-2013 03:24 AM
That is about as clear as mud! Please what are you trying to do? What library are you talking about?
Or are you saying you want to store a BMP file inside an *.lvlib file?
That won't work since an *.lvlib file is just an XML file that describes the components in the library. It is in fact similar to a LabVIEW project file. You can of course add your BMP to the lvlib in the project explorer and if you make sure to store it on a fixed relative position to another VI in that lvlib you can always determine the location of that VI, add the known relative path to that location and load the BMP with the LabVIEW provided Picture functions and then do whatever you want inside your VI.
07-04-2013 03:58 AM
@rolfk wrote:
make sure to store it on a fixed relative position to another VI in that lvlib you can always determine the location of that VI, add the known relative path to that location and load the BMP with the LabVIEW provided Picture functions and then do whatever you want inside your VI.
I've created the lvlib inside the Project Explorer but i don't understand how to create this portion that you're talking about.
Could you show me a BD on how to do it?
07-10-2013 12:56 AM - edited 07-10-2013 12:58 AM
Perhaps what Rofl meant is something like below.
As he said, ensure the file location is fixed relative to a VI. If the location is always fixed, you can drag and drop the picture from your lvlib in the Project Explorer to the block diagram to get the full file path.
You may want to explore the File I/O pallette for other ways to do this.
Regards,
A. Yodha
NI Singapore
07-10-2013 04:49 AM
Actually what I meant was to replace Application Directory.vi with Current VI Path, and then add the relative path from this VI inside the library directory to the BMP also inside the library directory. Then just make sure that you copy both (and the *.lvlib file) when distributing this library.
07-10-2013 08:43 PM - edited 07-10-2013 08:45 PM
@rolfk wrote:
Actually what I meant was to replace Application Directory.vi with Current VI Path, and then add the relative path from this VI inside the library directory to the BMP also inside the library directory. Then just make sure that you copy both (and the *.lvlib file) when distributing this library.
I see. That will work.
Regards,
A. Yodha
NI SIngapore