OPC Toolbox™ provides access to live and historical OPC data directly from MATLAB® and Simulink®. You can read, write, and log OPC data from devices, such as distributed control systems, supervisory control and data acquisition systems, and programmable logic controllers. OPC Toolbox lets you work with data from live servers and data historians that conform to the OPC Data Access (DA) standard, the OPC Historical Data Access (HDA) standard, and the OPC Unified Architecture (UA) standard.
The product includes Simulink blocks that let you model online supervisory control and perform hardware-in-the-loop controller testing.
From Eric Wetjen, OPC Toolbox Technical Expert