From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-20-2019 11:58 AM
I created a project that was fully functional, but needed to clean up the file structure since it is part of a preexisting format established here at work. I attempted to "Save As" a backup in case the inevitable operator error occurred during this process.
I made the mistake of checking "Include all dependencies" and ended up with this mess. When I attempted to modify the original project that I just "backed up" it tells me failed to load DLL, dependencies etc.. so it is broken and i need to restore my backup to the desired location, along with all dependencies before I clean up the mess seen here. It seems there should be a MUCH easier way than my efforts thus far. I am almost positive I cannot just delete those files and try again.
Solved! Go to Solution.
08-20-2019 01:53 PM
You sound like someone with "more than a beginner's knowledge and experience using LabVIEW" (you know about Projects, for example). You also appear to be doing serious development work "at work". Here are some suggestions "going forward" --
Bob Schor
08-20-2019 02:02 PM
There are three options that could have been pursued:
Save as... would be my last choice; TSVN my first.
08-20-2019 02:03 PM
@Bob_Schor wrote:
...
- Look in Dependencies. Try to fix errors you see flagged there. Something may be in Dependencies because it is called from somewhere in the Project, but can't be found. If you know where it is, specify it. If it belongs in the Project, put it there by using "Add to Project". Again, I'd recommend first copying the file to a folder in the Project and then doing the "Add" from that internal folder.
- A note of caution -- my preference for having all files in the Project folder can mean that a "Utility" file used in Project A and Project B might be slightly different. What I should be doing is creating a User Library that I can install via a Package Manager, but I haven't quite gotten there, yet.
Bob Schor
Everything in the project works OK if we just have one application.
But when you get to the point where you are writing more than one application (as in AN app for Windows and an app for cRIO) and we have to maintain backward compatablity... then separate projects just for shared data structure works nicely and let us avoid the SVN battles that happen when more than one developer is making changes.
After all the libraries we use from NI do not show up in the project and they work just fine.
Ben
08-20-2019 02:07 PM
Thank you for the thoughtful reply. In hindsight, I have decided that I definitely should work in a project, as opposed to transforming it at the end. We have Tortoise available here. I will have that installed before proceeding. I feel silly, because the code works as intended, looks good, is efficient and scale-able. I just did not take the necessary precautions to prevent this. I save my VI's every day with a date to (I thought) prevent this from happening. I will take your advice, step by step and make it right. I was hoping there was a magical "undo" button out there. Apparently it is Tortoise, and a little planning ahead. Thank you again for taking the time to look at my problem. Have a great day.
08-20-2019 02:10 PM
Thanks! I will learn from this experience. I appreciate the guidance.
08-20-2019 02:12 PM
@Daddy-O wrote:
Thanks! I will learn from this experience. I appreciate the guidance.
I have told my noobs after they lost code and have to rewrite it...
"the good thing about rewriting code is you will do a better job the second time."
Ben
08-20-2019 02:36 PM
A friend of mine says, "The best sense is bought sense".
08-20-2019 03:51 PM
I almost shouldnt say it but the Windows feature "Previous versions" has saved me a couple of times when I was over-eager in deleting files I hadn't committed to TSVN yet.
Just sayin'