• 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 SimConnect and WASM - Reading Custom LVARS

Messages
16
Country
portugal
Hello everyone and good afternoon!

I am working on an ACARS system using SimConnect only, i have produced 2 other similar programs previously using FSUIPC but having the possibility to use managed code to interact directly with MSFS i had to try the direct approach. I have already read quite a lot on the subject and ended up using parts of a library (CTrue.Fsconnect) to successfully read data from the sim. All fine until now.

I have then reached the point where i need to read some custom data from the 737 and A320 (and more in the future i assume) and that includes Landing Lights, Landing Gear, Flaps position, etc, but ALL simple reads, get the values and act upon those. I don't want to write anything to the sim.

From what i have read, this is not possible by using SimConnect alone and i would have to build a custom C++ WASM module in order to read these custom variables. This sounds awkward, but the Window handle to trade messages with the sim already alerted me that odd things can happen in this SimConnect world. Anyway...

Am i right in assuming that a C++ WASM module is indeed required? I have zero C++ experience being an Angular architect and experienced to an extent with .NET and Z80 assembly (lol) only, so this sounds like i'm going to have a problem, unless there is already something that i can use to read custom LVARS from the simulator.

Does anyone know about such a DLL/Project/Commented C++ i can try and have a go at modifying and compiling on my own?

Any help is highly appreciated.

Thanks loads,
Nuno
 
Why is this not possible with SimConnect? I have never heard that SimConnect could not return the state of lights, gear and flaps before.
 
Both PMDG's 737 and FenixSim's A320 use custom LVARS which i don't seem to have access to by using regular SimConnect. I'd be happy to be completely wrong.
 
PMDG has a data definition defined in their SDK which utilizes SimConnect. As for FenixSim... know nothing about them.
 
i'll dig around, see if their LVARS can indeed be read from a SimConnect session. Thanks for the HU.
 
It is impossible to read an LVAR through SimConnect in MSFS, i just asked an experienced developer. Either through a C++ WASM module which then relays data to the managed client or through a javascript module in the simulator which also has access to everything.

I'll just use FSUIPC. Sigh.
 
A data definition is not an LVAR. Have you even bothered to look at the SDK provided by PMDG for their 737?
 
I cannot find any SDK for MSFS's 737. And i do have a lot of questions/doubts mostly due to documentation unavailability.
 
Back
Top