주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

모델링

하드웨어 연결을 위한 모델을 준비하고 하드웨어 프로토콜을 지원하기 위한 블록을 추가

하드웨어 연결을 위한 Simulink® 모델을 준비하고, 하드웨어 프로토콜을 지원하는 블록을 추가하고, 다양한 응용 사례를 다루는 참조 예제를 살펴보십시오.

블록

모두 확장

Analog InputMeasure voltage of analog input pin
Analog OutputGenerate voltage on the specified analog output pin in volt (V) (R2023a 이후)
Digital ReadRead logical state of digital input pin
Digital WriteSet logical state of digital output pin
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine (R2021a 이후)
I2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
PWM OutputGenerate square wave on the specified output pin
SCI ReadRead N-by-1 array of data on UART
SCI WriteSend N-by-1 array of data to UART
SPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register ReadRead data from SPI peripheral devices register
SPI Register WriteWrite data to registers of SPI peripheral devices
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
CAN WriteWrite message to CAN network
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.

추천 예제