10-19-2024 07:41 AM
Is there a setting or addon that can set local variable as read by default?
10-19-2024 07:58 AM
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.
10-19-2024 09:09 AM
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.
10-21-2024 04:39 AM
@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.