Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Greetings Pete,

This is my first post here, and I want to start off by saying what a great job you have done interfacing FS via FSUIPC!

Now to my small but hopefully fixable problem. First, I tried searching these forums but could not come up with anything. I am beggining a small program that reads and records flight time (like many others), and I am monitoring the sim rate value within a timer event. I noticed that (and it MIGHT BE? my programming in-expertise :) but if I minimize FS 2004 or FS2002 while my program is running (which monitors the sim rate to be sure it is always 1x), all the sudden the sim rate changes from a normal value (1) [raw value divided by 256] to something like 1025 or higher? I aso noticed that the simulator seconds can change drastically to something like 12 or 13 to a number like 10003834? Wow.

Like said, it might be my crappy programming skills, but I don't know how I could change a value I am only strictly reading and spitting out the value of or copy of that value so this is why I am stumped.

P.S. I am resetting the variables before each timer event so I know the value = nothing before each read. Also, FYI I am programming in VB.net so using the Read/Get/Process methods. All other values I am reading (like LAT/LON, etc) seem fine after minimize.

Thanks for reading and hope someone can help me?

Posted

... I am monitoring the sim rate value within a timer event. I noticed that (and it MIGHT BE? my programming in-expertise :) but if I minimize FS 2004 or FS2002 while my program is running (which monitors the sim rate to be sure it is always 1x), all the sudden the sim rate changes from a normal value (1) [raw value divided by 256] to something like 1025 or higher? I aso noticed that the simulator seconds can change drastically to something like 12 or 13 to a number like 10003834? Wow.

The only important thing happening when you minimise FS is that the true frame rate is reduced (not necessarily the one FS reports in 0274, though that does indeed go a bit screwy). Since FSUIPC is working in some amount of synchronicity to the frame rate, this reduces the freqeuncy of updates FSUIPC is supplying.

However, that said, the Sim Rate at offset 0C1A most certainly stays reading the same value when FS is minimised.

I don't know where you are reading the "seconds" value, but the clock seconds value is contained in a byte, so cannot be as big as you say. The double floating point value at offset 0310 is certainly still counting up correctly when FS is minimsed.

Please check things using FSInterrogate, as I have just done -- that is why it is supplied! You don't need to trust your program, you can cross-check it easily.

Regards,

Pete

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.