Duplicate Control Label Error With Network-Published Shared Variables in LabVIEW UTF

Updated Sep 23, 2026

Reported In

Software

  • LabVIEW
  • LabVIEW Unit Test Framework Toolkit

Issue Details

I receive a duplicate control label error when creating a LabVIEW Unit Test Framework (UTF) test for a top-level VI that contains network-published shared variable nodes configured with cluster or nested cluster type definitions.
 
The error may occur during test creation or after reopening the LabVIEW project. The VI hierarchy does not appear to contain intentionally duplicated labels, but the Unit Test Framework reports a duplicate control label conflict and prevents successful test creation.

Solution

This behavior can occur when the LabVIEW Unit Test Framework parses network-published shared variable nodes that use complex cluster or nested cluster type definitions.
 
To work around this issue, create Unit Test Framework tests for isolated logic VIs instead of directly testing the top-level VI containing the network-published shared variables.
  1. Open the top-level VI in the LabVIEW project.
  2. Isolate the application logic into a dedicated subVI.
  3. Configure the logic subVI inputs and outputs using standard cluster controls and indicators based on the same cluster type definition.
  4. Pass data from the network-published shared variable nodes in the top-level VI to the logic subVI terminals.
  5. Create the Unit Test Framework test (.lvtest) for the logic subVI rather than the top-level VI.
  6. Verify that all controls, indicators, array elements, and cluster elements throughout the VI hierarchy use unique label names.
  7. Recreate the test and verify that the duplicate control label error no longer occurs.
This architecture separates network-published shared variable access from application logic and reduces exposure to Unit Test Framework parsing limitations associated with shared variable nodes that use cluster-based type definitions.