Jump to content
The simFlight Network Forums

Framac

Members
  • Posts

    32
  • Joined

  • Last visited

  • Days Won

    1

Framac last won the day on October 16 2021

Framac had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Framac's Achievements

Apprentice

Apprentice (3/14)

  • Reacting Well Rare
  • Conversation Starter Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare

Recent Badges

1

Reputation

  1. @John Dowson Okay, I've been doing some tests and the result is as follows: - All tests were done by running the simulator without changing planes at the beginning, the plane is selected before exit the FS: - Everytime I change the plane, I exit the simulator wait about 30 sec and run again. a) Run the FS with the FBW A320NX selected without change plane (is already selected). - FSUIPC show alot of LVARs from other planes I NEVER fly like: ðŸ˜Ū B787_10_MFD_1_ScreenLuminosity = 0.000000 FA18_DDI_HSI_BING_MAP_SHOWN = 0.000000 Before that it shows alot of PMDG DC6 LVARS (I only fly this plane 2 or 3 month ago), I uninstall the plane and now it no longer shows. b) select for example C172, Exit FS, run FS with C172 selected, - FSUIPC show alot of LVARs from FBW A320NX Sometimes reads 2044 LVARs (with LVars from other planes) and my program doesn't work Othertimes read just the FBW LVars (1434) and everything works fine. I tested it with a friend of mine and the same thing happens on his pc. 😐 With FSUIPC V7.2 everything seems to be ok.: What could be the problem? ðŸĪŠ
  2. Yes, wasm is reading 2044 LVars from FBW ðŸ˜Ū Most with nothing significant (to me) like "dc6_940_obj = 0.000000" The FCU ones are the only ones that give me problems and no, they are not created only when the AP is turned on. If they can be read it is at the beginning, if they cannot be read at this stage, they never are. But I think the problem no longer have anything to do with the FSUIPC. 😐 Once it exceeds the limit, a good option would be to be able to deactivate some LVars that are not used and to be able to activate others that are needed. 😁
  3. I apologize for responding just now, Yes, now it's ok, thank you very much. Regarding "Setting an lvar via calculator code does not require the lvar to be know to FSUIPC." It's possible to use the calculator code directly from C# to declare one LVar that is not readed at start? Some times some LVars from FBW are never readed from FSUIPC and I already have the LvarScanDelay=60 The LVars more problematis are from the FCU, "A32NX_AUTOPILOT_SPEED_SELECTED" etc. If they are not readed I have to turn off and on the simulator. if there is any way to declare them that would be great Thanks for you help John.👌
  4. Hi, With the last version, (v7.3.2) in the options Add-ons/Wasm/List LVars and List HVars, the window is disable and the vertical scroll bar is also disable, so I can not scroll the list or select the list. Is there any way I can activate the window? Regards
  5. oh ok. Thank you very much John. Now I have a starting point and now I understand how it works. 👌
  6. Hi, Where can I read information about the calculator code and how to calculate the values? It's possible to send this values with my program via FSUIPC ? For example I know that: 0 (>H:A32NX_EFIS_L_CHRONO_PUSHED) in FBW activates Chrono, but it's possible to send it to msfs via FSUipc without the calculator?? Or I have to use the event files to do that? I've looked for this information but haven't been able to figure out where to start. 😐 Thank you for your help
  7. Done and working. Thank you so much. 👌
  8. Oh okay. Now I understand what's the problem. Yes, I will create a single instance on the main form. Thank you very much. 🙂
  9. Hi, I'm trying to use MSFS Variable Services on two forms but when I try to create two events, one on each form gives me an error. if I test one form at a time everything works fine. When I call both StartEfisServices() and StartRmpServices() gives me one error. What am I doing wrong? 😞 Form1: private MSFSVariableServices msfsVariableEfisServices = new MSFSVariableServices(); private FsLVar lVarEfisListen = null; .... public Form1() {... InitMSFSEfisServices(); ... } ... StartEfisServices(); private void InitMSFSEfisServices() { msfsVariableEfisServices.Init(Handle); // Initialise by passing in the windows handle of this form msfsVariableEfisServices.LVARUpdateFrequency = 10; // Check for changes in lvar values 10 times per second (Hz) msfsVariableEfisServices.Start(); } private void StartEfisServices() { lVarEfisListen = msfsVariableEfisServices.LVars["BTN_CSTR_1_FILTER_ACTIVE"]; lVarEfisListen.OnValueChanged += lVarListen_OnValueEfisChanged; lVarEfisListen = msfsVariableEfisServices.LVars["BTN_VORD_1_FILTER_ACTIVE"]; lVarEfisListen.OnValueChanged += lVarListen_OnValueEfisChanged; } __________________________________________________________________________ Form2: .... public Form2() {... InitMSFSRmpServices(); ... } ... StartRmpServices(); private void InitMSFSRmpServices() { msfsVariableRmpServices.Init(Handle); // Initialise by passing in the windows handle of this form msfsVariableRmpServices.LVARUpdateFrequency = 10; // Check for changes in lvar values 10 times per second (Hz) msfsVariableRmpServices.Start(); } private void StartRmpServices() { lVarRmpListen = msfsVariableRmpServices.LVars["A32NX_RMP_L_VHF2_STANDBY_FREQUENCY"]; lVarRmpListen.OnValueChanged += lVarRmpListen_OnValueChanged; <--------------------- Exception Thrown lVarRmpListen = msfsVariableRmpServices.LVars["A32NX_RMP_L_VHF3_STANDBY_FREQUENCY"]; lVarRmpListen.OnValueChanged += lVarRmpListen_OnValueChanged; } give me the error: System.NullReferenceException: 'Object reference not set to an instance of an object.'
  10. YES, thats what I want. 😁 you are always ready to help thank you again Paul 💊
  11. Hi @Paul Henty, it is possible to have a specific list/array of LVras and fire just one event if only one in that list changes, instead of having a method for each of them? Now I think I have one method for every one, or I have to read all of them and just see if the one I need changed. ... this.lVarListen1 = this.VS.LVars["A32NX_ADIRS_KNOB_1"]; this.lVarListen1.OnValueChanged += lVarListen1_OnValueChanged; this.lVarListen2 = this.VS.LVars["A32NX_ADIRS_KNOB_2"]; this.lVarListen2.OnValueChanged += lVarListen2_OnValueChanged; private void lVarListen1_OnValueChanged(object sender, LVarEvent e) {....} private void lVarListen2_OnValueChanged(object sender, LVarEvent e) {....} And so on... is there any chance that lVarListen is a list or array? Thanks
  12. If you are using the A320FBW they do not provide the HVars even though the A320NEO has them.
  13. Thank you very much Paul. 🙂
  14. Hi Paul, Maybe I explained it wrong and I found some information on the subject. In the FSUIPC place is a folder "EventFiles", In that folder are .evt files like "A32X-FBW1.evt" that are read by fsuipc after being copied to the executable location or declared in "fsuipc.ini". Example: [Events] 0=MobiFlight.A320_Neo_MFD_BTN_CSTR_1 1=MobiFlight.A320_Neo_MFD_BTN_WPT_1 I saw that these events can be used as controls. The control numbers for events in event files are determined as follows: control number = 32768 + (event file index)*256 + event index number I thought I could use these events as H/LVars with mobiflight wasm or in other way, but I think I can't, they have to be used as controls. It's correct? I saw this information in John Dowson reply to other topic.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.