Duplicate Control Labels Error When Using LabVIEW Unit Test Framework

Updated Aug 29, 2024

Reported In

Software

  • LabVIEW
  • LabVIEW Unit Test Framework Toolkit

Issue Details

I'm using LabVIEW Unit Test Framework Toolkit and I'm trying to create a Unit Test for one of my VIs, however when I try to do so, I get the error:

Cannot create a test from this VI. The VI contains the following duplicate control labels:

duplicated label reference

Solution

This error can be caused by duplicated label names in your code.

Make sure you check controls, array elements, and cluster elements of this VI so that they have unique names. 

It's easy to miss the array and cluster elements as you usually manipulate them as a single entity after creating them, so their elements could have the default names.

Additional Information

If you are taking your arrays or cluster into graphs, it may be required to delete and redo the graph to refresh the reference for LabVIEW.