Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

removepublicgroup

Remove public group from server

Syntax

removepublicgroup(DAObj,'PublicGroupName')

Description

removepublicgroup(DAObj,'PublicGroupName') removes the public group PublicGroupName from the server that DAObj is connected to. DAObj must be a connected opcda object.

If the public group has clients using that group, removepublicgroup issues a warning; then it removes the group from the server only when all clients have stopped using that group. No additional clients can connect to that group after you call removepublicgroup.

Not all OPC data access servers support public groups. If you try to make a public group on a server that does not support public groups, you get an error. To verify that a server supports public groups, use the opcserverinfo function on the client connected to that server: Look for an entry 'IOPCPublicGroups' in the 'SupportedInterfaces' field.

Examples

Connect to the server Dummy.Server and remove the public group named PGroup.

da = opcda('localhost','Dummy.Server');
connect(da);
removepublicgroup(da,'PGroup');

See Also

Functions

Introduced before R2006a

Was this topic helpful?