04-06-2018 03:18 AM
Hi
I have a very basic question; how do you tell the main VI from subVIs? I have a project file that has numerous classes, folders and other VI and controls. The overwhelming high number makes it difficult for me as a beginner to understand what is what and how are they related. Any help is appreciated.
Thanks,
/Hastie
Solved! Go to Solution.
04-06-2018 03:24 AM
Hi Hastie,
simple: a subVI is called from a mainVI…
The overwhelming high number makes it difficult for me as a beginner to understand what is what and how are they related.
- It would help to give those VIs better names! I often name the main VI of a project using a scheme like "project_Main.vi"…
- It would help to sort the subVIs into (virtual) folders in your project tree.
- You can use the VI hierarchy view to see the relation between VIs.
- You can right-click a VI in the project tree and "Find callers" of that VI…
- …
04-06-2018 04:02 AM
Thanks for your reply Gerd, the "Find Callers" option really helped. When I look at the Vi Hierarchy of the "suspected" mainVI, there are many subVIs that that not included in the project folder. They mostly seem to be coming from the drivers used, is that normal? Shouldn't they also be in the project folder? If not how does the program know where to look for them?
Sorry for perhaps too obvious questions!
Best,
/Hasti
04-06-2018 04:30 AM
Hi Hastie,
They mostly seem to be coming from the drivers used, is that normal?
Yes, that's normal.
All VIs in user.lib, instr.lib and vi.lib usually don't belong into the project.
Shouldn't they also be in the project folder?
Did you notice the "Dependencies" sub-tree of the project?