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.
Retrieve information about mapping from DAClientMapper
But you probably wanted it with less coding - the way you suggested in your pseudo-code.
With some simplification, the browse path of the property is, actually, the browse path of the parent, combined with the name of the property. Therefore you can just take the parent browse path and add a "/" and a name of the property to it, and you are done.
The simplification lies in the fact that you can specify an OPC browse name for the property that is differ from its C# name, or even a completely different browse path or use an Item ID etc.
The resolution from a parent node descriptor to the one that relates to the specific mapped member is done by a method that is, unfortunately, 'private', on the DAMappingContext object. It may help you to show how it looks like:
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
below you can find ilustration of idea:
Please Log in or Create an account to join the conversation.
Thank you.
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
protected override DAFolderMapping CreateFolderMapping(AbstractMapping parent, DAFolderAttribute folderAttribute);
protected override DAFolderSource CreateFolderSource(DAMappingContext mappingContext, DAMemberMappingDefinition memberMappingDefinition);
protected override DAItemMapping CreateItemMapping(AbstractMapping parent, DAItemAttribute itemAttribute);
protected override DAItemSource CreateItemSource(DAMappingContext mappingContext, DAMemberMappingDefinition memberMappingDefinition);
protected override DAPropertyMapping CreatePropertyMapping(AbstractMapping parent, DAPropertyAttribute propertyAttribute);
protected override DAPropertySource CreatePropertySource(DAMappingContext mappingContext, DAMemberMappingDefinition memberMappingDefinition);
Please Log in or Create an account to join the conversation.
- miron
-
Topic Author
- Visitor
-
Hi I could retrieve information about mapping from DAClientMapper?
I mean mapping for give property type.
Thant means it should exists possibility to get this information by property info.
And it is necessary to obtain full, resolved browse path.
I am consider to automatically generation configuration for OPC Server by using reflection.
Thank you.
Please Log in or Create an account to join the conversation.