LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lvlib disassociation

Solved!
Go to solution

I have a bunch of vis and they are associated with several lvlib files.  I decided to delete the lvlib files.  Is there a way to delete all the association without opening every vi that has an association?

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 10
(3,933 Views)
Solution
Accepted by jyang72211

Hmm....

 

Something like that?

 

Snippet.png

Message 2 of 10
(3,919 Views)

This is beatiful.  How do you surpass the open function from trying to load files, since some of the files doesn't exist anymore?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 10
(3,910 Views)

Hint: Look in the File I/O -> Advanced File Functions palette. Go ahead. Try.

0 Kudos
Message 4 of 10
(3,902 Views)

Ahhh!  It worked, but something bad happened.  For each vi, there are many subvi in it.  The subvis are still associated with the libraries that are no longer.  How do I fix that??  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 10
(3,891 Views)

I looked all over in advance file operation, but can't find it.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 6 of 10
(3,890 Views)

 


@jyang72211 wrote:

I looked all over in advance file operation, but can't find it.


http://zone.ni.com/reference/en-XX/help/371361F-01/glang/check_if_file_exists/

 

0 Kudos
Message 7 of 10
(3,883 Views)

 


@jyang72211 wrote:

Ahhh!  It worked, but something bad happened.  For each vi, there are many subvi in it.  The subvis are still associated with the libraries that are no longer.  How do I fix that??  Thanks!


You would need to do the same thing with the directories where those subVIs are.

 

0 Kudos
Message 8 of 10
(3,878 Views)

I did the same thing to the subiv, but that didn't fix the problem.  The Main VI is still tryin got find the subvi assoicated with lvlib.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 9 of 10
(3,835 Views)

 


@jyang72211 wrote:

I did the same thing to the subiv, but that didn't fix the problem.  The Main VI is still tryin got find the subvi assoicated with lvlib.


Well, another way to do it - in project. Open your project (which contain Main.vi and lvlib with all files) then select all files within lvlib and drag these files out of lvlib. Then select File->Save all. That it.

 

0 Kudos
Message 10 of 10
(3,818 Views)