This is an idea where I'm not sure if I like it but....
I often see code with functional globals and booleans used as command, 99% with FALSE as Get and TRUE as Set.
I don't like this and normally you use typedefed enums instead. But if you want to use those VIs created from someone else you have to use these boolean commands.
In most cases these FGVs where created this way because you don't want to create an enum for only two states (laziness) and time is money... Bad style I know 😞
My idea is to add an additional boolean constant with only changed appearance, quasi a mask: and
Afterwards the code will look like this, which is more intuitive than the first one:
Thanks,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.