<-- Back
sendSTRU
Send a MATLAB structure over UDP
Inputs
- stru: A MATLAB structure
- IP Address (optional): IP Address of the machine that will receive the data as a character array. Default is '127.0.0.1' (local machine)
- port (optional): Port on the receiving machine where the data will be sent. Default is 49009 (XPlaneConnect). In general use 49009 to send to the plugin
Outputs
- status: If there was an error. Status<0 means there was an error.
Use
1. import XPlaneConnect.*;
2. data = struct('a',[1:20],'b',1.853,'name','Example Structure');
3. #Send the data structure to port 49005 on the computer at IP address 172.0.100.54
4. status = sendSTRU( data, '172.0.100.54', 49005 );
Change Log
10/02/14: [CT] V0.9: Updated to work with updated xpcPlugin
08/01/13: [CT] Code created
<-- Back