Documentation

  • Documentation Home
  • MATLAB Support Package for Arduino Hardware

Category

  • Get Started with MATLAB Support Package for Arduino Hardware
  • Setup and Configuration
  • Read and Write Data
  • I2C Devices
  • SPI Devices
  • Serial Devices
  • Shift Registers
  • Quadrature Encoders
  • Servo Motors
  • Adafruit Motor Shield V2
  • CAN Interface
  • Motor Carrier
  • BNO055 Sensor
  • Ultrasonic Sensor
  • Sensors
  • Custom Arduino Libraries
  • Creating Standalone Applications
  • Deploy Arduino Functions to Arduino Hardware Using MATLAB Function Block
  • Troubleshooting in MATLAB Support Package for Arduino Hardware
  • All
  • Examples
  • Functions
  • All
  • Examples
  • Functions

CAN Interface

Read from and write CAN messages to CAN shields on Arduino Hardware

Write and read CAN messages via the CAN channel. Create an arduino before you use CAN shield functions. See Connect to Arduino Hardware for more information.

Functions

canChannelConnection to CAN channel connected to a specified device
readRead messages from CAN channel
writeWrite messages to CAN bus

Featured Examples

Read and Write CAN Messages with Arduino Hardware

Read and Write CAN Messages with Arduino Hardware

Use the MATLAB Support Package for Arduino Hardware to read and write data from the CAN network using the specified CAN device.

Open Live Script
Advanced CAN Communication with Arduino Using Vehicle Network Toolbox

Advanced CAN Communication with Arduino Using Vehicle Network Toolbox

Use the MATLAB Support Package for Arduino Hardware along with the Vehicle Network Toolbox™ to read and write CAN messages and signals using a CAN database.

Open Live Script
Overcome Buffer Size Limitation of Arduino

Overcome Buffer Size Limitation of Arduino

You the limitation of Arduino based CAN Nodes by using the automatic periodic transmit feature of Vehicle Network Toolbox™. It also shows you how to overcome the limitation by using the timer feature which is available with MATLAB.

Open Script

MATLAB Support Package for Arduino Hardware Documentation

  • Examples
  • Functions
  • Release Notes
  • PDF Documentation

Support

  • MATLAB Answers
  • Installation Help
  • Bug Reports
  • Product Requirements
  • Software Downloads

© 1994-2023 The MathWorks, Inc.

  • Terms of Use
  • Patents
  • Trademarks
  • Acknowledgments