LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find all callers of an lvlib

Hi

I would like to retrieve vi that use an lvlib

example 

I have a vi called test.vi  with his Subvi called  #pass.vi . #pass.vi is a part of an lvlib

 

when i try to find callers of the lvlb I have all the vi within this lvlib

I woul like to retrieve test.vi

It 's for me logical

 

 

0 Kudos
Message 1 of 7
(3,693 Views)

I'm not 100% clear on your question.

 

Are you asking to find the caller of the specific #pass VI that is within that library?  Then right click on #pass.VI in the library and do a find callers, as opposed to right clicking on the library and doing a find callers.

0 Kudos
Message 2 of 7
(3,677 Views)

Thanks Ravens for your attention 

 

I search a method to find all the caller of the subvi's that belong to a lvlib

In my case, I have a huge project and i don't remenber which subvi of lvlib is used in my project

I want to retrieve all the callers for subvi in my lvlib 

 

caller1 use inmylib1 from the mylib.lvlib

caller2 use imylib2 from the mylib.lvlib

there are a lot of vi in my lvlib not used (that'an example in my case there plenty of Vi used and not used)

 

If i do :find caller on mylib.lvlib in the project  the windows display all the vi of the lvlib

It's  not logical for me. I except to find only the vi in my project which use lvlib : ie caller1 and caller2

Why

Thanks

(I hope I am be more clear)

 

 

 

0 Kudos
Message 3 of 7
(3,652 Views)
You can look under the dependencies part in the project tree.
0 Kudos
Message 4 of 7
(3,635 Views)

I am not sure to understand where dependencies part in the project tree are

Do you mean VI hiearchy

 

Thanks Ravens

0 Kudos
Message 5 of 7
(3,632 Views)

Attached is an image of what I was talking about.

 

However it doesn't quite do what I expected.  In this quick dirty example, there is a Library 1 that has untitled2 and 3 VI's.  Untitled 1 VI calls Untitled2 but not 3. 

 

The whole library shows up under dependencies, even Untitled3 which is not used.  If I drag the library out of dependencies and put it directly under My Computer, it no longer shows up in dependencies.

 

So the dependencies only show items that are dependencies for other items in the project,  but only those that are not already specifically listed in the project.  If it is a container object (like an LVLIB), all items in that container are listed even if only one of them is  used.

 

Now if you go to a VI listed in library and select Find > Callers, it would highlight any VI that is a caller.  If nothing calls that VI, it will say no items are found.  So you could go through item by items to see which VI's in an LVLIB are unused.

 

VI Hierarchy is also a good way to show which VI's are used. (Of course unused VI's don't show up.)  Although there be away around that, but I've never tried it before.

 

In your top level VI, put a dummy subVI.  In that dummy subVI, drop in all the subVI's that are a part of the LVLIB.  Now look in VI Hierarchy.  You might need to have the hierarchy fully expanded to start with.  All the VI's in your library will show up and all have a link to the dummy subVI.  Any subVI that is actually used will have a link to another VI.  Any unused subVI will only have a single link to the dummy subVI.

Message Edited by Ravens Fan on 10-19-2009 11:37 AM
Message 6 of 7
(3,629 Views)

Thanks Ravens

 

"In your top level VI, put a dummy subVI.  In that dummy subVI, drop in all the subVI's that are a part of the LVLIB.  Now look in VI Hierarchy.  You might need to have the hierarchy fully expanded to start with.  All the VI's in your library will show up and all have a link to the dummy subVI.  Any subVI that is actually used will have a link to another VI.  Any unused subVI will only have a single link to the dummy subVI."

 

that could be a trick but I 'am a little despite by the behavior 

For me find callers on lvlib must dispaly only vi which use the subvi in lvlib

 

Can we notice this to R&D of ni ??

0 Kudos
Message 7 of 7
(3,606 Views)