Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Stream Input/Output

The example model "sldrtex_streamio" shows how to transfer data through UDP communication protocol using ASCII encoding. The model sends data within one computer, from one UDP port to another. You can modify the model to communicate between two computers by splitting this model into its send and receive parts and running the models on two computers. The yellow blocks are used to send the data, the blue blocks are used to receive the data. Then, please enter the IP addresses of the two computers into the appropriate fields in the Board Setup dialog.

How to run this model in Normal Mode:

  1. Double-click the orange button to switch to Normal Mode if needed.

  2. Start the real-time execution using Simulation->Run.

How to run this model in External Mode:

  1. Double-click the orange button to switch to External Mode if needed.

  2. Start the real-time execution using Simulation->Run. The model will automatically build, connect to Simulink in External Mode and start.

Was this topic helpful?