LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Most efficient way to clean a project


@raphschru wrote:

@crossrulz wrote:

@RTSLVU wrote:

What is the most efficient way to clean this project...


My tongue-in-cheek response: Ctrl+A, Delete, Ctrl+S


I guess what you mean is doing Ctrl+A and Delete from the file explorer, then "Save All (this Project)" from LabVIEW?

I don't think LabVIEW will like that, there will be lots of "[Warning: has been deleted, renamed or moved on disk]".


No, I meant the Items tab of the project. Select all, delete, save. The project is now empty/clean.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 14
(218 Views)

@raphschru wrote:
What about right-clicking your project root > Find Items with No Callers ?

Wow!  You can teach an Old Dog new Tricks!  I never noticed that feature.  Just ran it on a very "solid" Project I finished with lots of nested and concurrent Loops running Channel Message Handlers and found two "orphans" that, were indeed, without callers.  [I didn't bother to modify the code, as they are innocuous and my colleague continues to use it without any errors or worries, but I'll definitely add this to my "List of Things to Check before doing a Commit"].

 

Bob Schor

0 Kudos
Message 12 of 14
(195 Views)

I use the Total Commander file explorer, which lets me compare/match the contents of two directories with their entire hierarchy, and I proceed as follows:
- Open the main VI
- If any, include all dynamically called VIs
- Menu >> File >> Save as >> Duplicate hierarchy to new location
- Using Total Commander, delete the unused contents of the source project

0 Kudos
Message 13 of 14
(175 Views)

There is a plugin to find items in the folder structure that are not in the project: Feature - Find Non-Project Files

0 Kudos
Message 14 of 14
(168 Views)