Programatically add optional property to nested variable nod
Posted: 04 Oct 2019, 09:57
I am creating an instance of AlarmConditionType programatically:
However, I would like to also add the optional TransitionTime property to the ActiveState variable of the created instance of AlarmConditionType.
I am aware that this can be done through the UaModeler, but how do I do this programatically?
Code: Select all
var alarmConditionObject = CreateObject(Server.DefaultRequestContext, new CreateObjectSettings
{
ParentNodeId = new NodeId(...),
ReferenceTypeId = ReferenceTypeIds.HasCondition,
RequestedNodeId = new NodeId(...),
BrowseName = new QualifiedName(alarmDisplayName, InstanceNamespaceIndex),
TypeDefinitionId = ObjectTypeIds.AlarmConditionType,
Description = alarmMessage,
});
I am aware that this can be done through the UaModeler, but how do I do this programatically?