You can add folders, individual VIs, or any supported files in a LabVIEW project to source control. When you configure LabVIEW to work with a source control provider, you can configure LabVIEW to prompt you to add files to source control when you add files to a project.
After a file is in source control, you can perform source control operations on the file in LabVIEW.
Complete the following steps to add files in LabVIEW to source control.
- Save the files in the local directory that corresponds to the source control provider directory where you want to store the files. You cannot add new VIs or LabVIEW project libraries to source control until you save and name them.
- Select Tools»Source Control»Add to Source Control to display the Source Control Operations dialog box. You also can click the Add to Source Control button on the Source Control toolbar.
From within a project, right-click the folder or files you want to add and select Add to Source Control from the shortcut menu.
- The Files tree contains the names and paths of all files to add to source control. Remove the checkmark from the checkbox next to the name of any file you do not want to add to source control.
- Click the OK button. LabVIEW adds the file to source control. If you are working in a project, a white square appears on the file icon to show the file is in source control.
||Note If you are using Perforce, LabVIEW adds the file or files to the default changelist. You must use Perforce to perform any advanced changelist actions, such as creating new changelists, or to navigate between changelists.|
After a file is in source control, you can check out files, check in files you edited, and get the latest version of a file in source control.