White Paper - Using PI Data with MATLAB

Document created by dng on Jan 19, 2015Last modified by dng on May 27, 2016
Version 4Show Document
  • View in full screen mode

MATLAB is a language for technical computing that integrates computation, visualization, and programming. It is provided with a graphical environment where one can express problems and get solutions in familiar mathematical notation. The PI System and MATLAB are in several ways complementary. For instance, PI System is meant to effectively collect, store, and serve masses of time series data in real time, whereas MATLAB is in no way a data store. MATLAB and its convenient ad-hoc computing interface extend the computing ability of the PI System by adding its library of advanced functions. In other words, combining the "real-time data infrastructure" capabilities of the PI System and the advanced mathematical and computing functions of MATLAB is a logical choice in many applications.


In this white paper, we will discuss various ways to bring PI data into MATLAB:

  1. Using PI AF SDK
  2. Using PI Web API
  3. Programmatically, using a mix of PI and MATLAB functions
  4. Using MATLAB's Database toolbox and the PI JDBC Driver
  5. Using comma-separated values (CSV) files
  6. Using ADO and the PI OLEDB Provider
  7. Using MATLAB's OPC Toolbox and the PI OPC DA Server
  8. Using Integration Objects' OPC HDA Toolbox and the PI OPC HDA Server


The code and supporting files for this white paper can be found on GitHub.

1 person found this helpful