Sometimes I want to have global static constants which I can read in multiple different places and update in only one.
I either have to do this in some clunky fashion with an in-lined VI that just has a constant on the block diagram which gets wired out, or I use a global variable with default values set and just never write to it.
The global variable option is a way cleaner implementation but has the disadvantage that there isn't technically anything preventing it from being written I just have to rely on/promise that I (or anyone else) won't write it.
I would be awesome if there was a property which could be set on a global which allowed it to only function in the read direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.