Main Content

Direct Interface Communication in Simulink

Send and receive data in Simulink® models

The Instrument Control Toolbox™ provides blocks for communicating with instruments and using the serial, TCP/IP, and UDP interfaces in Simulink. The blocks in the Instrument Control Toolbox Block Library and examples showing how to use them are listed below.

Blocks

Query InstrumentQuery or read instrument data
To InstrumentSend simulation data to instrument
Serial ConfigurationConfigure parameters for serial port
Serial Receive Receive binary data over serial port
Serial SendSend binary data over serial port
TCP/IP ReceiveReceive data over TCP/IP from specified remote machine
TCP/IP SendSend data over TCP/IP to specified remote machine
UDP ReceiveReceive data over UDP network from specified remote machine
UDP SendSend data over UDP network to specified remote machine

Topics

Open Instrument Control Toolbox Block Library

Access the Instrument Control Toolbox block library in two ways.

Send and Receive Data Through Serial Port Loopback

Send data to a loopback device connected to your computer and read that data back into a model.

Send and Receive Data over TCP/IP Network

Send data to an echo server using TCP/IP and read that data back into a model.

Featured Examples