opcua
Create OPC UA client object
Description
An opc.ua.Client object represents an OPC UA client in
MATLAB® that connects to an OPC UA server. You can use the client to communicate with
the server, including browsing the server namespace, reading and writing current values, and
reading historical values from the server.
Creation
Syntax
Description
creates an OPC UA client object associated with the server specified by
uaClient = opcua(serverInfoObj)serverInfoObj. You can create server info objects with the
opcuaserverinfo function.
specifies additional configuration options to create an OPC UA client object. (since R2025a)uaClient = opcua(___,Name=Value)
The client retrieves a list of all available connection endpoint configurations from the server. By default, the client selects the endpoint configuration with the highest available channel security policy and message security mode. If the attempt to retrieve endpoints fails, an error is generated. You can override the default settings by using the name-value arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
setSecurityModel | Set security configuration parameters for OPC UA client |
connect | Connect OPC UA client to server |
disconnect | Disconnect OPC UA client from server |
isConnected | Determine if OPC UA client object is connected to server |
getServerStatus | Status of OPC UA server |
getNamespace | Namespace of OPC UA server associated with client |
browseNamespace | Graphically browse namespace and select nodes from OPC UA server |
readAtTime | Read historical data from nodes of OPC UA server at specific times |
readHistory | Read historical data from nodes on OPC UA server |
readProcessed | Read aggregate data from nodes of an OPC UA server |
readValue | Read values from nodes on OPC UA server |
subscribe | Monitor nodes for data change notification |
writeValue | Write values to nodes on OPC UA server |