Main Content

モデル化

ハードウェア接続用のモデルの準備、ハードウェア プロトコルをサポートするためのブロックの追加

ブロック

すべて展開する

Analog InputMeasure voltage of analog input pin
Analog OutputGenerate voltage on the specified analog output pin in volt (V) (R2023a 以降)
Digital Readデジタル入力ピンの論理状態を読み取り
Digital Writeデジタル出力ピンの論理状態を設定
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine (R2021a 以降)
I2C Controller ReadI2C 周辺デバイスまたは I2C 周辺デバイス レジスタからデータを読み取る
I2C Controller WriteI2C 周辺デバイスまたは I2C 周辺デバイス レジスタにデータを書き込む
PWM Output指定された出力ピンの矩形波を生成
SCI ReadUART の N 行 1 列の配列データを読み取る
SCI WriteUART に N 行 1 列の配列データを送信
SPI Controller TransferSPI 周辺デバイスに対するデータの書き込みとデータの読み取り
SPI Register ReadSPI 周辺デバイス レジスタからデータを読み取る
SPI Register WriteSPI 周辺デバイスのレジスタにデータを書き込む
Modbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network (R2021b 以降)
Modbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network (R2021b 以降)
Modbus RS485 Server ReadServer device reads data from the server device register over RS485 network (R2021b 以降)
Modbus RS485 Server WriteServer device writes data to server device register over RS485 network (R2021b 以降)
HTS221 Humidity SensorMeasure relative humidity and temperature from HTS221 sensor (R2021b 以降)
LIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (R2021b 以降)
LPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor (R2021b 以降)
LSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (R2021b 以降)
ADXL34x SensorMeasure linear acceleration along axes of ADXL34x family of accelerometers (R2022a 以降)
BMI160 IMU SensorMeasure linear acceleration, angular rate, and temperature from BMI160 sensor (R2023a 以降)
VL53L0X Time of Flight SensorMeasure distance to a target object (R2023a 以降)
LIS3DH Accelerometer SensorMeasure linear acceleration, voltage, and temperature from LIS3DH sensor (R2023b 以降)
CCS811 Air Quality SensorMeasure equivalent CO2 (eCO2) and the equivalent total volatile organic compound concentration (eTVOC) (R2023b 以降)
CAN ReceiveReceive message from CAN network (R2021b 以降)
CAN TransmitTransmit message to CAN network (R2021b 以降)
TCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP SendSend data over TCP/IP network to remote host
ThingSpeak ReadRead data stored in ThingSpeak channel (R2021b 以降)
ThingSpeak WritePublish data to Internet of Things using ThingSpeak (R2021b 以降)
UDP ReceiveReceive UDP packets from UDP host
UDP SendSend UDP packets to UDP host
CAN ReadRead message from CAN network (R2020b 以降)
CAN WriteWrite message to CAN network (R2020b 以降)
TCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP SendSend data over TCP/IP network to remote host
ThingSpeak ReadRead data stored in ThingSpeak channel (R2021b 以降)
ThingSpeak WritePublish data to Internet of Things using ThingSpeak (R2021b 以降)
UDP ReceiveReceive UDP packets from UDP host
UDP SendSend UDP packets to UDP host
Byte PackConvert input signals to 8-, 16-, or 32-bit vector
Byte UnpackUnpack 8-, 16-, or 32-bit input vector to multiple output vectors
Byte ReversalReverse little-endian data for big-endian processor
Memory CopyCopy to and from memory section
Protocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (R2023a 以降)
Protocol DecoderDecode a uint8 byte stream by specifying the packet structure (R2023a 以降)

トピック

トラブルシューティング

Workaround for Interrupt Workflow with Sensors

This topic helps you with the workaround for interrupt workflow in sensors.