![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
01/14/2016
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Hello I have a question regarding the EventFilter SelectClauses. I'm using the .Net Stack.
Lets say I have created a new EventType (MyDiscreteAlarmState) that derives from DiscreteAlarmState.
I have added a new double property (doubleAuto) to MyDiscreteAlarmState
How do I have to adjust the default EventFilter that the value "doubleAuto" is send with the event?
EventFilter.AddSelectClause(ObjectTypes.BaseEventType,"doubleAuto") doesnt work.
The nodeId of "doubleAuto" is: "ns=2;i=40"
internal class MyDiscreteAlarmState : DiscreteAlarmState
{
private BaseDataVariableState _AutomaticAdditionalDouble;public MyDiscreteAlarmState(NodeState parent, ISystemContext systemContext, NodeId nodeId) : base(parent)
{_AutomaticAdditionalDouble = new BaseDataVariableState(this);
_AutomaticAdditionalDouble.Create(systemContext,
null,
new QualifiedName("doubleAuto", 0),
null, true);
_AutomaticAdditionalDouble.Value = 199;AddChild(_AutomaticAdditionalDouble);
}
}
Thank you very much
1 Guest(s)