EventFilter SelectClause|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
EventFilter SelectClause
Avatar
MVo
New Member
Members
Forum Posts: 1
Member Since:
01/14/2016
sp_UserOfflineSmall Offline
1
09/20/2016 - 23:25
sp_Permalink sp_Print sp_EditHistory

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

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 21
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1351
Posts: 4579