Difference between revisions of "UDP Communications between Target and Host PC"

From Mech
Jump to navigationJump to search
Line 6: Line 6:
==Sample UDP Models==
==Sample UDP Models==
Sample Mathworks Models:[[Media:UDP_Mathworks_sample_models.zip|Mathworks UDP sample models.]]
Sample Mathworks Models:[[Media:UDP_Mathworks_sample_models.zip|Mathworks UDP sample models.]]

===Quick and Dirty Data Logging Model===
Here is a crude and simple system that will use the Host PC to log data sent from the Target PC. Load udpsend.mdl onto the Target PC, and run udprec.mdl in Simulink on the Host PC. The target PC will send a timestamp and a 3-by-3 matrix of data; the host PC will receive this data, record the data into the workspace, and print it out in the MATLAB command prompt in real time.

Download the files here: [[Media:UDP_logging_sample.zip|UDP sample.]]

Revision as of 23:30, 2 June 2006

Mathworks UDP Documentation

Click here to read Mathworks's documentation on UDP communications in XPC Target:UDP Documentation.

Sample UDP Models

Sample Mathworks Models:Mathworks UDP sample models.

Quick and Dirty Data Logging Model

Here is a crude and simple system that will use the Host PC to log data sent from the Target PC. Load udpsend.mdl onto the Target PC, and run udprec.mdl in Simulink on the Host PC. The target PC will send a timestamp and a 3-by-3 matrix of data; the host PC will receive this data, record the data into the workspace, and print it out in the MATLAB command prompt in real time.

Download the files here: UDP sample.