WRiker2701 Posted December 11, 2022 Report Posted December 11, 2022 Hi i'm working on a C# plugin for Voice Attack which communicates internally with MSFS variables, but i'm a bit of a noob in this so i've been struggling a little bit. So i integrated FSUIPCs dll into my project, and i managed to code the way to set controls in the aircraft through FSUIPCConnection.SendControlToFS and the PMDG_737_NGX_Control enum. That one was pretty simple. My issue now is to find the way to retrieve the value of a condition variable (the ones listed in the PMDG 737 SDK header file) by inputting the name of the variable. For example "APU_EGTNeedle" and to get the float value out of it. What would be the easiest way to do this, is there another method like "SendControlToFS" but to read data? Cheers!
John Dowson Posted December 12, 2022 Report Posted December 12, 2022 You posted in the wrong forum - I have moved your post to the specific sub-forum for FSUIPC7 / MSFS. 21 hours ago, WRiker2701 said: My issue now is to find the way to retrieve the value of a condition variable (the ones listed in the PMDG 737 SDK header file) by inputting the name of the variable. For example "APU_EGTNeedle" and to get the float value out of it. The additional variables provided by the PMDG SDK are added to an FSUIPC offset area. For example, APU_EGTNeedle is on offset 0x64E8: 64E8 4 FLT32 APU_EGTNeedle Please see the document Offset Mapping for PMDG 737-700.pdf in your FSUIPC7 Documents folder. You need to enable data broadcasts in the PMDG 737 ini file first (explained in the document). John
WRiker2701 Posted December 12, 2022 Author Report Posted December 12, 2022 Offset then. Should i use the "Process()" method then? I guess "ClassInstance" would be the offset number, and how to get the variable value? i see this method returns void...
John Dowson Posted December 13, 2022 Report Posted December 13, 2022 I don't know the API you are using - if its Paul Henty's FSUIPC client dll for .Net client, please use his support sub-forum: https://forum.simflight.com/forum/167-fsuipc-client-dll-for-net/ John
WRiker2701 Posted December 13, 2022 Author Report Posted December 13, 2022 Moving my question there. Thanks.
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