opcua
R2026bCreate OPC UA client object
Description
An opc.ua.Client object represents an OPC UA client in
MATLAB® that connects to an OPC UA server. Use this object to browse the server
namespace, read and write current node values, access historical node data, and configure
security settings for the connection.
Creation
Syntax
Description
creates an OPC UA client for the server specified by uaClient = opcua(serverInfoObj)serverInfoObj. You
can create server info objects with the opcuaserverinfo
function.
specifies one or more property values using name-value arguments. (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, you can override the default settings by using the name-value arguments
to set the properties MessageSecurityMode and
ChannelSecurityPolicy.
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 |