Item

Data Access Item objects contained by group

Description

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.

Characteristics

Access

Read-only

Applies to

dagroup

Data type

daitem

Values

The default value is an empty matrix ([]).

Example

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

See Also

Functions

additem, delete

Was this topic helpful?