UA Bundle SDK .NET
2.4.0.361
|
A session with the server must be established.
The following dialog shows an example for implementation of the Read service, which allows the user to select a subset of an array variable to read. Press the button “Show Code” to display the corresponding code, and the button “Help” to show this documentation page.
On pressing the button “...” at “Read Request”, a window for browsing the address space opens. Expand the tree, select an array variable and press “OK”.
The NodeId is now displayed in the field “Node Id”.
Specify the subset of the array variable to be read, either in the form “n” to read the n-th entry or “n:m” to read the entries from n to m.
On pressing the button “Read”, the values of the specified subset of the array variable is read and displayed in the corresponding field at “Read Response”. Check the box in front of “Use Asynchronous Pattern” to call “BeginRead” instead of “Read”. Press the button “...” to display more details of the read response.
The following code reads the specified subset of an array value of a given node ID from the server and displays it in the user interface.