CXA001 Posted July 12, 2016 Report Posted July 12, 2016 I am in the progress of writing and ACARS program (what a task!) and I have a question. If my application is running directly on the flight sim PC and the flight sim crashes (or my application loses connection), my application catches the exception and displays a warning i.e. Lost connection with your fight simulator... However, if the flight sim crashes and my application is running via widefs on a secondary PC, this doesn't happen as widefs is still running. Is there an offset that I can monitor for widefs to see if it is still connected to the flight sim or do you have any other ideas on how to go about this?
Pete Dowson Posted July 12, 2016 Report Posted July 12, 2016 Take a look at offset 337E. You'd need to check that it changes over a reasonable period. Sometimes FS being totally busy looks the same as a crash or hang. Pete
CXA001 Posted July 12, 2016 Author Report Posted July 12, 2016 Hi Pete, Thanks for the quick response. If I understand correctly, I would create a variable with the previous value of 337E and basically have a timer (with a reasonable period of time) that would compare the previous value to the current one. The current value should always be greater than the previous one. If it isn't, basically I would have my application prompt the pilot to check his connection to the flight simulator and either try again or quit. Am I understanding the use of the 337E offset?
Pete Dowson Posted July 12, 2016 Report Posted July 12, 2016 11 minutes ago, CXA001 said: The current value should always be greater than the previous one. No, just different. It count cycle around once the value reaches capacity. The only thing to see is that is is changing. If it isn't for a while, the connection isn't currently operative (though of course it may reconnect). Pete
CXA001 Posted July 12, 2016 Author Report Posted July 12, 2016 Good thing I asked. :) Ok, so as long as the previous value is not equal to the current one. Much appreciate it and thanks again for the quick response. Back to coding... Marc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now