建模
为硬件连接准备 Simulink 模型,并添加模块以支持 NVIDIA 硬件。
模块
| ALSA Audio Capture | 使用 ALSA 从声卡捕获音频 |
| ALSA Audio Playback | Send audio to sound card for playback using ALSA |
| Audio File Read | Read audio frames from an audio file |
| Camera | Capture video from a USB or CSI camera connected to the NVIDIA target |
| Network Video Receive | Receive video from a network RTP or IP camera RTSP stream (自 R2021b 起) |
| SDL Video Display | Display video on a monitor connected to the NVIDIA target |
| Video Read | Read video frames from multimedia file on NVIDIA target (自 R2024a 起) |
| Video Send | Send video stream to remote hardware (自 R2023b 起) |
| GPIO Read | Read logical state of an input pin (自 R2021b 起) |
| GPIO Write | Set logical state of an output pin (自 R2021b 起) |
| CAN Receive | Receive messages from the controller area network (CAN) bus (自 R2021b 起) |
| CAN Transmit | Transmit messages on the controller area network (CAN) bus (自 R2021b 起) |
| Serial Read | Read data from serial port |
| Serial Write | Write data to serial port |
| SPI Register Write | Write to register of SPI device connected to NVIDIA Jetson board (自 R2026a 起) |
| SPI Register Read | Read from register of SPI device connected to NVIDIA Jetson board (自 R2026a 起) |
| SPI Controller Transfer | Write to and read from SPI device connected to NVIDIA Jetson board (自 R2026a 起) |
| MQTT Publish | Publish messages to MQTT broker on specified topic (自 R2023a 起) |
| MQTT Subscribe | Receive messages from the MQTT broker for specified topic (自 R2023a 起) |
| Modbus TCP/IP Client Read | Client device reads data from server device register(s) over TCP/IP network (自 R2022a 起) |
| Modbus TCP/IP Client Write | Client device writes data to server device register(s) over TCP/IP network (自 R2022a 起) |
| Modbus TCP/IP Server Read | Server device reads data from server device register over TCP/IP network (自 R2022a 起) |
| Modbus TCP/IP Server Write | Server device writes data to server device register over TCP/IP network (自 R2022a 起) |
| TCP/IP Receive | 通过 TCP/IP 网络从远程主机接收数据 |
| TCP/IP Send | 通过 TCP/IP 网络将数据发送到另一个远程主机 |
| UDP Receive | Receive UDP packets from UDP host |
| UDP Send | Send UDP packets to UDP host |
模型设置
操作系统/调度器
| 基本速率任务优先级 | Static priority of model base rate task |
| 检测任务超限 | Detection of task overruns in Simulink model running on target hardware |
板参数
| 设备地址 | IP address of hardware board on network |
| 用户名 | Username for Linux operating system on hardware board |
| 密码 | Password for Linux username on hardware board |
编译选项
| 编译操作 | Define how Simulink responds when building models |
| 编译目录 | Directory in which to build code generated from Simulink models |
| 显示 | Display to use on NVIDIA board |
CAN
| CAN 总线速度(kBit/s) | CAN bus speed in kilobits per second (自 R2021b 起) |
| 允许所有报文 | Allow all CAN messages through acceptance filter (自 R2021b 起) |
| ID 类型 1 | CAN message frame format for filter 1 (自 R2021b 起) |
| 接受封装 1 | Acceptance mask value for filter 1 (自 R2021b 起) |
| 接受过滤器 1 | Acceptance filter value for filter 1 (自 R2021b 起) |
| 逆过滤器 1 | Inverse criterion to pass messages for filter 1 (自 R2021b 起) |
| ID 类型 2 | CAN message frame format for filter 2 (自 R2021b 起) |
| 接受封装 2 | Acceptance mask value for filter 2 (自 R2021b 起) |
| 接受过滤器 2 | Acceptance filter value for filter 2 (自 R2021b 起) |
| 逆过滤器 2 | Inverse criterion to pass messages for filter 2 (自 R2021b 起) |
| ID 类型 3 | CAN message frame format for filter 3 (自 R2021b 起) |
| 接受封装 3 | Acceptance mask value for filter 3 (自 R2021b 起) |
| 接受过滤器 3 | Acceptance filter value for filter 3 (自 R2021b 起) |
| 逆过滤器 3 | Inverse criterion to pass messages for filter 3 (自 R2021b 起) |
| ID 类型 4 | CAN message frame format for filter 4 (自 R2021b 起) |
| 接受封装 4 | Acceptance mask value for filter 4 (自 R2021b 起) |
| 接受过滤器 4 | Acceptance filter value for filter 4 (自 R2021b 起) |
| 逆过滤器 4 | Inverse criterion to pass messages for filter 4 (自 R2021b 起) |
SPI
| SPI0 CS0 总线速度(kHz) | Bus speed for NVIDIA Jetson SPI0 chip select 0 (自 R2026a 起) |
| SPI0 CS1 总线速度(kHz) | Bus speed for NVIDIA Jetson SPI0 chip select 1 (自 R2026a 起) |
| SPI1 CS0 总线速度(kHz) | Bus speed for NVIDIA Jetson SPI1 chip select 0 (自 R2026a 起) |
| SPI1 CS1 总线速度(kHz) | Bus speed for NVIDIA Jetson SPI1 chip select 1 (自 R2026a 起) |
外部模式
| 通信接口 | Transport layer for external mode to exchange data between development computer and hardware |
| 在后台线程中运行外部模式 | Force external mode engine in generated code to execute in background task |
| 记录缓冲区大小(以字节为单位) | Buffer size for logging data in Universal Measurement and Calibration Protocol (XCP)-based external mode |
| 端口 | Port number on hardware board |
| 详尽 | Enable view of external mode execution progress and updates in Diagnostic Viewer |
Modbus 属性
| 通信接口 | Type of communication interface that blocks use for Modbus communication (自 R2022a 起) |
| 模式 | Modbus mode of operation (自 R2022a 起) |
| 远程服务器 IP 端口号 | IP port number of Modbus client device on TCP/IP network (自 R2022a 起) |
| 本地 IP 端口号 | IP port number of Modbus server devices on TCP/IP network (自 R2022a 起) |
| 配置线圈 | Configure coil register parameters (自 R2022a 起) |
| 配置离散输入 | Configure discrete input register parameters (自 R2022a 起) |
| 配置保留寄存器 | Configure holding register parameters (自 R2022a 起) |
| 配置输入寄存器 | Configure input register parameters (自 R2022a 起) |
| 接收超时(毫秒) | Maximum time client waits for response from Modbus server (自 R2022a 起) |
MQTT
| 加密类型 | Encryption protocol to use for MQTT communication (自 R2023b 起) |
| 代理地址 | Address of MQTT broker (自 R2023a 起) |
| 端口 | TCP/IP port to use for MQTT connection (自 R2023b 起) |
| CA 服务器证书路径 | Name and location of file containing root certificates (自 R2023b 起) |
| 用户名 | Username for MQTT broker (自 R2023a 起) |
| 密码 | Password for MQTT broker (自 R2023a 起) |
| 客户端 ID | Unique identifier for client connected to MQTT broker (自 R2023a 起) |
主题
- Model Configuration Parameters for NVIDIA Hardware Board
Parameter and configuration options for creating and running applications on an NVIDIA hardware board.
- Open Block Library for NVIDIA Hardware
Locate Simulink block library for NVIDIA hardware.
- Accelerate Simulation Speed by Using GPU Coder (GPU Coder)
Achieve faster simulation for models that contain MATLAB Function blocks.
- Code Generation from Simulink Models with GPU Coder (GPU Coder)
Generate CUDA® code from Simulink models by using GPU Coder™.
- GPU Code Generation for Deep Learning Networks Using MATLAB Function Block (GPU Coder)
Simulate and generate code for deep learning models in Simulink using MATLAB Function blocks.
- GPU Code Generation for Blocks from the Deep Neural Networks Library (GPU Coder)
Simulate and generate code for deep learning models in Simulink using library blocks.
- 通过 Jetson 连接和使用 USB 转串行转换器
将 USB 转串行转换器连接到 NVIDIA Jetson™ 板。
- NVIDIA Jetson 板的串行端口映射
识别 NVIDIA Jetson 板上串行端口的端口名称。
- Read and Write Data over Serial Port on NVIDIA Jetson Platforms
This example shows how to use MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® to read and write serial data over the UART port on a Jetson board.
- MQTT 简介
MQTT 消息传递协议的基础知识。
精选示例
Capture and Stitch Together Images from Multiple Cameras on NVIDIA Jetson
Capture video from two cameras on an NVIDIA Jetson to create a composite image.
Deploy and Classify Webcam Images on NVIDIA Jetson Platform from Simulink
Deploy a Simulink® model on the NVIDIA® Jetson™ board for classifying webcam images. This example classifies images from a webcam in real-time by using the pretrained deep convolutional neural network, ResNet-50. The Simulink model in the example uses the camera and display blocks from the MATLAB® Coder™ Support Package for NVIDIA Jetson and NVIDIA DRIVE™ Platforms to capture the live video stream from a webcam and display the prediction results on a monitor connected to the Jetson platform.
Code Generation for a Deep Learning Simulink Model to Classify ECG Signals
Demonstrates how you can use powerful signal processing techniques and Convolutional Neural Networks together to classify ECG signals. We will also showcase how CUDA® code can be generated from the Simulink® model. This example uses the pretrained CNN network from the Classify Time Series Using Wavelet Analysis and Deep Learning example of the Wavelet Toolbox™ to classify ECG signals based on images from the CWT of the time series data. For information on training, see Classify Time Series Using Wavelet Analysis and Deep Learning (Wavelet Toolbox).
(GPU Coder)
Code Generation for a Deep Learning Simulink Model That Performs Lane and Vehicle Detection
Develop a CUDA® application from a Simulink® model that performs lane and vehicle detection using convolutional neural networks (CNN). This example takes the frames of a traffic video as an input, outputs two lane boundaries that correspond to the left and right lanes of the ego vehicle, and detects vehicles in the frame. This example uses the pretrained lane detection network from the Lane Detection Optimized with GPU Coder example of the GPU Coder™ product. For more information, see Lane Detection Optimized with GPU Coder (GPU Coder). This example also uses the pretrained vehicle detection network from the Object Detection Using YOLO v2 Deep Learning example of the Computer Vision Toolbox™. For more information, see 使用 YOLO v2 深度学习进行目标检测 (Computer Vision Toolbox).
(GPU Coder)
Deploy Signal Classifier on NVIDIA Jetson Using Wavelet Analysis and Deep Learning
Generate and deploy a CUDA® executable that classifies human electrocardiogram (ECG) signals using features extracted by the continuous wavelet transform (CWT) and a pretrained convolutional neural network (CNN).
(GPU Coder)
CAN Bus Communication on NVIDIA Jetson TX2 in Simulink
Deploy a Simulink® model that uses CAN communication for a deep learning application. The Simulink model in this example uses the CAN Transmit and CAN Receive blocks from the MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® Platforms to model a CAN bus system on the Jetson TX2 platform. The model uses the CAN bus to transmit the recognized traffic sign objects in a video frame from one CAN node to another CAN node.
Stream Images from NVIDIA Jetson Xavier NX Using Robot Operating System (ROS)
Stream images captured from a webcam on NVIDIA® Jetson™ Xavier NX board to the host computer using ROS communication interface.
Send and Receive Data over UDP on NVIDIA Jetson Platforms
Use MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® to send and receive UDP data over the network on a Jetson board.
Send and Receive MAVLink Packets on Jetson Boards
Use MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® to send and receive MAVLink packets on a Jetson board via serial from a Pixhawk® board.
Onboard Computer Path Planning Interface for PX4 SITL Deployable on NVIDIA Jetson
Demonstrates enabling and interfacing onboard computer path planning with PX4® Software-in-the-Loop (SITL).
Stream Camera, Depth and Semantic Segmentation Data from Unreal Engine to NVIDIA Jetson
Stream simulated camera, depth, and semantic segmentation label data from an Unreal Engine® scene to NVIDIA® Jetson™ hardware using the Video Send block in Simulink®. It then shows how to visualize incoming data streams on a monitor connected to the Jetson platform, by deploying separate models for each incoming data stream. The deployed models contain the Network Video Receive and SDL Video Display blocks from the MATLAB® Coder™ Support Package for NVIDIA Jetson and NVIDIA DRIVE® Platforms.
MODBUS TCP/IP Communication Between Client and Server Devices Using NVIDIA Jetson TX2 Hardware
Use the MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® Platforms to implement MODBUS® TCP/IP communication between MODBUS client and server devices. It also shows how to communicate between the two devices in four modes of operation, Client Read, Client Write, Server Read, and Server Write.
Deep Learning Vehicle Detector from IP Camera Stream on Jetson
Develop a CUDA® application from a Simulink® model that performs vehicle detection using convolutional neural networks (CNN). This example takes the IP camera stream as an input and detects vehicles in the frame. This example uses the pretrained vehicle detection network from the Object Detection Using YOLO v2 Deep Learning example of the Computer Vision Toolbox™. For more information, see 使用 YOLO v2 深度学习进行目标检测 (Computer Vision Toolbox).
Publish and Subscribe to Messages on ThingSpeak Using MQTT Blocks
Use Simulink blocks to communicate using Message Queuing Telemetry Transport (MQTT) on NVIDIA Jetson or NVIDIA DRIVE®.
Tune Motion Detection Algorithm Running on NVIDIA Jetson
Monitor and tune a Simulink model that implements a motion detection algorithm.
- 自 R2025a 起
- 打开实时脚本
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)














