Skip to content

selectDATA

Jason Watkins edited this page May 8, 2015 · 2 revisions

Choose which rows of data X-Plane will export over UDP.

Syntax

Language Signature
C Not Supported
MATLAB selectDATA( rows, socket )
Java void selectDATA(int[] rows)
Python selectDATA(rows)
Parameters

rows: The row numbers that X-Plane should export.

socket (MATLAB): An optional reference to a socket opened with openUDP that should be used to send the command.

Exceptions

C Error Code Java Exception Python Error Description
  •       |IOException   |OSError     |The client is unable to send the command
    

Examples

MATLAB

import XPlaneConnect.*

% Request that X-Plane export the gear status row
result = selectDATA([14]);
Java
import gov.nasa.xpc.XPlaneConnect;

try(XPlaneConnect xpc = new XPlaneConnect())
{
    // Request that X-Plane export the gear status row
    xpc.selectDATA(new float[] {14});
}

Python

import xpc

with xpc.XPlaneConnect() as client:
    # Request that X-Plane export the gear status row
    client.selectDATA([14]);