matlab/matlab-agentic-toolkit / skills-catalog/test-and-measurement/matlab-use-vehicle-network
matlab-use-vehicle-network
UnverifiedUse when setting up vehicle network communication in MATLAB using Vehicle Network Toolbox. Covers CAN/CAN FD (fully implemented), with architecture for J1939, XCP, and future protocols. Handles hardware discovery, channel creation, bus configuration, message exchange, signal encoding/decoding, and analysis across all supported vendors. (Vector, Kvaser, PEAK-System, NI, SocketCAN, MathWorks Virtual).
references/shared/limitations.md
View on GitHub# Vendor and Platform Limitations
## Kvaser
- Must connect device **before** starting MATLAB
- If connected while MATLAB is running, you'll see:
> "Vehicle Network Toolbox has detected a supported Kvaser device. To enable the device, shut down MATLAB. Then with the device connected, restart MATLAB."
- **Linux support:** Two paths available:
- `'Kvaser'` vendor string — requires Kvaser CANlib drivers (linuxcan package)
- `'SocketCAN'` vendor string — uses kernel SocketCAN layer; Kvaser hardware registers as `can0`, `can1`, etc.
- Both are valid; `'Kvaser'` gives direct access, `'SocketCAN'` abstracts behind the kernel
## Vector
- **Windows only**
- Maximum 64 physical or 32 virtual simultaneous connections
- Exceeding gives: `"Unable to query hardware information for the selected CAN channel object."`
## NI (NI-XNET)
- **Windows only**
- Cannot have more than one `canChannel` on the same NI-XNET device channel
## PEAK-System
- Cannot have more than one `canChannel` on the same PEAK-System device channel
- **Self-receive (CAN and CAN FD) supported only on Windows**
- On Linux: use SocketCAN functionality as workaround
## SocketCAN
- **Linux only**
- `configBusSpeed` not supported — configure speed at OS level:
```bash
sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up
```
- Supports virtual channels via `vcan` interface
## General
- Cannot create arrays of CAN channel objects — each must be its own variable
- Cannot reuse a variable for a new channel without clearing it first
- Only one object can hold InitializationAccess per physical channel
- CAN requires at least one other node to acknowledge transmissions
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |