• 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.

Fenix Variable from MDCU Perf page

Messages
11
Country
france
Dear pilot,
I’m new and happy to join you! I’m looking for information about the V1, V2, and VR values in the Fenix Variable from the MDCU Perf page. I’m working in C++ and need these values for a command called AddToDataDefinition(hSimConnect, DEFINITION_SIMDATA, “V1 SPEED”, “knots”).

I hope someone can help me with this.🥰

Thanks,
Mathis
 
And if you have the complet Fenix A320 commands list, it could be very nice please.
I’ve found FNX32X_interior.xml file, but what’s the variable name can be used with AddToDataDefinition ?

<UseTemplate Name="FNX32X_Interact_Button_Momentary_Template">
<ANIM_NAME>Electrical_Galley_Cabin_Button</ANIM_NAME>
<VAR_NAME>S_OH_ELEC_GALY</VAR_NAME>
<WWISE_EVENT_1>Generic_Button_Held_In_2</WWISE_EVENT_1>
<WWISE_EVENT_2>Generic_Button_Released_2</WWISE_EVENT_2>
</UseTemplate>
 
I don't believe you can add LVARs to data definitions as they're local to gauge(s).
 
Stand-alone applications can not gain access to internal gauge variables. The only code that can access internal gauge variables are gauges. To access internal gauge variables from a stand-alone app, you would have to create a gauge that can access the variables and the provide them to the external app. The sim will not do that on its own.
 
I don't work with FS202x for many reasons... so I'm not an expert on it... however, it doesn't matter what version of FS you're trying to get the information from... the approach is the same. You MUST have a gauge loaded inside the aircraft's panel that communicates the LVARS via whatever method you choose, that the sim allows, to pass them to an external application.
 
I don't work with FS202x for many reasons... so I'm not an expert on it... however, it doesn't matter what version of FS you're trying to get the information from... the approach is the same. You MUST have a gauge loaded inside the aircraft's panel that communicates the LVARS via whatever method you choose, that the sim allows, to pass them to an external application.
Yes you are right, it is what WASM does, but I can’t found a C++ sample can show how it works. I’m on FS2024.
 
WASM is the result of C/C++ code written for gauges in FS202x and compiled by a plugin for Visual Studio C/C++.
 
Wasm module does not need to be a gauge. It can be a stand alone module, and have access to any and all SimVars, AND LVARS. Ive been doing this for ages.

You can most definitely add LVARS to data definitions, in fact, thats the only way to do it. These LVARS can then be accessible throughout the sim, aither through XML gauges, through in-game XML/HTML/JS panels, or through other SimConnect clients.

I've posted a WASM LVAR example of how to do this in this forum. Look for it somewhere around here, about 2-3 months ago.

EDIT:
Here is the link:
Post in thread 'I met a new friend and we are making an App together' https://www.fsdeveloper.com/forum/t...are-making-an-app-together.459512/post-930257
 
Last edited:
Wasm module does not need to be a gauge. It can be a stand alone module, and have access to any and all SimVars, AND LVARS. Ive been doing this for ages.

You can most definitely add LVARS to data definitions, in fact, thats the only way to do it. These LVARS can then be accessible throughout the sim, aither through XML gauges, through in-game XML/HTML/JS panels, or through other SimConnect clients.

I've posted a WASM LVAR example of how to do this in this forum. Look for it somewhere around here, about 2-3 months ago.

EDIT:
Here is the link:
Post in thread 'I met a new friend and we are making an App together' https://www.fsdeveloper.com/forum/t...are-making-an-app-together.459512/post-930257
Thanks Misho. I’m away for my job. I’ll check soon I’ll be back, large thanks !!!!!
 
Dear Misho,

I need your help understanding a part of my problem.

I want to create an EXE that can read Fenix A320 LVAR and play a sound when I need it (the sound is under control for me). I’m using FS2024.

My understanding is that a classic Windows EXE can’t access Fenix A320 (or other) LVAR. To do this, I need to create a WASM module that can read and write them. Then, my EXE needs to use SimConnect to connect to my WASM module to read and write the Fenix LVAR.

Let me know if I’m wrong and how I can progress on this topic. For example, could I start by using a specific SDK sample?

Thanks and cheers,
Mathis
 
Dear Misho,

I need your help understanding a part of my problem.

I want to create an EXE that can read Fenix A320 LVAR and play a sound when I need it (the sound is under control for me). I’m using FS2024.

My understanding is that a classic Windows EXE can’t access Fenix A320 (or other) LVAR. To do this, I need to create a WASM module that can read and write them. Then, my EXE needs to use SimConnect to connect to my WASM module to read and write the Fenix LVAR.

Let me know if I’m wrong and how I can progress on this topic. For example, could I start by using a specific SDK sample?

Thanks and cheers,
Mathis
Can you please follow my advice from our private conversations, and first compile "WASM standalone" sample?

You are not understanding what does what.

You can do C++ SimConnect modules in EXE OR WASM. Except for minor structure differences, code is identical, but you cant pack EXE for marketplace, only WASM. But, they will both do exactly the same thing: connect to the sim and let you read and set different sim vars, or define, read and pass LVARS.
 
Really ??? I’ve asked to Chat GPT and it reply me impossible to access to Fenix LVAR from an EXE 😳
I’ll try you comments on the forum, large thanks and sorry about my dummy questions.
 
Really ??? I’ve asked to Chat GPT and it reply me impossible to access to Fenix LVAR from an EXE 😳
I’ll try you comments on the forum, large thanks and sorry about my dummy questions.
Dont rely on AI. It does not think for itself. It found an incorrect answer from someone, and it reguretated it.
 
Just to be clear, no an .EXE can not access LVARs directly. You must have a gauge/module that is running within the sim and it can then connect with the .EXE to interact with the LVARs indirectly. So, the AI was, technically, correct.
Stop confusing Mathis, not sure they need help with that part :-). It has been possible to use LVars via SimConnect since FS20 SU 12. It is documented at the bottom of the AddToDataDefinition docs.
 
Hello everyone, I’d like to express my gratitude. After enduring a long and challenging set of tests, I’ve successfully read LVAR from a simple EXE without using a gauge. It’s working very well, although I’ll need some time to fully understand it.

I have one more question: how can I determine when:
- FS starts a new flight
- FS is in pause
- FS quits a flight?

Apart from the challenge, I’ll also need to find the GSX Pro LVAR and have the documentation. 🤔

Cheers and large thanks,
Mathis
 
Hello everyone, I’d like to express my gratitude.

I have one more question: how can I determine when:
- FS starts a new flight
- FS is in pause
- FS quits a flight?
Check the SimVar portion of SDK documentation. There are SimVars for each and every one of those sim events.
 
Back
Top