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.

disconnect (opcua)

Disconnect OPC UA client from its server

Syntax

disconnect(UaClient)

Description

disconnect(UaClient) disconnects the OPC UA client UaClient from its server, and sets the client Status property to 'Disconnected'.

Examples

Disconnect an OPC UA client and view its connection status.

s = opcuaserverinfo('localhost');
UaClient = opcua(s);
connect(UaClient);
UaClient.Status
Connected
disconnect(UaClient);
UaClient.Status
Disconnected

Introduced in R2015b

Was this topic helpful?