-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getDATA() function keeps timing out #258
Comments
Unfortunately network issues are basically impossible to diagnose remotely. No one has ever been able to convincingly suggest that the XPC plugin is at fault, but it is odd that the other functions work. Posting your XPCLog.txt here so I can examine it would be the first step in trying to figure out what's going on. |
For sure. This is the log file. Up to 18:10:00, I was running the code outlined above with just the getDATA() function repeatedly. It looks like nothing is happening. After 18:10:00, I sent some data to X-Plane using the following code: ` data = [ I've also attached a couple more images of the in-game settings: From the log file, it looks like the sendDATA() function is working (albeit with some errors), but I don't think it's interfering with the readDATA() function, because if I run readDATA() first, all I get is the typical "INFO|SOCK|Send succeeded." log message. |
Interestingly, running just getDATA() on MATLAB tells me: MATLAB code: disp('xplaneconnect Example Script-'); readDATA(); (I'm also receiving the same timeout error on Python 2 as well. |
Okay, I have to admit that I'm confused here. The DATA functions have always been a source of issues, and we've never really been able to make them work well, but as I'm looking at the client code now, I don't understand how it's supposed to work at all (yes, I wrote the client code, but it's been years since I've looked at this particular code closely). It seems like it just blindly reads expecting something to be there, but I don't see anything in the plugin that would be constantly sending data, and even if it was it would break pretty much every other function in the client. |
Ah alright, unfortunately, I'm not too well versed in network theory. Regardless, the getDREF function seems to work fine, so I'm thinking I can probably just use that to collect the data I need? I'm not quite sure what the difference is between general data and dataref, but I think all the general data values can be accessed through getDREF. |
Yeah, my standard advice when people run into issues with DATA is that the DREF functions can do 99.9% of the work that DATA can. |
Thanks for the help. I do appreciate your time and this plugin. |
I can send data to X-Plane 11 using the plugin's functions, but everytime I try calling the getDATA() function, I get an error message saying that the UDP timed out.
My code (Python 3, Windows 10):
`import xpc
import numpy as np
client = xpc.XPlaneConnect() # UDP connector
client.readDATA()`
Error message:

Perhaps I'm not using the function correctly? Strangely, all the other functions seem to work such as getDREF().
The text was updated successfully, but these errors were encountered: