Error Connecting Terminals of Different Types Through For or While Loops

Updated Jul 18, 2018

Reported In

Software

  • LabVIEW

Issue Details

I wired an error wire through a loop and it gave an error for connecting two terminals of different types. The  error says that the type of the source is a 1D array of cluster of 3 elements. The type of the sink is cluster of 3 elements.

Solution

The Indexing tunnel mode is building an array from the values passed out of the loop after each iteration. This will cause an error when the sinking terminal expects values that are not arrays. The terminal on the loop should be changed to Last Value instead of Indexing. Accomplish this by right-clicking the node and selecting the Last Value option in the Tunnel Mode menu.

WAS THIS ARTICLE HELPFUL?

Not Helpful