0 votes
asked by (14 points)

I am trying to build a full motion flight simulator with XPlane, so my program needs to constantly send updating data through USB relays. I have figured out how to install plugins on XPlane already. I can check data and send it right now, but I need a function in my program (Visual Studio C++) that can CONSTANTLY gather and send data in the background of the program. I tried running a while loop with the condition running, and set running = false during the XPluginStop function, but it won't successfully load into XPlane, as it stalls when loading my plugin. Is there any way to grab and send data in the background of a program, perhaps through threading? XPlane has an option that can print this data constantly to a data.txt file, but I don't know how to access that data with my program. Thank you!

1 Answer

0 votes
answered by (18.4k points)
You could probably develop a plugin to do it, or try sending data via UDP. There is an article on how to set up UDP data transfer in the Instructions folder in your install > X-Plane Specs from Austin > Exchanging Data with X-Plane.rftd.

Welcome to X-Plane Q&A, where you can ask support questions and get answers from members of the community.

This site is for X-Plane support questions only. Please search for existing answers before posting your question. Off-topic questions will be locked.

If you’re new, you’ll need to register before asking your first question.

If your question is answered, click on the check mark to select the best response.

Categories

...