OPCDA.NET Reference Manual
AddGroup(String,Boolean,Int32,Int32) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcServer Class > AddGroup Method : AddGroup(String,Boolean,Int32,Int32) Method

groupName
Name of the new group. The name must be unique among the other groups created by this client. If the name is en empty string ("") then the server will generate a unique name. The server generated name will also be unique relative to any existing public groups.
setActive
Initial active state. true for active and false for inactive.
requestedUpdateRate
Client specifies the fastest rate at which data changes may be sent to OnDataChange for items in this group. This also indicates the desired accuracy of Cached Data. This is intended only to control the behavior of the interface. How the server deals with the update rate and how often it actually polls the hardware internally is an implementation detail. Passing 0 indicates the server should use the fastest practical rate. The rate is specified in milliseconds.
ClientHandle
Client provided handle for this group. The client handle is returned in asynchronous data callback to enable the client to identify the data.

Glossary Item Box

Add a new group. ( IOPCServer::AddGroup )
The OPC parameters DeadBand and LocaleId are set to zero.
If any error occurs an OPCException is thrown.

Syntax

Visual Basic (Declaration) 
Public Overloads Function AddGroup( _
   ByVal groupName As String, _
   ByVal setActive As Boolean, _
   ByVal requestedUpdateRate As Integer, _
   ByVal ClientHandle As Integer _
) As OpcGroup

Parameters

groupName
Name of the new group. The name must be unique among the other groups created by this client. If the name is en empty string ("") then the server will generate a unique name. The server generated name will also be unique relative to any existing public groups.
setActive
Initial active state. true for active and false for inactive.
requestedUpdateRate
Client specifies the fastest rate at which data changes may be sent to OnDataChange for items in this group. This also indicates the desired accuracy of Cached Data. This is intended only to control the behavior of the interface. How the server deals with the update rate and how often it actually polls the hardware internally is an implementation detail. Passing 0 indicates the server should use the fastest practical rate. The rate is specified in milliseconds.
ClientHandle
Client provided handle for this group. The client handle is returned in asynchronous data callback to enable the client to identify the data.

Return Value

OpcGroup object

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.