• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 2020 SDK simconnect

Messages
129
Country
unitedstates
I am able to get a lot of data from simconnect, but I can not get any result trying to read the throttle position , or engine rpm … does anyone else have this data successfully?

Also, Am I correct in assuming that if I set the Landing Gear (GEAR POSITION) to 1 that the plane will lower it’s landing gear?
thanks

(I am just beginning to work with SDK , if you can point me to reference materials or similar discussion I would appreciate it)
 
Hello, are you still performing the issues?

Actually I'm playing with SimConnect (FS2020) too and I cannot find a way to get several information/variables for example the XPDR mode (on, off, test, alt standby) and the ident status.
Do you have any clue about how to do it?
 
yes, I've made a lot of progress with reading variables, but not on setting them .. Has anyone had success setting the throttle, increasing or decreasing or using KEY_THROTTLE_CUT?
 
Hi David. I've figured out how to set variables like gear, throttle, mixture etc...ran into a few things to check when trying. First: make sure you dont have a controller overriding your programmatic inputs :( Second: to set a value you have to pass a data struct with the same definition and ID of your already registered request. This has some big impact on how you want to manage registering your requests. I've only just sorted this out myself and it appears I have a lot of code refactoring to do :(
 
Hello,

I'm actually working on a way to catch MSFS2020 Airplane's values in the game. SimConnect provides a lot of stuff but it is a bit slow for what I aim.

I would like to get instrumentation values and plane's physics with a minimal rate of 60 times/second.
With SimConnect (python version : https://pypi.org/project/SimConnect/), I'm able to get 1 Variable approximately 20 times/second.
If Itry to catch a second variable, the rate decreases to 15Hz.
I've tried to change a bit the original code to shorten the loop timing.
It seems that reading the SimConnect.dll file takes a lot of time...


Any idea to reach my goal?
In fact I don't need all the GUI provided with it, so maybe SimConnect is not the good way to proceed?

Thanks,
NeoB0b
__________
By the way, I'm a bit a newbie, I actually manage to developp little things with Python3, but doesn't know very well .dll stuff and shared memory ways to work.
 
I will point out that most of the data you seek doesn't update at a 60hz rate.
 
Hi WarpD,
Thanks for your answer.

For the game itself, it has to be updated as the same rate than what is displayed on the screen right?
For example, for the instrumentations displayed onboard, it is updated smoothly, so why shouldn't it be possible to catch it with this rate?
 
Hi WarpD,
Thanks for your answer.

For the game itself, it has to be updated as the same rate than what is displayed on the screen right?
For example, for the instrumentations displayed onboard, it is updated smoothly, so why shouldn't it be possible to catch it with this rate?

The Simconnect DLL is not a native tool of MSFS2020. It would appear to me that it is opening a TCP pipeline with the simulator and uses tx/rx packets to communicate. The question that I have for you is why do you need these variables updated so frequently? If it is a matter of creating smooth UI transitions, you should entertain doing some type of easing in your UI animation. That is a much more performant solution.
 
The Simconnect DLL is not a native tool of MSFS2020. It would appear to me that it is opening a TCP pipeline with the simulator and uses tx/rx packets to communicate. The question that I have for you is why do you need these variables updated so frequently? If it is a matter of creating smooth UI transitions, you should entertain doing some type of easing in your UI animation. That is a much more performant solution.

I'm developping a dynamic simulator. The higher frequency I can get, the smoother behaviour it will perform.
By the way, do you think it can be done more efficiently by creating an add-on with the MSFS SDK?
 
What do you mean by a dynamic simulator? MSFS202 IS a dynamic simulator. Are you trying to build graphical representation (or other indicator) of an aircraft panel that gets updated by the data from MSFS?
 
Last edited:
I mean moving a cockpit, incluing a seat with somebody on it, and screens, Yoke, etc....
Same thing as this, but with a yoke : Youtube Video Simersion G2X.

I've already done it with Xplane 11 through UDP interface, and I'm trying to do the same for MSFS2020.
 
And what rate were you reading UDP packets at from Xplane? Do you know what the difference is between UDP and TCP? There is still SOME piece of software that is communicating to the control board of the hydraulic platform and such. I assure you that the control board doesn't interpret raw data and act upon it. There is some internal function that translates the data changes into an easing type solution. Furthermore, what is the point of reading the data so quickly if you are more likely limited by the rate at which your mechanical parts can move? I'm willing to help you out, but something is not adding up here... What is your programming background? Are you familiar with the concept of software abstraction layers? Because it would appear that you have married yourself to an approach that is poorly designed here... P.S. If you have it working in XPLANE11, what are you having difficulty with in regard to MSFS? Merely consuming the data from SimConnect?
 
For the game itself, it has to be updated as the same rate than what is displayed on the screen right?
For example, for the instrumentations displayed onboard, it is updated smoothly, so why shouldn't it be possible to catch it with this rate?
That's not true at all. Frame rate has nothing to do with simulation rate, nor should it ever. A great deal of simulation data is updated at around 18hz, not 60hz. A great deal of it doesn't need to update any faster. Some aspects are updated much quicker, such as engine data, position data, etc. But not all. Controller input is only scanned at 6hz.
And I never said you can't capture at 60hz... I stated that not all data is updated at 60hz.
 
New to FS2020 from X-Plane. Building a bezel for popped out G1000 PFD/MFD. There are no key events to toggle for selecting Com 1 / Com 2 or Nav 1/Nav 2 for tuning frequencies . So I need to keep track whether 1 or 2 is selected for com and nav so I know which frequencies to set when the knobs are manipulated.

Is there a simconect variable to track which is selected? Any other strategy you might suggest?
 
@Russ Barlow
New to FS2020 from X-Plane. Building a bezel for popped out G1000 PFD/MFD. There are no key events to toggle for selecting Com 1 / Com 2 or Nav 1/Nav 2 for tuning frequencies . So I need to keep track whether 1 or 2 is selected for com and nav so I know which frequencies to set when the knobs are manipulated.

Is there a simconect variable to track which is selected? Any other strategy you might suggest?

Have you tried "COM STATUS:index "?
 
Yes but it only tells if the com 1
or 2 running or not powered or failed. I need to know which com is selected for tuning with the com frequency knobs. Pushing the knob toggles between stby com1 and stby com2 for tuning. MSFS seems to have no variables or events for these inputs.
 
Back
Top