Created
August 27, 2013 02:37
-
-
Save Snegovikufa/6349066 to your computer and use it in GitHub Desktop.
OPC Ua write attribute value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WriteValueCollection nodesToWrite = new WriteValueCollection(1) | |
{ | |
new WriteValue | |
{ | |
NodeId = new NodeId("REQUIREDNODEID"), | |
AttributeId = Attributes.Description, | |
Value = new DataValue(new LocalizedText("ASDASDAD")), | |
} | |
}; | |
Cursor = Cursors.WaitCursor; | |
try | |
{ | |
StatusCodeCollection statusCodes; | |
DiagnosticInfoCollection diagnostics; | |
_session.Write(null, nodesToWrite, out statusCodes, out diagnostics); | |
} finally | |
{ | |
Cursor = Cursors.Default; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment