LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
eric.atherton

Create Local/Global Variables "Uninitialized"

When you drop a local or global variable, it always defaults to Write.  Wouldn't it be nice to drop a variable down, and it is "uninitialized".  It would show nodes on both the read (left) and write (right), and become either read/write only AFTER you wire to the appropriate node.

 

5 Comments
AristosQueue (NI)
NI Employee (retired)
Sergey_Kolbunov
Member

Good idea. Same approach can be used for Property Nodes.

Technico
Member

Hi AQ, I don't think it is the same.

In this case it becomes clearly visible if the local/global is unwired.
Having it changed to Read/Write after wiring also prevents the need to 'change to Read' every time a local/global is created.

Ray.R
Knight of NI

This is NOT a good idea.  A Local Variable is a copy of the value within a control or an indicator.  It is NOT meant to be a variable.  You cannot have an uninitialized Local Variable, it just does not make sense.   LabVIEW is not intended to be programmed like a text-based language.  Trying to force it to behave in such a way is just wrong.

 

AQ:  This is not the same idea as the other thread.

JordanG
NI Employee (retired)