10-13-2025 03:05 PM
I ran across this VI today:
What on Earth is going on in the head of someone who does that?
10-13-2025 03:08 PM
My guess, anxiety.
10-13-2025 03:19 PM
Probably someone who doesn't know LabVIEW very well trying to "replicate" their text code.
SomeFunction (U16 in) {
TypeOut = U16 in;
return TypeOut;
}
10-13-2025 04:24 PM - edited 10-13-2025 04:38 PM
Maybe someone who has some background in textual languages and thought of that indicator more as a "GUI" object rather than the output of a function... So maybe he/she thought he had to "decouple" that from the code for some reason.
Or maybe someone who just don't know that an indicator terminal can be wired directly.
Or maybe he/she thought it would help for debugging?
10-14-2025 01:34 AM - edited 10-14-2025 01:35 AM
If it is an ancient VI, it may have had some merit in a far far ago past in a far away galaxy. There were some glitches in control updates when opening popups long ago and using a local could delay the actual front panel update enough that the control was only redrawn after its panel was properly on screen.
Other than that it’s simply traditional programmer anxiety.
10-14-2025 03:38 AM
@paul_a_cardinale wrote:
I ran across this VI today:
What on Earth is going on in the head of someone who does that?
"Lokal variabel gud!" 🤢