Data Access Item objects contained by group
Item
is a vector of daitem
objects contained
by the dagroup
object. Item
is initially an
empty vector. The size of Item
increases as you add items with
the additem
function, and decreases as you
remove items with the delete
function.
Access |
Read-only |
Applies to |
|
Data type |
|
Values |
The default value is an empty matrix
( |
This example creates a fictitious client, adds a group and two items.
da = opcda('localhost', 'Dummy.Server'); grp = addgroup(da, 'MyGroup'); itm1 = additem(grp, 'Item.Name.1'); itm2 = additem(grp, 'Item.Name.2'); allItems = grp.Item
If one of the items is deleted, the Item property is updated to reflect this.
delete(itm2); newItems = grp.Item