![]() |
UA Bundle SDK .NET
2.3.0.330
|
A session with the server must be established.
The following dialog shows an example implementation of the Read service which allows the user to select the Node and the Attribute to read. Press the button “Show Code” to display the corresponding code, and the button “Help” for further information.
On pressing the button “...” at “Read Request”, a window for browsing the address space opens. Expand the tree, select the desired Node and press “OK”.
The NodeId is now displayed in the field “Node Id” and you can select the attribute to read from the corresponding drop-down menu.
On pressing the button “Read”, the value of the node’s attribute is read and displayed in the corresponding field at “Read Response”. Press the button “...” to view details for the value. Check the box in front of “Use Asynchronous Pattern” to call “BeginRead” instead of “Read”.
See Read – Read With Index Range for an example for reading only a subset of an array variable.
The following code reads the selected Attribute for the selected Node from the server.