メインコンテンツ

モデル化

Simulink® から NVIDIA® ハードウェアをターゲットとする

ハードウェア接続用の Simulink モデルを準備し、NVIDIA ハードウェアをサポートするブロックを追加します。

ブロック

すべて展開する

ALSA Audio CaptureALSA を使用してサウンド カードからオーディオを取得する
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 Bus Speed (kBit/s)CAN bus speed in kilobits per second (R2021b 以降)
Allow All MessagesAllow all CAN messages through acceptance filter (R2021b 以降)
ID Type 1CAN message frame format for filter 1 (R2021b 以降)
Acceptance Mask 1Acceptance mask value for filter 1 (R2021b 以降)
Acceptance Filter 1Acceptance filter value for filter 1 (R2021b 以降)
Inverse Filter 1Inverse criterion to pass messages for filter 1 (R2021b 以降)
ID Type 2CAN message frame format for filter 2 (R2021b 以降)
Acceptance Mask 2Acceptance mask value for filter 2 (R2021b 以降)
Acceptance Filter 2Acceptance filter value for filter 2 (R2021b 以降)
Inverse Filter 2Inverse criterion to pass messages for filter 2 (R2021b 以降)
ID Type 3CAN message frame format for filter 3 (R2021b 以降)
Acceptance Mask 3Acceptance mask value for filter 3 (R2021b 以降)
Acceptance Filter 3Acceptance filter value for filter 3 (R2021b 以降)
Inverse Filter 3Inverse criterion to pass messages for filter 3 (R2021b 以降)
ID Type 4CAN message frame format for filter 4 (R2021b 以降)
Acceptance Mask 4Acceptance mask value for filter 4 (R2021b 以降)
Acceptance Filter 4Acceptance filter value for filter 4 (R2021b 以降)
Inverse Filter 4Inverse criterion to pass messages for filter 4 (R2021b 以降)

SPI

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

エクスターナル モード

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
端子Port number on hardware board
詳細Enable view of external mode execution progress and updates in Diagnostic Viewer

Modbus プロパティ

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

MQTT

Encryption TypeEncryption protocol to use for MQTT communication (R2023b 以降)
ブローカー アドレスAddress of MQTT broker (R2023a 以降)
端子TCP/IP port to use for MQTT connection (R2023b 以降)
CA Server Certificate PathName 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 以降)

トピック

注目の例