LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unused shared variables and vi's

Solved!
Go to solution

I'm cleaning up a 9-month old project. I'm the 3rd developer to work on it and it's become a little disorganized. I want to clean up the file structure and project directory before the next developer steps in to support this project. What is the best way to organize an already existing project and file structure to eliminate any unused vi's and shared variables?

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 5
(2,821 Views)

I've gotten the VI's pretty well organized using the save for distribution function. I have some templates and seperate main functions and just wanted to know if I missed anything. I'm really concerned about unused shared variables. They seem to be taking up an awful amount of space in my project and directories.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 2 of 5
(2,815 Views)
Solution
Accepted by topic author PaulG.

Paul:

 

In your project, you can right-click your variables and select "find callers" to deterimine what (if any) VIs are using your shared variables. That may help to determine which ones are unused.

Caleb Harris

National Instruments | http://www.ni.com/support
0 Kudos
Message 3 of 5
(2,793 Views)

Yes, I knew about that but wanted something a little less cumbersome. This looks like the way I'll have to do it.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 4 of 5
(2,785 Views)

To remove unused VI's, you can create a Source distribution which will only copy the referrenced VI's to a target location.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(2,776 Views)