Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
How to make operation for only one property in live mapping
There is one underlying method that in the end does all live mapping "writes", on DAClientMapper:
Best regards
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
Could you consider to add method WriteTarget with array of objects?
Please Log in or Create an account to join the conversation.
I understand the issues with Tags, but that's what they are... Some if it can be overcome by using named string constants both where the tags are placed, AND where they are referred to. It is not quite clear to me why you say that the tags would have to be unique for each instance.
I am (pleasantly) surprised by the fact that [DAType] works with generics. It is an innovative solution. I do not think there is a problem with it performance-wise. I understand the suggestion about WriteTarget and an array, but currently it's not there (because the mechanism envisioned was to use the tags). For advanced usages, we have (on DAClientMapper)
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
This definition I could use to define my type:
And next I could use it:
Remarks:
- It is working. But I don't know that is correct way (Performance). I would like ask about comment.
- If yes, would be useful to extend WriteTarget to pass array of object.
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
I have definition of Device:
I have 10 instances of this class which I mapped.
And in my case I would like to read / write data for devices. (mapper.Write(), mapper.Read());
And sometime use one given property to make some operation.
I would like to use something like:
for one given value.
I know that is not possible because IsRunning is just int.
I could use MappingTag attribute to mark values for selected operation.
But in my case I had to mark each property by unique value.
Also each tag had to be unique for 10 instances.
And in code I had to use string (for selecting operation) instand of strong typing.
Is there any better solution?
Please Log in or Create an account to join the conversation.