QuickOPC User's Guide and Reference
Create(String,String,Int32,AESubscriptionFilter) Method



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.AlarmsAndEvents.Reactive Namespace > AENotificationObservable Class > Create Method : Create(String,String,Int32,AESubscriptionFilter) Method
Name of the machine. Determines the computer on which the OPC server is located. May be an empty string, in which case the OPC server is assumed to exist on the local computer or at the computer specified for it by DCOM configuration.
Contains ProgID of the OPC server.
The requested notification rate. The notification rate is in milliseconds and tells the server how often to send event notifications. This is a minimum time - do not send event notifications any faster that this UNLESS the buffer size is reached. A value of 0 for notification rate means that the server should send event notifications as soon as it gets them. This parameter is used to improve communications efficiency between client and server. This parameter is a recommendation from the client, and the server is allowed to ignore the parameter.
An OpcLabs.EasyOpc.AlarmsAndEvents.AESubscriptionFilter that determines the filtering criteria to be used for the event subscription.
Creates a new notification observable for OPC events given by the machine name, server class, and other parameters.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Create( _
   ByVal machineName As String, _
   ByVal serverClass As String, _
   ByVal notificationRate As Integer, _
   ByVal filter As AESubscriptionFilter _
) As AENotificationObservable
'Usage
 
Dim machineName As String
Dim serverClass As String
Dim notificationRate As Integer
Dim filter As AESubscriptionFilter
Dim value As AENotificationObservable
 
value = AENotificationObservable.Create(machineName, serverClass, notificationRate, filter)

Parameters

machineName
Name of the machine. Determines the computer on which the OPC server is located. May be an empty string, in which case the OPC server is assumed to exist on the local computer or at the computer specified for it by DCOM configuration.
serverClass
Contains ProgID of the OPC server.
notificationRate
The requested notification rate. The notification rate is in milliseconds and tells the server how often to send event notifications. This is a minimum time - do not send event notifications any faster that this UNLESS the buffer size is reached. A value of 0 for notification rate means that the server should send event notifications as soon as it gets them. This parameter is used to improve communications efficiency between client and server. This parameter is a recommendation from the client, and the server is allowed to ignore the parameter.
filter
An OpcLabs.EasyOpc.AlarmsAndEvents.AESubscriptionFilter that determines the filtering criteria to be used for the event subscription.

Return Value

Returns an observable for notifications about given OPC events.
Remarks
The AEReactive.DefaultClientSelector selector will be used for OPC Alarms&Events operations.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also