Sergiohst Posted April 3, 2021 Report Share Posted April 3, 2021 Hi !! I'm new to FSUIPC , and trying to control / read FS with its help, I've done a lot of searching in the web but cannot find a way to make this work, FSUIPCConnection.SendControlToFS(FsControl.BAROMETRIC_STD_PRESSURE, 0); FSUIPCConnection.Process(); sets the Baro to 29.92 , actually this is STD, but cannot make the plane show STD in the Baro indicator. Tryied with other values with no luck. I saw an Axis and Ohs template that accomplish this making use of an RPN script (Simconnect): (L:XMLVAR_Baro1_ForcedToSTD,·Number)·!·(>L:XMLVAR_Baro1_ForcedToSTD,·Number)·(L:XMLVAR_Baro1_ForcedToSTD,·Number)·0·==·if{·(A:KOHLSMAN·SETTING·MB:1,·mbars)·16·*·(>L:XMLVAR_Baro1_SavedPressure)·1·(>K:BAROMETRIC_STD_PRESSURE)·3·(>L:XMLVAR_Baro1_Mode,·Number)·}·els{·(L:XMLVAR_Baro1_SavedPressure)·(>K:KOHLSMAN_SET)·1·(>L:XMLVAR_Baro1_Mode,·Number)·} So it CAN be done. Any help about how to make it with FSUIPC?? Thanks!! Link to comment Share on other sites More sharing options...
Paul Henty Posted April 3, 2021 Report Share Posted April 3, 2021 The problem is probably with MSFS or the way the A320 is programmed. Even though you have set standard pressure, the code in the aircraft doesn't light the indicator. The RPN script seems to be using local panel variables (LVARs) to force the indicator on. I can't understand the syntax of the script but it seems like L:XMLVAR_Baro1_ForcedToSTD is being used to light the indicator. Unfortunately LVARs are not yet available in FSUIPC when using MSFS (both are still in development). When they are implemented you will likely be able to light the indicator by writing the correct value to the LVARs. Use FSUIPCConnection.ReadLVAR() and FSUIPCConnection.WriteLVAR(). Paul Link to comment Share on other sites More sharing options...
Sergiohst Posted April 5, 2021 Author Report Share Posted April 5, 2021 Thank you for your answer Paul, I'll try to make use of simconnect DLL to make this detail work. Link to comment Share on other sites More sharing options...
Paul Henty Posted April 5, 2021 Report Share Posted April 5, 2021 Just an update - John posted today that he's got LVARs working in FSUIPC7: Paul Link to comment Share on other sites More sharing options...
Sergiohst Posted May 1, 2021 Author Report Share Posted May 1, 2021 Thanks Paul, working fine now with A32NX using LVars! MSFSservices.LVars["XMLVAR_Baro1_Mode"].SetValue(2); << sets it to STD! 1 Link to comment Share on other sites More sharing options...
PigBenis18 Posted December 2, 2021 Report Share Posted December 2, 2021 Hold left mouse and right click to push, middle mouse to pull. Link to comment Share on other sites More sharing options...
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