Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
5 ratings:
 2 out of 5     Rate this Document

How Do I Compare Two VIs in LabVIEW?



Primary Software:
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Professional Development System

Problem:
How do I compare two VIs in LabVIEW?

Solution:
In LabVIEW, you easily can compare two VIs with different names. To compare two VIs with the same name, refer to the instructions below. You can use the Compare VIs dialog box to compare two VIs that are open in LabVIEW (in memory). If no VIs are in memory, LabVIEW grays out the Compare VIs menu item.

Note: To compare two VIs that are not open in LabVIEW, use LVCompare.exe (LabVIEW 2011 Help: Configuring Source Control with LVCompare.exe) to compare VIs using a third-party source control provider or the command line. LVCompare.exe is available only in the LabVIEW Professional Development System, and can be found in the Shared Folder in your National Instruments folder as LabVIEW Compare.

Complete the following steps to compare two VIs that are open in LabVIEW.

Select Tools»Compare»Compare VIs to display the Compare VIs dialog box.

In the dialog box, select the VIs you want to compare. Choose which items from the VI you would like to compare by placing a checkmark next to those items. After you select the VIs to compare and the attributes to compare, click the Compare button. LabVIEW shows the two VIs side-by-side, along with the Differences dialog box.

Click a difference in the left pane to see its details. The details describe what type of difference each item refers to. Place a checkmark in the Circle Differences checkbox to place a red circle around the item in each VI that a particular difference refers to. If you highlight a difference and click the Show Difference button, LabVIEW highlights and places a red circle around the item in each VI that contains that difference, as shown in the following block diagram.

Show Differences


Some differences can contain multiple details. When you click the Show Detail button, LabVIEW highlights the particular detail you have selected for a particular difference.

You can use this tool while you edit VIs, but you must click the Update button to populate the Differences pane with the current differences between the two VIs. For more information about the Compare VIs (LabVIEW 2011 Help: Comparing VIs and VI Hierarchies) and the Show Differences (LabVIEW 2011 Help: Differences Window) functionality, refer to the LabVIEW Help.


Comparing Two VIs with the Same Name

You can compare two VIs with the same name, but these VIs must reside in different LabVIEW projects, and you must open these VIs from the project.

After you open the VIs, select Tools»Compare»Compare VIs to compare the two VIs. Refer to the beginning of this document for more information.

Related Links:


Product Page: VI Analyzer Toolkit

LabVIEW 2011 Help: Comparing VIs and VI Hierarchies
LabVIEW 2011 Help: Differences Window
Developer Zone Community: Source Code Control and Group Development Practices in LabVIEW for Advanced Configuration Management Tasks
LabVIEW 2011 Help: Configuring Source Control with LVCompare.exe                                           KnowledgeBase 57HBTO7G: How Do I configure TortoiseSVN to use LabVIEW Compare for Diff Viewing?



Attachments:





Report Date: 01/11/2005
Last Updated: 10/30/2012
Document ID: 3HAAL5N8

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit