The X-Plane LSL Implementation Plugin allows real-time streaming of flight data from X-Plane to Lab Streaming Layer (LSL), making it easier to integrate with research applications, VR environments, neuroscience experiments, and other real-time data processing systems.
- Streams selected X-Plane datarefs in real-time via LSL.
- Configurable datarefs using a simple
config.txt
file. - Low-latency data transmission for real-time applications.
- Download the latest precompiled release.
- Extract the contents into
X-Plane 11/Resources/plugins/
.
The plugin reads flight data from X-Plane datarefs listed in config.txt
. Each dataref has a flag (1 for enabled, 0 for disabled). Modify config.txt
in X-Plane 11/Resources/plugins/LSL_XPlane_Plugin/
to customize data streaming.
sim/flightmodel/position/latitude 1
sim/flightmodel/position/longitude 1
sim/flightmodel/position/elevation 1
sim/flightmodel/position/indicated_airspeed 1
For recording LSL streams, we recommend using LabRecorder, a software tool designed to capture and log data from multiple LSL streams efficiently. You can download LabRecorder from the LSL GitHub repository.
Launch X-Plane, and the plugin will automatically load.
- Open Plugins > Plugin Admin in X-Plane.
- Look for LSL_XPlane_Plugin and ensure it is enabled.
- Check X-Plane Log.txt or use XPLMDebugString for debugging messages.
You can use LabRecorder to easily log your streamed data for later analysis. Alternatively, you can use Python with pylsl
to receive streamed data:
You can use Python with pylsl
to receive streamed data:
import pylsl
stream = pylsl.resolve_stream('name', 'XPlaneData')
inlet = pylsl.StreamInlet(stream[0])
while True:
sample, timestamp = inlet.pull_sample()
print(f"Received: {sample} at {timestamp}")
This project is licensed under the MIT License.
- ÆON lab, Auburn University, PI: Dr. Nicoletta Fala.
- X-Plane SDK for plugin development.
- Lab Streaming Layer (LSL) for real-time data integration.