> For the complete documentation index, see [llms.txt](https://docs.spadnext.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spadnext.com/simulations/x-plane/dataref-tool.md).

# Dataref Tool

Now that we’ve taxied past the basics, it’s time to install the DataRef Tool—your new\
best friend when it comes to connecting SPAD.neXt with the deep inner workings of\
X-Plane. Think of it as your aircraft’s diagnostic scanner, letting you peek behind the\
curtain and see exactly what’s going on with all those mysterious datarefs.

**🧭 Step 1: Download the DataRef Tool**\
You can grab the latest version from a trusted X-Plane community site like the X-Plane.org forums. Just search for “DataRefTool” or “DataRef Editor” (note: not the same as DataRef Viewer, but they can work together). Make sure it’s compatible with your version of X-Plane.\
\
<https://datareftool.com/>

<figure><img src="/files/93EGFs4rlTe5XIerZJp4" alt=""><figcaption><p>Datareftool Homepage</p></figcaption></figure>

**📁 Step 2: Unzip and Install**\
Once downloaded, unzip the folder. Inside you’ll find a plugin folder—usually named something like DataRefTool with the version number. Note the latest version is **NOT compatible with Xplane 11**\
Drag and drop that folder into your X-Plane > Resources > plugins directory. That’s it! No complicated installer, no bloat—just good old-fashioned drag-and-drop.

<figure><img src="/files/BhMoP5n39tSbCi0gMX6j" alt=""><figcaption><p>Inside Datareftool Zip</p></figcaption></figure>

<figure><img src="/files/XN0QqPxhB2CEMpzio3v4" alt=""><figcaption><p>X-Plane Plugins Folder</p></figcaption></figure>

**🛫 Step 3: Fire Up X-Plane**\
Launch X-Plane, load into any aircraft (even the default Cessna if you're just testing things out), and then check the Plugins menu at the top. You should see DataRef Tool listed there, ready for duty.

<figure><img src="/files/I1gLmTUAX5iU8qoTBHh1" alt=""><figcaption><p>Datareftool Inside Xplane</p></figcaption></figure>

**🔍 Step 4: Verify It's Working**\
Click on the plugin, and a search window should pop up. From here, you can start typing in keywords (like lights, battery, gear, etc.) to see live values and interact with them in real time. If you’re seeing live data and clickable checkboxes, congrats—you’re in business!

<figure><img src="/files/9Jlf9Edmol52NmiROQ5P" alt=""><figcaption><p>Testing Datareftool</p></figcaption></figure>

**🧩 Bonus Tip:**\
Assign 1 button within X-plane to write the the drt\_last\_run\_commandrefs.txt &\
drt\_last\_run\_datarefs.txt files this will save you a lot of time. This will overwrite the existing files whilst in the simulator & Instead of rebooting the sim you can make your edits and reboot Spad.Next.<br>

<figure><img src="/files/YzfVdss78xUg00OM4gUa" alt=""><figcaption><p>Assigning A Button</p></figcaption></figure>

Pressing this button will then write 2 files to the following location.\
\X-Plane 12\Output\preferences

<figure><img src="/files/5WZ7JrpJPGFscSmFTqJV" alt=""><figcaption><p>Datareftool Files</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.spadnext.com/simulations/x-plane/dataref-tool.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
