Main Content

Modeling

Target NVIDIA® hardware from Simulink®

Prepare Simulink model for hardware connection, and add blocks to support NVIDIA hardware.

Blocks

expand all

ALSA Audio CaptureCapture audio from sound card using 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 (Since R2021b)
SDL Video DisplayDisplay video on a monitor connected to the NVIDIA target
Video ReadRead video frames from multimedia file on NVIDIA target (Since R2024a)
Video SendSend video stream to remote hardware (Since R2023b)
GPIO ReadRead logical state of an input pin (Since R2021b)
GPIO WriteSet logical state of an output pin (Since R2021b)
CAN Receive Receive messages from the controller area network (CAN) bus (Since R2021b)
CAN TransmitTransmit messages on the controller area network (CAN) bus (Since 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 (Since R2026a)
SPI Register ReadRead from register of SPI device connected to NVIDIA Jetson board (Since R2026a)
SPI Controller TransferWrite to and read from SPI device connected to NVIDIA Jetson board (Since R2026a)
MQTT PublishPublish messages to MQTT broker on specified topic (Since R2023a)
MQTT SubscribeReceive messages from the MQTT broker for specified topic (Since R2023a)
Modbus TCP/IP Client ReadClient device reads data from server device register(s) over TCP/IP network (Since R2022a)
Modbus TCP/IP Client WriteClient device writes data to server device register(s) over TCP/IP network (Since R2022a)
Modbus TCP/IP Server ReadServer device reads data from server device register over TCP/IP network (Since R2022a)
Modbus TCP/IP Server WriteServer device writes data to server device register over TCP/IP network (Since R2022a)
TCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP SendSend data over TCP/IP network to another remote host
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 (Since R2022b)
BMI160Measure linear acceleration, angular rate, and temperature from BMI160 sensor (Since R2022b)
BMM150Measure magnetic field from BMM150 sensor (Since R2022b)

Model Settings

expand all

Operating system/scheduler

Base Rate Task PriorityStatic priority of model base rate task
Detect task overrunsDetection of task overruns in Simulink model running on target hardware

Board parameters

Device AddressIP address of hardware board on network
UsernameUsername for Linux operating system on hardware board
PasswordPassword for Linux username on hardware board

Build options

Build actionDefine how Simulink responds when building models
Build directoryDirectory in which to build code generated from Simulink models
DisplayDisplay to use on NVIDIA board

CAN

CAN Bus Speed (kBit/s)CAN bus speed in kilobits per second (Since R2021b)
Allow All MessagesAllow all CAN messages through acceptance filter (Since R2021b)
ID Type 1CAN message frame format for filter 1 (Since R2021b)
Acceptance Mask 1Acceptance mask value for filter 1 (Since R2021b)
Acceptance Filter 1Acceptance filter value for filter 1 (Since R2021b)
Inverse Filter 1Inverse criterion to pass messages for filter 1 (Since R2021b)
ID Type 2CAN message frame format for filter 2 (Since R2021b)
Acceptance Mask 2Acceptance mask value for filter 2 (Since R2021b)
Acceptance Filter 2Acceptance filter value for filter 2 (Since R2021b)
Inverse Filter 2Inverse criterion to pass messages for filter 2 (Since R2021b)
ID Type 3CAN message frame format for filter 3 (Since R2021b)
Acceptance Mask 3Acceptance mask value for filter 3 (Since R2021b)
Acceptance Filter 3Acceptance filter value for filter 3 (Since R2021b)
Inverse Filter 3Inverse criterion to pass messages for filter 3 (Since R2021b)
ID Type 4CAN message frame format for filter 4 (Since R2021b)
Acceptance Mask 4Acceptance mask value for filter 4 (Since R2021b)
Acceptance Filter 4Acceptance filter value for filter 4 (Since R2021b)
Inverse Filter 4Inverse criterion to pass messages for filter 4 (Since R2021b)

SPI

SPI0 CS0 Bus Speed (kHz)Bus speed for NVIDIA Jetson SPI0 chip select 0 (Since R2026a)
SPI0 CS1 Bus Speed (kHz)Bus speed for NVIDIA Jetson SPI0 chip select 1 (Since R2026a)
SPI1 CS0 Bus Speed (kHz)Bus speed for NVIDIA Jetson SPI1 chip select 0 (Since R2026a)
SPI1 CS1 Bus Speed (kHz)Bus speed for NVIDIA Jetson SPI1 chip select 1 (Since R2026a)

External mode

Communication interfaceTransport layer for external mode to exchange data between development computer and hardware
Run external mode in a background threadForce external mode engine in generated code to execute in background task
Logging buffer size (in bytes)Buffer size for logging data in Universal Measurement and Calibration Protocol (XCP)-based external mode
PortPort number on hardware board
VerboseEnable view of external mode execution progress and updates in Diagnostic Viewer

Modbus properties

Communication InterfaceType of communication interface that blocks use for Modbus communication (Since R2022a)
ModeModbus mode of operation (Since R2022a)
Remote Server IP port numberIP port number of Modbus client device on TCP/IP network (Since R2022a)
Local IP port numberIP port number of Modbus server devices on TCP/IP network (Since R2022a)
Configure CoilsConfigure coil register parameters (Since R2022a)
Configure Discrete InputsConfigure discrete input register parameters (Since R2022a)
Configure Holding registersConfigure holding register parameters (Since R2022a)
Configure Input registersConfigure input register parameters (Since R2022a)
Received timeout (ms)Maximum time client waits for response from Modbus server (Since R2022a)

MQTT

Encryption TypeEncryption protocol to use for MQTT communication (Since R2023b)
Broker AddressAddress of MQTT broker (Since R2023a)
PortTCP/IP port to use for MQTT connection (Since R2023b)
CA Server Certificate PathName and location of file containing root certificates (Since R2023b)
UsernameUsername for MQTT broker (Since R2023a)
PasswordPassword for MQTT broker (Since R2023a)
Client IDUnique identifier for client connected to MQTT broker (Since R2023a)

Topics

Featured Examples