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 useInstrument Control Toolbox™to control the instruments and acquire data from them. You can quickly establish communication with instruments via industry-standardcommunications protocolssuch asGPIB,VISA(incudingUSB),TCP/IP, andUDPand via industry-standard instrument drivers such asIVIandVXIplug&play. You can also build test systems based onLXI,PXI, and AXIe standards.

When working with plug-in data acquisition boards, you connect tosupported boards from multiple vendorsusingData 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.


从摄像头获取图像和视频和Gr帧abbers

WithImage Acquisition Toolbox™you can acquire images and video directly into MATLAB and Simulink from PC-compatible imaging hardware. Withsupport 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 MathWorksimage and video processings manbetx 845产品。


Communicate Directly with CAN Buses

WithVehicle Network Toolbox™you can monitor and analyze Controller Area Network (CAN) bus traffic directly from your MATLAB or Simulink workspace with support forVector,Kvaser, andNI-CAN, NI-XNETandPEAK- Systeminterface hardware. You can communicate directly with in-vehicle networks usingCAN protocolandXCP protocolfrom 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