LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Give wires a unique name

Hi, 

I thought that wires had a unique name, even if they enter inside some "box" (while loops, cases). Instead, as in the picture below, I was able to assing different name "Timeout" vs. "TimeoutW", to a wire which is basically the same. 

Is there any option to give wires a unique name ?





0 Kudos
Message 1 of 3
(2,845 Views)

Hi Runawaycode,

 

well, branching a wire creates (or better: may create) a data copy - THINK DATAFLOW!

Different datacopies can have different labels…

 

AFAIK there is no such option, so you may propose your idea in the LabVIEW idea exchange!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,840 Views)

I'm not clear on what you are asking for here, and if it is any different than what LabVIEW already does now.  It make come down to terminology.

 

If a wire has multiple branches.  It still has the same value and the same name.  A wire can't have a different name just because it breaks off another wire at a joining dot.  Now when a wire enters into another structure, it is a different wire and can have a different name, even if there are no other branches on the wire that is entering the structure.

 

Whether the different wires cause data copies or not is purely up to the compiler.

 

So what you show with a wire label in the inner most while loop having a different label than the wire in the outermost while loop is already available today.

 

If you are talking about something different, please clarify.

0 Kudos
Message 3 of 3
(2,782 Views)