主要内容

建模

在 Simulink® 中建模以支持 NVIDIA® 硬件

为硬件连接准备 Simulink 模型,并添加模块以支持 NVIDIA 硬件。

模块

全部展开

ALSA Audio Capture使用 ALSA 从声卡捕获音频
ALSA Audio PlaybackSend audio to sound card for playback using ALSA
Audio File ReadRead audio frames from an audio file
CameraCapture video from a USB or CSI camera connected to the NVIDIA target
Network Video ReceiveReceive video from a network RTP or IP camera RTSP stream (自 R2021b 起)
SDL Video DisplayDisplay video on a monitor connected to the NVIDIA target
Video ReadRead video frames from multimedia file on NVIDIA target (自 R2024a 起)
Video SendSend video stream to remote hardware (自 R2023b 起)
GPIO ReadRead logical state of an input pin (自 R2021b 起)
GPIO WriteSet logical state of an output pin (自 R2021b 起)
CAN Receive Receive messages from the controller area network (CAN) bus (自 R2021b 起)
CAN TransmitTransmit messages on the controller area network (CAN) bus (自 R2021b 起)
Serial ReadRead data from serial port
Serial WriteWrite data to serial port
SPI Register WriteWrite to register of SPI device connected to NVIDIA Jetson board (自 R2026a 起)
SPI Register ReadRead from register of SPI device connected to NVIDIA Jetson board (自 R2026a 起)
SPI Controller TransferWrite to and read from SPI device connected to NVIDIA Jetson board (自 R2026a 起)
MQTT PublishPublish messages to MQTT broker on specified topic (自 R2023a 起)
MQTT SubscribeReceive messages from the MQTT broker for specified topic (自 R2023a 起)
Modbus TCP/IP Client ReadClient device reads data from server device register(s) over TCP/IP network (自 R2022a 起)
Modbus TCP/IP Client WriteClient device writes data to server device register(s) over TCP/IP network (自 R2022a 起)
Modbus TCP/IP Server ReadServer device reads data from server device register over TCP/IP network (自 R2022a 起)
Modbus TCP/IP Server WriteServer 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 SendSend UDP packets to UDP host
BME280Measure barometric air pressure, relative humidity, and temperature from BME280 sensor (自 R2022b 起)
BMI160Measure linear acceleration, angular rate, and temperature from BMI160 sensor (自 R2022b 起)
BMM150Measure magnetic field from BMM150 sensor (自 R2022b 起)

模型设置

全部展开

操作系统/调度器

基本速率任务优先级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 类型 1CAN message frame format for filter 1 (自 R2021b 起)
接受封装 1Acceptance mask value for filter 1 (自 R2021b 起)
接受过滤器 1Acceptance filter value for filter 1 (自 R2021b 起)
逆过滤器 1Inverse criterion to pass messages for filter 1 (自 R2021b 起)
ID 类型 2CAN message frame format for filter 2 (自 R2021b 起)
接受封装 2Acceptance mask value for filter 2 (自 R2021b 起)
接受过滤器 2Acceptance filter value for filter 2 (自 R2021b 起)
逆过滤器 2Inverse criterion to pass messages for filter 2 (自 R2021b 起)
ID 类型 3CAN message frame format for filter 3 (自 R2021b 起)
接受封装 3Acceptance mask value for filter 3 (自 R2021b 起)
接受过滤器 3Acceptance filter value for filter 3 (自 R2021b 起)
逆过滤器 3Inverse criterion to pass messages for filter 3 (自 R2021b 起)
ID 类型 4CAN message frame format for filter 4 (自 R2021b 起)
接受封装 4Acceptance mask value for filter 4 (自 R2021b 起)
接受过滤器 4Acceptance filter value for filter 4 (自 R2021b 起)
逆过滤器 4Inverse 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 起)
客户端 IDUnique identifier for client connected to MQTT broker (自 R2023a 起)

主题

精选示例