Direct Interface Communication in Simulink
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.
|Configure parameters for serial port
|Receive binary data over serial port
|Send binary data over serial port
|Receive data over TCP/IP network from specified remote machine
|Send data over TCP/IP network to specified remote machine
|Receive data over UDP network from specified remote machine
|Send data over UDP network to specified remote machine
|Communicate with VISA resources (Since R2023b)
- Open Instrument Control Toolbox Block Library
Access the Instrument Control Toolbox block library in two ways.
- 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.
- Enable Blocking Mode in Receive and Send Blocks
Make your simulation wait while the block receives or sends data.
- Timing in Hardware Interface Models
Determine block execution frequency and relate to real-world time.