UA Bundle SDK .NET
2.2.4.281
|
A session with the server must be established.
The following dialog shows an example of a basic implementation of the Read service. Press the button “Show Code” to display the corresponding code, and the button “Help” to show this documentation page.
On pressing the button “Read”, the two variables Server/ServerStatus/State and Server/ServerStatus/CurrentTime are read. The response, i.e. the value of the variables is displayed in the corresponding fields at “Read Response”. Check the box in front of “Use Asynchronous Pattern” to call “BeginRead” instead of “Read”.
See Read – Read Attribute for an example which allows the user to select the Node and the attribute to read.
The following code reads the values of two OPC UA defined variables from the server and displays the values in the user interface.
NodeIds of OPC UA defined nodes are contained as constants for different node classes like