.Net FileModel and UA Modeler

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
stfnstrk
Jr. Member
Jr. Member
Posts: 1
Joined: 01 Mar 2018, 13:44

.Net FileModel and UA Modeler

Post by stfnstrk »

Hello there,

i want to achieve the following:

On my Server machine there is a File which a want to include in my OPC Server using the UA Modeler. Clients should be allowed to Read the file. For this, i created a Node in the modeler of Type FiletType. In the DemoServer there is only an example on how to Add the Node without using the modeler. But how is this possible with the modeler?

To "wire" my other variables with opc nodes, is use a snippet like this

Code: Select all

 
 this.SetVariableConfiguration(
                myParentNode,
                new QualifiedName(BrowseNames.A, myNameSpace),
                NodeHandleType.ExternalPolled,
                new Func<object>(() => myClass.A ?? 0));

is there a similar approach to Including a File?

Thank you in advance.
Steffen

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: .Net FileModel and UA Modeler

Post by Support Team »

Hello Steffen,

If you are adding the instance of the FileType in UaModeler, you can also look at the example in the DemoServer. You can just ignore the part where the nodes are created. Linking the nodes to the model and setting the file on disk is exactly the same. For these steps it does not matter if the nodes are created in code or by loading an XML file.
Best regards
Unified Automation Support Team

Post Reply