Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi,
We can create and set remote binding programmatically. But how can we set property attributes such as "Start Type", "Cache Method" and other parameters related to remote property.
I have attached the image for better understanding.
Also, I have shared the code which I tried.
With regards
Yedukrishnan
var aspects = {
"industrialDataType": "Short",
"tagAddress": "Channel1.Device1.tag3",
"scanRate": 1000,
"tagType": "Static",
"readOnly": "true"
};
var params = {
propertyName: "PropertyTag" /* STRING */,
pushThreshold: 0 /* NUMBER */,
aspects: aspects /* JSON */,
foldType: undefined /* STRING */,
sourcePropertyName: undefined /* STRING */,
timeout: 0 /* INTEGER */,
pushType: "VALUE" /* STRING */,
cacheTime: undefined /* INTEGER */
};
// no return
me.SetRemotePropertyBinding(params);
With regards
Yedukrishnan
I believe it is part of aspects, try getting the definition and parse out all the aspects.
sorry I had an example of this, but I don't think I have that anywhere anymore because it's on a machine that is now defunct
I also believe others have posted some snippets of their remote binding code, perhaps do a quick search (or even a search through support.ptc.com)