From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.
As expected, the use of a Value or Value (Signaling) property for a button with a latch mechanical action will generate the error 1193 when executing this code.
Run this code ? Yes, the Run arrow is unbroken in this case. I suggest to break it... like when trying to write to a local variable of such a button.
I suppose we could do this for bound property nodes (i.e. property nodes that are connected to a class), where we know at compile time whether setting the value will generate an error. However for an unbound property node (where you wire a reference in), we'd still need to generate an error.
I think that would be confusing (and this isn't the shelter our users argument) because in some cases you can compile, and in some cases you can't. Then when you fix your problem and can compile you can still get the same error setting the same property to the same value just because you used/didn't use a convenience feature (bound property nodes). Although compile-time errors are much preferred to run-time errors, I think this is a case where it makes more sense to have the error universally generated in one place. Since local variables are inherently bound to a control, I think it makes sense that we break the VI.
(I don't have a strong opinion. I'm just commenting on the consequences)
Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.