Main Content

Modeling

Prepare model for hardware connection, add blocks to support hardware protocols.

Blocks

expand all

Analog InputMeasure voltage of analog input pin
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
I2C Master ReadRead data from I2C slave device or I2C slave device register
I2C Master WriteWrite data to I2C slave device or I2C slave device 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 Master TransferWrite data to and read data from SPI slave device
SPI Register ReadRead data from SPI slave device register
SPI Register WriteWrite data to registers of SPI slave device
Modbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
Modbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
Modbus RS485 Server ReadServer device reads data from the server device register over RS485 network
Modbus RS485 Server WriteServer device writes data to server device register over RS485 network
HTS221 Humidity SensorMeasure relative humidity and temperature from HTS221 sensor
LIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor
LPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor
LSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor
ADXL34x SensorMeasure linear acceleration along axes of ADXL34x family of accelerometers
CAN ReceiveReceive message from CAN network
CAN TransmitTransmit 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
ThingSpeak WritePublish data to Internet of Things using ThingSpeak
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
ThingSpeak WritePublish data to Internet of Things using ThingSpeak
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

Topics