Main Content

Data Reading and Writing

Read and write OPC server data synchronously or asynchronously

Exchange data with the OPC server using individual items, or using the dagroup object to perform the operation on multiple items. The reading and writing operation can be performed synchronously, so that your MATLAB® session waits for the operation to complete, or asynchronously, allowing your MATLAB session to continue processing while the operation takes place in the background.

Functions

readRead data synchronously from OPC DA groups or items
readasyncRead data asynchronously from group or items
writeWrite values to group or items
writeasyncAsynchronously write values to group or items
cancelasyncCancel asynchronous read and write operations

Topics

Read and Write Data

Describes how to use group and item objects to read and write data synchronously and asynchronously.

Work with Structure-Formatted Data

Describes how OPC Toolbox™ software arranges data in structure formats.

OPC Data: Value, Quality, and TimeStamp

Describes the Value, Quality, and TimeStamp elements that make up OPC data.

Array-Formatted Data

Describes how you can use array formats returned by OPC Toolbox software.

Work with Different Data Types

Describes how OPC Toolbox software deals with MATLAB data types and OPC server data types.

Featured Examples