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

Properties

opcda Object PropertiesConfigure OPC DA client
dagroup Object PropertiesConfigure OPC dagroup object
daitem Object PropertiesConfigure OPC daitem object

Topics