11-23-2024 06:32 AM
@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.
11-24-2024 03:28 PM
@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
11-25-2024 01:46 AM
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
11-25-2024 02:03 AM
There is a plugin to find items in the folder structure that are not in the project: Feature - Find Non-Project Files