LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save vi in library?

Hi all,

I have created a library containing the .vi that I need. However, there are some VI which I have copied from other (.llb) libraries using the VI library manager. When I try to execute my .llb program, it always prompt a series of warnings, stating that some vi are expected to be loaded from a certain directory but it has been loaded from the current library. Is my way of copying vi correct? What can I do to eliminate such warnings & save all the vi that i need in one library? Any kind help is greatly appreciated. Btw, I m using labview 7.1
0 Kudos
Message 1 of 7
(3,969 Views)
Like many programs, LabVIEW can only load one VI of a certain name at any given time. If you try to open a VI and there's already another VI with the same name loaded, you'll get this warning. If you want to get rid of it, first of all make sure you're not opening your LLB when you have other VIs open. Then make sure the VIs in the warnings are all in their proper location and when you close your VIs, confirm the save operation for all the VIs. It should link them correctly and then the next time you open your VI it should load immediately.

___________________
Try to take over the world!
0 Kudos
Message 2 of 7
(3,964 Views)
Hi tst,

Thank you for your reply. Regarding the saving of VIs, when I use the VI library manager to copy the required VIs from other LLB into my own LLB, I still need to reopen the VI which i have copied & save it to my LLB? What do you mean by VIs in the proper location, the location where it is supposed to be loaded or it should be in my LLB? I have tried to close my .LLB & click on save subVIs but i am getting errors like file permission error, cannot save VI. Then it prompts the remaining VIs could not be saved. What should i do?
0 Kudos
Message 3 of 7
(3,959 Views)
Try the following:
Open your main VI.
File>>Save with options>>Development distribution.
This will create an LLB for you with all your VIs. If you check "Include VI.lib VIs" it will also throw in NI's VIs.
This way you shouldn't be overwriting files. When you open this LLB it should be completely self contained.

___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(3,936 Views)
Does this procedure work for vis that dont depend on each other?
I have some vi's that I want to distribute as llb, but they dont
necessarily depend on one another. How do I wrap them all up in
an llb file?

Thanks,

Ratin
0 Kudos
Message 5 of 7
(3,928 Views)
The preferable way is that when you save your VIs (using save as), you can save them inside the LLB, just like any other directory. You can also use the VI library manager (in the tools menu), and if you have windows XP, I think you can just treat it like a regular directory from within windows (if you enable this option in LV). If you use any of the last options, make sure you relink the VIs that are linked.

___________________
Try to take over the world!
Message 6 of 7
(3,918 Views)
Yes. it doesn't matter if the VIs are completely unrelated, you can still store them in the same .llb.
www.vartortech.com
0 Kudos
Message 7 of 7
(3,904 Views)