Access data from many sources directly from MATLAB or Simulink

With MathWorks data acquisition products, you can access data from hardware such as data acquisition boards, test and measurement instruments, CAN bus interface devices, and imaging devices. You also have direct access to data from ODBC-compliant or JDBC-compliant databases, OPC servers, and several financial data servers.

MathWorks data acquisition products provide direct access to data to enable live visualization and analysis and streamline automation of repetitive tasks that require data from external sources.

“We move up our deadlines because analyzing our data now takes only minutes. MathWorks tools have saved us hundreds of hours in testing time.”

Reed Farrar, Newport Corporation

Communicating with Hardware and Instruments

Using MATLAB® or Simulink® and related products, you can control and acquire data from data acquisition hardware, imaging hardware, instruments, or CAN buses. You can also communicate with circuit boards and sensors using SPI (Serial Peripheral Interface), I2C (Inter-Integrated Circuit), MODBUS, and Bluetooth serial protocols. Without leaving your workspace, you can then visualize and analyze the data.

Acquire and Send Data from Test and Measurement Equipment

In a single environment, you can build flexible test systems, automate testing routines, perform design verification, and analyze and visualize live data as you collect it.

When working with one or more standalone instruments such as oscilloscopes, arbitrary waveform generators, and signal analyzers, you use Instrument Control Toolbox™ to control the instruments and acquire data from them. You can quickly establish communication with instruments via industry-standard communications protocols such as GPIB, VISA (incuding USB), TCP/IP, and UDP and via industry-standard instrument drivers such as IVI and VXIplug&play. You can also build test systems based on LXI, PXI, and AXIe standards.

When working with plug-in data acquisition boards, you connect to supported boards from multiple vendors using Data Acquisition Toolbox™. Because many boards provide both analog and digital input and output capabilities, you can control motors and sensors as well as collect and analyze live data.

Acquire and Send Data Using I2C, SPI, MODBUS, and Bluetooth Protocols

With Instrument Control Toolbox, you can connect MATLAB to devices that communicate over I2C, SPI, MODBUS, or Bluetooth SPP (Serial Port Profile). You can send and receive messages using these protocols and you can build applications that interface to embedded sensors such as accelerometers, temperature sensors, humidity sensors, and gyroscopes. You can also perform generic testing of embedded systems that communicate via SPI or I2C, and you can communicate with industrial equipment using either MODBUS RTU or MODBUS TCP/IP.

Acquire Images and Video from Cameras and Frame Grabbers

With Image Acquisition Toolbox™ you can acquire images and video directly into MATLAB and Simulink from PC-compatible imaging hardware. With support for multiple hardware vendors, you have the choice of a range of imaging devices from inexpensive Web cameras or industrial frame grabbers to high-end scientific cameras that meet low-light, high-speed, and other challenging conditions. Once you have acquired images, you can extract features and perform further analysis using MathWorks image and video processing products.

Communicate Directly with CAN Buses

With Vehicle Network Toolbox™ you can monitor and analyze Controller Area Network (CAN) bus traffic directly from your MATLAB or Simulink workspace with support for Vector, Kvaser, and NI-CAN, NI-XNET and PEAK- System interface hardware. You can communicate directly with in-vehicle networks using CAN protocol and XCP protocol from either MATLAB or Simulink. Within a single environment, you can:

  • Send and receive messages over CAN and XCP protocols
  • Monitor live CAN bus traffic using built-in tools
  • Automatically filter CAN messages
  • Use industry standard DBC and A2L files

Accessing Data Directly from Databases and Data Servers

From a single environment, MathWorks data acquisition products let you connect directly to:

  • ODBC-compliant databases to analyze historical data
  • Financial data servers to access live and historical market data
  • OPC or OPC UA servers to access live and historical industrial plant data

Direct access to these data sources also enables automation of repetitive tasks.

Exchange Data between MATLAB and Databases Without Knowing SQL

Analyze information stored in ODBC- and JDBC-compliant databases using MATLAB and database connectivity tools. You can access and write data from and to popular databases such as Oracle®, Sybase®, Microsoft® SQL Server™, and Informix® using Structured Query Language (SQL) commands. If you are not familiar with SQL, you can interact with a database using the built-in Visual Query Builder.

Access Live and Historical Financial Market Data

Financial professionals building computational finance applications in MATLAB can use MathWorks data feed connectivity tools to access data directly from financial data service providers. This connection enables access to live and historical market data for use in complex financial and analytical models. You can use graphical interfaces to open a connection, specify search parameters, and retrieve data for visualization and analysis in MATLAB without writing code.

Read and Write OPC Data Directly from OPC Servers and Data Historians

When working with devices that conform to the OPC Foundation Data Access standard, such as distributed control systems, supervisory control and data acquisition systems, and programmable logic controllers, OPC Toolbox™ lets you exchange data with an OPC or OPC UA server. You can also read and analyze data from any data historian that conforms to the OPC Foundation Historical Data Access (HDA) standard.