Main Content

Unified Architecture

R2026b
Access data on OPC UA servers

Industrial Communication Toolbox™ provides an OPC UA client to connect to OPC UA servers. Using the client, you connect to the server, query server status, browse the server namespace, read and write current values, and read historical values from nodes on the server. Historical data is retrieved as OPC data objects, which allow you to process historical data in preparation for common analysis tasks.

Blocks

OPC UA Read BlockOPC UA ReadRead data from OPC UA server (Since R2024a)
OPC UA Write BlockOPC UA WriteWrite data to OPC UA server (Since R2024a)

Functions

expand all

opcuaserverinfoQuery host for installed OPC UA servers
opcuaCreate OPC UA client object
setSecurityModelSet security configuration parameters for OPC UA client
connectConnect OPC UA client to server
disconnectDisconnect OPC UA client from server
isConnectedDetermine if OPC UA client object is connected to server
getServerStatusStatus of OPC UA server
findAuthenticationFind OPC UA servers supporting specified user authentication type
findDescriptionFind OPC UA servers containing specified description
opc.ua.exportClientCertificateCopy OPC UA client application certificates to file
opc.ua.saveClientLogSave OPC UA client debug logs to file (Since R2026b)
opc.ua.trustServerCertificateAdd OPC UA server certificate to MATLAB OPC UA client's trusted certificate store (Since R2026a)
opc.ua.rejectServerCertificateAdd OPC UA server certificate to MATLAB OPC UA client's rejected certificate store (Since R2026a)
opcuanodeCreate OPC UA node objects
getNamespaceNamespace of OPC UA server associated with client
browseNamespaceGraphically browse namespace and select nodes from OPC UA server
readValueRead values from nodes on OPC UA server
writeValueWrite values to nodes on OPC UA server
readHistoryRead historical data from nodes on OPC UA server
readAtTimeRead historical data from nodes of OPC UA server at specific times
readProcessedRead aggregate data from nodes of an OPC UA server
invokeExecute method node on OPC UA server (Since R2024a)
DataCreate OPC UA Data object
findNodeByNameFind OPC UA server nodes by name
findNodeByIdFind OPC UA server node by namespace index and identifier
isEmptyNodeTrue for empty nodes of OPC UA node array
isVariableTypeDetermine if nodes are variable type
isMethodTypeDetermine if nodes are method type (Since R2024a)
isObjectTypeDetermine if nodes are object type
getNodeAttributesRead OPC UA server node attributes
getAllChildrenRecursively retrieve all children of OPC UA server node
getIndexFromNameReturn OPC data with matching names
subscribeMonitor nodes for data change notification (Since R2023b)
addnodeAdd nodes to existing client subscription (Since R2023b)
removenodeRemove nodes from client subscription (Since R2023b)
opc.setDateDisplayFormatSet display format of timestamp for OPC data objects
opc.getDateDisplayFormatGet display format of timestamp for OPC data objects
stairsPlot OPC UA data in stairstep graph
plot Plot OPC UA data in line graph
summaryDisplay summary of OPC UA data object
appendCombine OPC data objects
arrayHasSameTimeStampVerify if all elements in OPC UA data object have same timestamp
filterByQualityFilter OPC UA data by quality characteristics
tsintersectIntersection of timestamps in OPC UA data object
tsunionUnion of timestamps in OPC UA data object
resampleResample OPC UA data object to have defined timestamps
tableConvert OPC data object to a table
singleConvert OPC UA data object array to single matrix
doubleConvert OPC UA data object array to double matrix
int8Convert OPC UA data object array to int8 matrix
int16Convert OPC UA data object array to int16 matrix
int32Convert OPC UA data object array to int32 matrix
int64Convert OPC UA data object array to int64 matrix
uint8Convert OPC UA data object array to uint8 matrix
uint16Convert OPC UA data object array to uint16 matrix
uint32Convert OPC UA data object array to uint32 matrix
uint64Convert OPC UA data object array to uint64 matrix
logicalConvert OPC UA data object array to logical matrix

Apps

OPC UA ExplorerConnect to and communicate with OPC UA servers (Since R2026a)

Topics

Overview and Fundamentals

Security Considerations When Connecting to OPC UA Server

Workflow Tutorials

Featured Examples