02-14-2020 04:55 AM
Hello All,
I want to disable array indicator that nothing has influence on indicator.
FOr example, if I pressing switch on/off, array change values true/false.
But property node is set on disable.
How I can set property node, that indicator doesn't show values, changed by switch?
Vi in att.
Thank you
02-14-2020 05:14 AM
Disabling a control or an indicator simply means that you cannot interact with it by keyboard or mouse.
You can still set its value by code.
If you don't want change an indicator, simply don't write any value to it.
02-14-2020 05:50 AM
You can put it in a case, and wire a Boolean to it's selector. Write in the true case, don't write in the false case.
Alternatively, always write values, but select the old values with a Select function. Get the old values from a shift register.
There are tons of ways to do this. The simple solutions suggested here might not be the best solutions in the long run. It depends a lot on the program you're making
02-14-2020 05:59 AM
Thanks on quick reply.
But as you said that's depends from program itself. That's why I want to use property node.
Can anyone give some solution with property nodes?
Thanks
02-14-2020 06:06 AM
As already said, you cannot lock an indicator using only a property node: you need some (simple) programming.
02-14-2020 06:18 AM
@milan87 wrote:
But as you said that's depends from program itself. That's why I want to use property node.
Can anyone give some solution with property nodes?
You can use a property node to set (or not set) the value.
You can even use the disabled property, and when it's time to write the value (with a property node, if you must), skip this if the disabled property is set to disabled...
Do you mean you want to do this by reference? Please explain why you need to use a property node.
02-14-2020 06:28 AM
Maybe you want something like this.
02-14-2020 06:51 AM
This may be what you want. Use a property node to read the state of the indicator. If it is Disabled or Disabled and Greyed Out then do nothing. If it is Enabled write the value to the indicator.