07-08-2011 01:35 PM
Hello,
I have a LV Project and I have a folder inside my project named Templates. Inside the Templates folder there are a few template VIs I made with names "Template_Name.vi" specific to that project.
Now and then I need to copy a few templates files into another project folder so I start programming off the templates.
All my folders in the project are auto-populating, so I can maintain source control and parallel programming with another developers.
If I copy directly the templates files from one folder to another, the project shows a duplicate file conflict, but soon I rename the copies to new names. I would expect that the conflict would disappear, but it does not, the project locks and I have to force it shutdown.
The only way I can do it gently is to open the template file and "Save as" it into the target folder with a different name, but I have to open every file and tell it to save as, so it takes a lot more time.
I am using LV 2010 with all updates from the auto update.
Isn't there a way to tell the LV project to REFRESH so it re-checks the conflicts and so it sees that the duplicate file name conflict no longer exist and go back to normal operation?
The resolve conflict window stays with the file name conflict even after I had renamed the duplicate files and all of its options are disabled.
Thank you
Andre
08-11-2011 01:32 PM - edited 08-11-2011 01:32 PM
Hello Andre
The best way to manage VIs in several projects is creating Libraries. You can create a Library called Template and import it inside your projects.
Take a look at this link: http://digital.ni.com/public.nsf/allkb/B48DF302E7A89E6686256DB1005AF97E?OpenDocument
08-11-2011 03:55 PM
You can also save your template files as an actual VI template (.vit). That way you can right click it in the project and create a new VI from it. This will open a new, unnamed VI from the template for you to work on and save wherever you want without a name conflict.