02-02-2023 02:38 AM
Hello everyone,
I have problem with seaching of global referencies in project.
I turn on PC, then a start labview and open my project.
First VI which I open in project is VI which is "base" of all global variables.
Then I right-click on global vriable (A) and i click Find global referencie.
After that pop ups window named Seach result and resuls is Not ithems found.
Then i open "X" VI which contain global varialbe A.
I go back to VI which is base of global varialbels and i right-click on global variable A and i click Find global referencie.
After that pop ups window named Seach result and resuls is 1 ithem find. This 1 ithen ist ithem used in X VI.
So i can find only this global referencies which VI i opend previous.
So my problem is that project used global variable A 10 times (or more i do not know) but i do not have idea where is it used everywhere.
Do you have any solition for my problem?
Thank you.
Jakub
Solved! Go to Solution.
02-02-2023 02:48 AM
02-02-2023 03:11 AM
Does exist any operation for opening all top-level VIs or I have to click and open each one VI separately?
02-02-2023 04:31 AM - edited 02-02-2023 04:33 AM
@Kubo_3310 wrote:
Does exist any operation for opening all top-level VIs or I have to click and open each one VI separately?
Put them in a class 😁.
Seriously, find from a VI will only search through VIs that are loaded in memory.
Opening all top level VI's does this too. You can make a All Top Level VIs.vi, that loads them in one go. They don't need to be open, just loaded into memory.
Working OO solves this problem for me (searching for VIs, not specifically globals), because LV loads all classes in a project into memory when the project loads.
If a global has only one control, you can right click it in the project and use find all callers. If there are more controls, you'll get all references.
LabVIEW Programming ((make LV more popular, read this)
02-02-2023 05:40 AM
I uderstand part about loading to memory, but i seach All Top Level VIs.vi or something about it, but i am not sure how can i create it or is it some system vi?
How can i open/create All Top Level VIs.vi?
02-02-2023 06:17 AM
Hi Kubo,
@Kubo_3310 wrote:
How can i open/create All Top Level VIs.vi?
Three simple steps:
02-02-2023 07:33 AM
Oh I understand now. Thank you so much 🙂
For colleagues who are thinking like me.
We have to CALL each one VI (call each one function in my thinking) to one VI (one function) with arbitary name, for example All Top Level VIs.vi.
And after that it is enaught open "All Top Level VIs.vi" and all "other" VI will be load to memory.