LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Local Variable as read by default

Is there a setting or addon that can set local variable as read by default?

0 Kudos
Message 1 of 4
(275 Views)

Hi maxnoder,

 

There have been discussions on the Idea Exchange about changing the default to read for local variables, but the idea(s) have been declined. Maybe you could give examples of when/why you need reading from locals more often than writing to them?

 

Regards,

Raphaël.

0 Kudos
Message 2 of 4
(267 Views)

In a properly designed program, writing to a local variable is significantly more common, so there is good reason that writing is the default.

 

(One things they could add is the ability to select multliple local variables and change them to read at once, but that also lowers the barrier of blatant overuse of locals by inexperienced programmer..)

 

Typically, "the wire is the variable" and we read from controls or instruments. We also can read from queues, and "new val" data value nodes of event cases, etc.

0 Kudos
Message 3 of 4
(250 Views)

@altenbach wrote:

(One things they could add is the ability to select multliple local variables and change them to read at once, but that also lowers the barrier of blatant overuse of locals by inexperienced programmer..)


Any LV user could add that, by creating a right click menu plug in.

 

The problem here is that people who could create such a plug in have other priorities, aka "don't want to".

 

This is not expert privilege, we just rather spend time helping on a more fundamental level.

Message 4 of 4
(196 Views)