addgroup
(To be removed) Add data access group to opcda
object
Support for the OPC Data Access (DA) standard will be removed in a future release. Instead use OPC Unified Architecture (UA). See Version History.
Description
adds a group to the GrpObj
= addgroup(DAObj
)opcda
object DAObj
. A
group is a container for a client to organize and manipulate data items. Typically,
you create different groups to support different update rates, activation status,
callbacks, etc.
If DAObj
is already connected to the server when
addgroup
is called, a group name is requested from the
server. If the server does not supply a group name, or the object is not connected
to a server, a unique name is automatically assigned to GrpObj
.
The unique name follows the convention 'groupN'
where
N
is an integer. You can change this name by modifying the
group's Name
property.
adds a group to the OPC data access object GrpObj
= addgroup(DAObj
,GName
)DAObj
with the group
name given by GName
. The group name must be unique among other
group names within DAObj
.
adds a group to the GrpObj
= addgroup(DAObj
,GName
,GrpType
)opcda
object DAObj
with
the group type specified by GrpType
, either
'private'
or 'public'
.
You can add items to GrpObj
using the additem
function, if the group type is 'private'
.
For a public group, the items are already defined, and are automatically created
when you connect to the public group using addgroup
.