Communicating with Instruments or Applications Using TCP/IP
MATLAB and Simulink support TCP/IP communication through Instrument Control Toolbox. TCP/IP is used to connect to remote software applications and is commonly used for communicating with instruments.
Communicate with Applications using TCP/IP from MATLAB
You can use MATLAB to communicate with remote applications not developed in MATLAB using TCP/IP support provided by the toolbox. You can use Simulink to communicate with remote applications using Simulink blocks provided by the toolbox. These blocks enable you to query an application using TCP/IP to incorporate live data into your model and to send live data from your Simulink model to an application using TCP/IP.
Resources
- MATLAB TCP/IP (Code example of communicating with a remote application)
- Collect and Plot Streaming Data from a TCPIP Server (Code example)
Communicate with Instruments using TCP/IP from MATLAB
Instrument Control Toolbox enables MATLAB to control, configure, and transfer data with instrumentation over TCP/IP. Once data is in MATLAB, you can analyze and visualize the data for tasks such as signal processing, statistical analysis, digital filtering, and curve fitting. You can also create graphical interfaces for collecting and analyzing your data and automating tests.
Simulink can communicate with instruments using the Simulink blocks provided by the toolbox. These blocks enable you to query an instrument using TCP/IP to incorporate live data into your model and to send live data from your Simulink model to an instrument using TCP/IP.