02-05-2013 07:34 PM
Hello,
I just discovered data binding, and have used it on some primitive controls/indicators. I'm loving the cleanness of the approach (no extra polling and wires required!) 🙂
Now, this page suggests that I can bind a cluster to a shared variable too. However, when I do Right Click -> Properties, I can only see the Appearance and Documentation tabs (and I know I haven't accidentally selected an element inside the cluster, because (1) it's a strict typedef, and (2) the dialog's title says "Cluster Properties"). Where can I find the Data Binding tab?
Thanks
Solved! Go to Solution.
02-05-2013 09:51 PM
Open the Type def and then try the data binding.
02-05-2013 11:44 PM - edited 02-05-2013 11:58 PM
Hi P@Anand,
I have multiple controls/indicators linked to that typedef, so I don't want to bind the datatype itself to a shared variable. I'd just like to bind one particular indicator to one particular shared variable -- is that possible?
EDIT:
Ok, I can think of 2 ways to do what I want, thanks to P@Anand's tip:
Either way, if I ever update my original typedef, I'll have to change it in two places Is there any other solution? Can a typedef'ed FP object be bound to a typedef'ed SV?
02-06-2013 06:23 PM
Hi JKSH,
What your are trying to do can be done if you make the .ctl file as type definition insted of a strict type definition. With a strict type definition all instances link to the same .ctl file which is why you cannot use data binding on it.