MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
ec-cts
From: Pozuelo de Alarcon, Spain
Posts: 79
The problem:
Until today, for a month that I started with Mobiflight, except a problem that I reported in the forum, everything went well.
It has not given problems except for minor adjustments that would affect the youth of the software.

This Saturday morning, I started to complete my radio panel configuration for a Cessna 172.
1) With a new mega arduino, I installed the MB firmware. No problem.
2) Create the necessary devices (lcd 7 segments -8 modules) and 4 dual encoders for each of the frequencies comm1, comm2, nav1 and nav2.
3º) Assign the fsuipc offssets to the outputs by the lcd 7 segments. They worked correctly. I did the final test and it worked correctly. I run MB and showed the frequencies correctly.
4º) Assign the fsuipc offssets to the inputs of the dual encoders, assigning to each one, the corresponding fsuipc, functioning correctly.
5º) At the end of the whole process, I proceeded to save the file, and closed Mobiflight connector.
6º) A few minutes later, I came back again and tried to open MB without result. Apparently it started but did not finish running.
It started because the displays that displayed data, started and cleared them, but then the MB program was not finished.
7º) I discovered that happened to me while I had connected the arduino card.
8º) It disconnected the arduino and the program MB was executed.
9º) Connected the arduino, and I did not recognize it.
10º) When starting MB always read the last saved file.
11º) Then he would close the file, and create a new one. It closed MB and it reopened and it executed correctly.
12º) I connected the arduino MB and with that last blank file, I recognized the arduino MB and initiated MB connector.
13º) I loaded the file with all the configuration, and then it gave me an exception (see at the end).
If I gave it to continue, MB worked properly, until it reclosed.
14º) I have repeated this process a total of 17 times, with 7 arduino mega and 3 arduino one, with the same result.
15º) I suspected that there might have been a problem with the drivers or with the theme of the COM and / or USB ports, and I restored the system (windows 10 -64) to a restore point of 10 days ago with the same result .
I have also reinstalled MB Connect several times by deleting the Mobiflight directory from the hidden directory in appdata.
16º) I do not know what else to do, because in the meantime I was restarting the pc in order that if there was any problem was removed, but nothing.

I'm desperate, I've been trying to solve this problem for 15 hours and I'm not capable.

I've recreated the problem again, and I'm making a video to see the problem and the end result, including the exception.

That could be happening?
how to solve it?

I need help please.

Thans.

Carlos (ec-cts)

Pd: The video i will habe available tomorrow in the morning, now it is already am 3.45 h and i carry from 12,00 pm with the problem.

iconCode:
Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración 
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en MobiFlight.OrphanedSerialsDialog.updateOrphanedList()
   en MobiFlight.OrphanedSerialsDialog..ctor(List`1 serials, DataTable dataTable, DataTable inputDataTable)
   en MobiFlight.MainForm._checkForOrphanedSerials(Boolean showNotNecessaryMessage)
   en MobiFlight.MainForm._loadConfig(String fileName)
   en MobiFlight.MainForm.loadToolStripMenuItem_Click(Object sender, EventArgs e)
   en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   en System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   en System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   en System.Windows.Forms.ToolStrip.WndProc(Message& m)
   en System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2110.0 built by: NET47REL1LAST
    Código base: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
MFConnector
    Versión del ensamblado: 7.4.0.0
    Versión Win32: 7.4.0
    Código base: file:///F:/Simulador/Programas%20simulador/Mobiflight%20Connector/MFConnector.exe
----------------------------------------
System.Windows.Forms
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2110.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2110.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2102.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2102.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2102.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Numerics
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
FSUIPCClient
    Versión del ensamblado: 2.0.4008.2
    Versión Win32: 2.0.4008.2
    Código base: file:///F:/Simulador/Programas%20simulador/Mobiflight%20Connector/FSUIPCClient.DLL
----------------------------------------
ArcazeHid
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///F:/Simulador/Programas%20simulador/Mobiflight%20Connector/ArcazeHid.DLL
----------------------------------------
Microsoft.GeneratedCode
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 4.7.2102.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 4.7.2102.0 built by: NET47REL1LAST
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CommandMessenger
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///F:/Simulador/Programas%20simulador/Mobiflight%20Connector/CommandMessenger.DLL
----------------------------------------
AutoUpdater.NET
    Versión del ensamblado: 1.3.1.0
    Versión Win32: 1.3.1.0
    Código base: file:///F:/Simulador/Programas%20simulador/Mobiflight%20Connector/AutoUpdater.NET.DLL
----------------------------------------
Accessibility
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2046.0 built by: NET47REL1
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_es_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.
2017-10-08 03:42
Avatar
ec-cts
From: Pozuelo de Alarcon, Spain
Posts: 79
Hi friends:

New tests of this error:

I keep trying to find the reason for this strange behavior.

I have checked that Mobiflight has a configuration file "user.config" in the hidden directory appdata-local-mobiflight ....

I proceeded to erase everything.

The next time I started MB Connector appears as the first time it was installed.

To verify the error, I have been copying the files:
"user.config"
and the file saved with the configuration called "RadioPanelCessna172Version2.mcc"

1) I start with an arduino card with the firmware MB and created the lcd devices 7 segments (8 modules) and 8 encoders (4 dual) to change the frequencies. Everything is correct so far.

TEST 1:
2) With all the empty inputs and outputs, without creating any, the MB Connector closes and opens without problems, and without showing any errors.

3º) I have created 8 outputs, for the 8 Comm and Nav frequencies, with the lcd 7 segments, each one in its corresponding module. They show perfectly, it runs MB and everything works perfect. MB Connector closes and opens without problems, and without showing any errors.

4º) I have saved the two files indicated as test 1.

TEST 2:
5º) I have created 4 outputs, for the 2 dual encoders, each of them to manage the standby frequency of comm1 (1 encoder for khz and 1 encoder for Mhz) and equal for the standby frequency of nav1 (1 encoder for khz and 1 encoder for Mhz). I save the configuration file, close and open MB connector without problems.

6º) I have configured the 4 outputs with their offsset correctly. I run MB and it works correctly, changing the frequencies perfectly. I keep configuration, and I close and open MB connector without problems.

I keep the two files as test 2.

TEST 3:
7) I have created 4 new outputs, for two other dual encoders, this time to manage the standby frequency of comm2 (1 encoder for khz and 1 encoder for Mhz) and the same for the standby frequency of nav2 (1 encoder for khz and 1 encoder for Mhz). I save the configuration file, close it and the MB connector is no longer opened and the problem is reproduced.

The MB Connector no longer opens. I just created the line of the 4 new encoders, I did not get them to configure, which is where tonight I thought the problem really was, since I put all the values of offsset and other at hand, since it did not appear in the combo one entrance for these.

I keep the two files as test 3.

I have restored the test 2 files, and MB Connector opens and closes correctly.

I do not understand anything. I've done nothing more than create 4 new lines of outputs and I have not even configured them, and that's when I reproduce the error, and now I think that was really the point where when I got to it, during the day yesterday gave 17 times the same error.

I no longer know what else to do.

Greetings and thanks in advance to all

Carlos (ec-cts)


CONTENTS OF THE FILES:
TEST1:
USER.CONFIG

iconCode:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <userSettings>
        <MobiFlight.Properties.Settings>
            <setting name="RecentFilesMaxCount" serializeAs="String">
                <value>5</value>
            </setting>
            <setting name="PollInterval" serializeAs="String">
                <value>200</value>
            </setting>
            <setting name="AutoRun" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="TestTimerInterval" serializeAs="String">
                <value>50</value>
            </setting>
            <setting name="ModuleSettings" serializeAs="String">
                <value><?xml version="1.0" encoding="utf-16"?>
<ArrayOfArcazeModuleSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /></value>
            </setting>
            <setting name="LogEnabled" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="LogLevel" serializeAs="String">
                <value>Info</value>
            </setting>
            <setting name="ArduinoIdePath" serializeAs="String">
                <value>C:\Program Files (x86)\Arduino</value>
            </setting>
            <setting name="Started" serializeAs="String">
                <value>3</value>
            </setting>
            <setting name="UpgradeRequired" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="CacheId" serializeAs="String">
                <value>d4fb607f-2c12-4ee1-8a50-f06fee4b3dbb</value>
            </setting>
            <setting name="RecentFiles" serializeAs="Xml">
                <value>
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172Version2.mcc</string>
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172.mcc</string>
                    </ArrayOfString>
                </value>
            </setting>
            <setting name="FwAutoUpdateCheck" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="OfflineMode" serializeAs="String">
                <value>False</value>
            </setting>
        </MobiFlight.Properties.Settings>
    </userSettings>
</configuration>


RADIOPANELCESSNA172VERSION2.MCC[/u]
iconCode:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
  <outputs>
    <config guid="c007709e-73e9-41e0-a628-57ff62f64921">
      <active>true</active>
      <description>Comm1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x034E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="b58b5fcf-9bbf-4e56-b638-867b2d71b806">
      <active>true</active>
      <description>Comm1 Standbye</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="2" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="e7a235f2-3a7b-4b3d-8810-d05733ee9970">
      <active>true</active>
      <description>Nav1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0350" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="3" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="f4e374eb-8dbf-4605-98dd-69f8b56bd0d1">
      <active>true</active>
      <description>Nav1 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="4" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
  </outputs>
  <inputs>
    <config guid="62b85e31-2289-439c-9a7a-667ffd352017">
      <active>true</active>
      <description>Comm1 khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=1800,if($%5==0,$-3,$-2),3697)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,if($%5==0,$+2,$+3),1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="85864405-612b-44a3-8482-9373c0b575b3">
      <active>true</active>
      <description>Comm1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>1900,$-100,$+1800)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,$+100,$-1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="910642ce-0775-4e21-a3b8-db73145f698e">
      <active>true</active>
      <description>Nav1 Khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>800,$-5,1795)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1795,$+5,800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="6f6e9d17-73c2-4ce4-8e8a-2ae4cc1bf702">
      <active>true</active>
      <description>Nav1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=900,$-100,$+900)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1700,$+100,$-900)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
  </inputs>
</MobiflightConnector>


TEST2:

USER.CONFIG

iconCode:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <userSettings>
        <MobiFlight.Properties.Settings>
            <setting name="RecentFilesMaxCount" serializeAs="String">
                <value>5</value>
            </setting>
            <setting name="PollInterval" serializeAs="String">
                <value>200</value>
            </setting>
            <setting name="AutoRun" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="TestTimerInterval" serializeAs="String">
                <value>50</value>
            </setting>
            <setting name="ModuleSettings" serializeAs="String">
                <value><?xml version="1.0" encoding="utf-16"?>
<ArrayOfArcazeModuleSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /></value>
            </setting>
            <setting name="LogEnabled" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="LogLevel" serializeAs="String">
                <value>Info</value>
            </setting>
            <setting name="ArduinoIdePath" serializeAs="String">
                <value>C:\Program Files (x86)\Arduino</value>
            </setting>
            <setting name="Started" serializeAs="String">
                <value>4</value>
            </setting>
            <setting name="UpgradeRequired" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="CacheId" serializeAs="String">
                <value>d4fb607f-2c12-4ee1-8a50-f06fee4b3dbb</value>
            </setting>
            <setting name="RecentFiles" serializeAs="Xml">
                <value>
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172Version2.mcc</string>
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172.mcc</string>
                    </ArrayOfString>
                </value>
            </setting>
            <setting name="FwAutoUpdateCheck" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="OfflineMode" serializeAs="String">
                <value>False</value>
            </setting>
        </MobiFlight.Properties.Settings>
    </userSettings>
</configuration>


RADIOPANELCESSNA172VERSION2.MCC
iconCode:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
  <outputs>
    <config guid="c007709e-73e9-41e0-a628-57ff62f64921">
      <active>true</active>
      <description>Comm1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x034E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="b58b5fcf-9bbf-4e56-b638-867b2d71b806">
      <active>true</active>
      <description>Comm1 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="2" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="e7a235f2-3a7b-4b3d-8810-d05733ee9970">
      <active>true</active>
      <description>Nav1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0350" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="3" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="f4e374eb-8dbf-4605-98dd-69f8b56bd0d1">
      <active>true</active>
      <description>Nav1 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="4" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="5d8a87c2-bc71-467a-b125-b4338ce509a4">
      <active>true</active>
      <description>Comm2 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3118" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="5" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="20d1cf93-55ca-4167-bf11-96831e3891b5">
      <active>true</active>
      <description>Comm2 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311C" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="6" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="98ae649c-4fd3-44bb-bfa0-b71207539ac4">
      <active>true</active>
      <description>Nav2 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0352" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="7" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="1a7bbcdc-0682-4fad-9701-c03618ec4595">
      <active>true</active>
      <description>Nav2 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3120" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="8" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
  </outputs>
  <inputs>
    <config guid="62b85e31-2289-439c-9a7a-667ffd352017">
      <active>true</active>
      <description>Comm1 khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=1800,if($%5==0,$-3,$-2),3697)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,if($%5==0,$+2,$+3),1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="85864405-612b-44a3-8482-9373c0b575b3">
      <active>true</active>
      <description>Comm1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>1900,$-100,$+1800)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,$+100,$-1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="910642ce-0775-4e21-a3b8-db73145f698e">
      <active>true</active>
      <description>Nav1 Khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>800,$-5,1795)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1795,$+5,800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="6f6e9d17-73c2-4ce4-8e8a-2ae4cc1bf702">
      <active>true</active>
      <description>Nav1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=900,$-100,$+900)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1700,$+100,$-900)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
  </inputs>
</MobiflightConnector>



TEST3:

USER.CONFIG

iconCode:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <userSettings>
        <MobiFlight.Properties.Settings>
            <setting name="RecentFilesMaxCount" serializeAs="String">
                <value>5</value>
            </setting>
            <setting name="PollInterval" serializeAs="String">
                <value>200</value>
            </setting>
            <setting name="AutoRun" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="TestTimerInterval" serializeAs="String">
                <value>50</value>
            </setting>
            <setting name="ModuleSettings" serializeAs="String">
                <value><?xml version="1.0" encoding="utf-16"?>
<ArrayOfArcazeModuleSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /></value>
            </setting>
            <setting name="LogEnabled" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="LogLevel" serializeAs="String">
                <value>Info</value>
            </setting>
            <setting name="ArduinoIdePath" serializeAs="String">
                <value>C:\Program Files (x86)\Arduino</value>
            </setting>
            <setting name="Started" serializeAs="String">
                <value>5</value>
            </setting>
            <setting name="UpgradeRequired" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="CacheId" serializeAs="String">
                <value>d4fb607f-2c12-4ee1-8a50-f06fee4b3dbb</value>
            </setting>
            <setting name="RecentFiles" serializeAs="Xml">
                <value>
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172Version2.mcc</string>
                        <string>C:\Users\Usuario\Documents\mobiflight\RadioPanelCessna172.mcc</string>
                    </ArrayOfString>
                </value>
            </setting>
            <setting name="FwAutoUpdateCheck" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="OfflineMode" serializeAs="String">
                <value>False</value>
            </setting>
        </MobiFlight.Properties.Settings>
    </userSettings>
</configuration>


RADIOPANELCESSNA172VERSION2.MCC
iconCode:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
  <outputs>
    <config guid="c007709e-73e9-41e0-a628-57ff62f64921">
      <active>true</active>
      <description>Comm1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x034E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="b58b5fcf-9bbf-4e56-b638-867b2d71b806">
      <active>true</active>
      <description>Comm1 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="2" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="e7a235f2-3a7b-4b3d-8810-d05733ee9970">
      <active>true</active>
      <description>Nav1 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0350" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="3" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="f4e374eb-8dbf-4605-98dd-69f8b56bd0d1">
      <active>true</active>
      <description>Nav1 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="4" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="5d8a87c2-bc71-467a-b125-b4338ce509a4">
      <active>true</active>
      <description>Comm2 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3118" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="5" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="20d1cf93-55ca-4167-bf11-96831e3891b5">
      <active>true</active>
      <description>Comm2 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x311C" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="6" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="98ae649c-4fd3-44bb-bfa0-b71207539ac4">
      <active>true</active>
      <description>Nav2 Active</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0352" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="7" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
    <config guid="1a7bbcdc-0682-4fad-9701-c03618ec4595">
      <active>true</active>
      <description>Nav2 Standby</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3120" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedComNav" ledConnector="8" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5,6,7" ledDecimalPoints="5" />
        <preconditions />
        <transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
        <configrefs />
      </settings>
    </config>
  </outputs>
  <inputs>
    <config guid="62b85e31-2289-439c-9a7a-667ffd352017">
      <active>true</active>
      <description>Comm1 Khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=1800,if($%5==0,$-3,$-2),3697)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,if($%5==0,$+2,$+3),1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="85864405-612b-44a3-8482-9373c0b575b3">
      <active>true</active>
      <description>Comm1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderComm1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>1900,$-100,$+1800)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311A" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<3697,$+100,$-1800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="910642ce-0775-4e21-a3b8-db73145f698e">
      <active>true</active>
      <description>Nav1 Khz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Khz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>800,$-5,1795)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1795,$+5,800)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="6f6e9d17-73c2-4ce4-8e8a-2ae4cc1bf702">
      <active>true</active>
      <description>Nav1 Mhz</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderNav1Mhz" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($>=900,$-100,$+900)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x311E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" inputValue="if($<1700,$+100,$-900)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="e62aa188-33c0-4a4f-956a-1a5b89b7fdfe">
      <active>false</active>
      <description>Comm2 Khz</description>
    </config>
    <config guid="cc7fd749-d3c7-4d50-bf30-dd343ddc886a">
      <active>false</active>
      <description>Comm2Mhz</description>
    </config>
    <config guid="e696f9a0-f289-420f-9e7f-4aa6eda6eca7">
      <active>false</active>
      <description>Nav1Khz</description>
    </config>
    <config guid="3f0e7537-fc39-4f7a-a097-6e93dcf8570c">
      <active>false</active>
      <description>Nav2Mhz</description>
    </config>
  </inputs>
</MobiflightConnector>
2017-10-08 12:37
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi carlos,

I had this error already. It was because I had entered a config, only their names and the front hook did not set, in order not to forget the function as such. So I have not specified either Comparison, Precondition, or Offset / EventID.

Then MF refused his service completely and could not start.

However, the following applies to MF:

Each configuration MUST be completely restructured and everything MUST be correctly entered, as if MF thereby cleanly run.

As long as the configuration is not saved, you will not notice this unless MF detects an error and refuses its service after starting.

With the not activated Configs one notices then also in a test run, because they remain unaffected.

However, if you start MF with such a file (the file that was last loaded), each entry is scanned for correctness. If an error is detected (this can also be an incomplete config), MF does not start at all.

Basic rule: Only files whose configs are complete and without exception correct error-free are loaded.

To start MobiFlight again, just rename the file that MF wants to load. Then MF starts without file. You can then manually recharge. In the event of an error, however, only the file will be edited in an editor (recommended: Notepad ++) until it can be loaded error-free.

Before you make new entries in MF, it is recommended to save the last current and working file to another location.

Then either restart the input with the last working file or locate and remove the errors from the current one.

With me has taken the heed of these hints (they came from nobody other than Pizman) and since then the error also no longer occurred.
Grüße,
Stephan (Time: UTC+2)
2017-10-08 14:28
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconQuote:

TEST 3:
7) I have created 4 new outputs, for two other dual encoders, this time to manage the standby frequency of comm2 (1 encoder for khz and 1 encoder for Mhz) and the same for the standby frequency of nav2 (1 encoder for khz and 1 encoder for Mhz). I save the configuration file, close it and the MB connector is no longer opened and the problem is reproduced.



A Encoder is a INPUT not a OUTPUT by the Way.... But i think you only use wrong phrase and mean INPUT at all.

Do i understand right.... You NOT make settings for this 4 new created Configs ??

iconCode:
   </config>
    <config guid="e62aa188-33c0-4a4f-956a-1a5b89b7fdfe">
      <active>false</active>
      <description>Comm2 Khz</description>
    </config>
    <config guid="cc7fd749-d3c7-4d50-bf30-dd343ddc886a">
      <active>false</active>
      <description>Comm2Mhz</description>
    </config>
    <config guid="e696f9a0-f289-420f-9e7f-4aa6eda6eca7">
      <active>false</active>
      <description>Nav1Khz</description>
    </config>
    <config guid="3f0e7537-fc39-4f7a-a097-6e93dcf8570c">
      <active>false</active>
      <description>Nav2Mhz</description>
    </config>
  </inputs>


That looks for me you just open the Configs and NOT set it to a Hardware Device and NOT define a Typ like Offset/ Event ID and so on.

I Think THATS the Problem ( Like Stephan said already)

***********
It run already fine aslong you not Restart Mobiflight cause the Configs are not used ( not activated) at this moment...... BUT After Restart Mobiflight scan for correct Syntax... And this is maby Wrong now if empty Configs exist.

If you like i can test this out for you.
Simply send me via Email the MCC File from Test 3 for example..... ( The other File is not needed i think)
EDIT: Wrong Email was written.... Now it´s correct ! Email: pizman@freenet.de ( Please use Tags "Mobiflight" and your Name "ec-cts" in Header to protect of Spamm Filter)
But please keep patient.... I can not look at this untl Thursday !

OR Simply report if this hints already solve your problem !
[Last edited by pizman82, 2017-10-09 07:47]
Good Luck !
2017-10-08 17:03
Avatar
ec-cts
From: Pozuelo de Alarcon, Spain
Posts: 79
Hello friends:

Thank you very much. Thanks for your comments, Sthefan and Pizman. I have been helped to solve the issue that has caused me to lose 20 hours of work, and try a total of 19 times everything, which has helped me to get a lot of practice with MB Connector.

I think the solution has gone through repeating everything, and leaving no input or output without setting completely. Now I have done so, and he has not repeated the error.

The first few times I created the buttons to switch the frequencies not configured, and the last few times, I simply created the blank lines not configured to see if I got the error, not knowing that was what caused it.

I have repeated everything from scratch again, erasing the firmware of the arduino and creating everything again and now without leaving any input or output without setting has not given me the problem again.

I have marked as project, make a complete radio panel for the Cessna 172 to see if I can do it completely with MB connector. I have designed and developed my own PCBs to facilitate the creation of the panel, which will be available to all those who want it to order prototypes or make them themselves with a cnc.

I have done it with Link2FS, but the programming hours are very intense and with MB Connector, that work is affordable even to people not seasoned in programming.

I'm documenting everything with videos, and I'm going to start uploading them in small parts, as each part finishes, so that anyone else who wants to do it has a practical guide.

The biggest problem I encounter is that I have values that I do not know how to get, such as the switch values for comm2 and nav2 and other similar values. Any ideas?

Greetings and thanks again.

Carlos (ec-cts)
[Last edited by ec-cts, 2017-10-08 23:01]
2017-10-08 22:17
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Nice it workes

Sorry for your Problems.... i Stil open a request for new feature to protect users from this in the next versions.
But i think Sebastian simply not "see" this situation. Why should somebody create a config without using it (at the moment).
Maby the fact, that only 2-3 Users report this problem over lots of Years show that THIS is not done normaly :|

****

About the Offsets.
You have to know WHAT Aircraft you like to use finaly..... AddOns maby work with different technic. Some Things like ADF Stby are not supported for all Aircrafts. For example PMDG work with a internal System here in the Boeing Aircrafts that NOT can be readout.

But good News.... Maby 98% can be done with improvisional sulutions.
Please check out the "FSUIPC Offset Status List" for Standard aircrafts ( in the /FSX/Modules folder) .... There you find what you need.

For specific Questions.... Please open a new Topic and request exactly WHAT Data you need.... Then we can talk about and find a way !
Good Luck !
2017-10-09 07:59
Avatar
ec-cts
From: Pozuelo de Alarcon, Spain
Posts: 79
Thanks Pizman82.

I have looked for the FSUIPC offsset of Peter Dowson, the problem is that in some offsets like the 0x3110 you have to know the exact value for certain operations that does not indicate the list of offsets FUIPC.

For example:
Swaps frequency comm1: 0x3110 Value: 66372 Size: 4 (in MB Connector)
Swaps frequency nav1: 0x3110 Value: 66448 Size: 4 (in MB Connector)
Swaps frequency comm2: 0x3110 Value: 66444 Size: 4 (no in MB Connector)
Swaps frequency nav2: 0x3110 Value: 66352 Size: 4 (no in MB Connector)

If you do not know the specific displacement, you can not have access to that data, and everything is because in MN Connector does not contemplate certain functions, since of the swaps of indicated frequencies only appears the one of the comm1 and the one of nav1.

I do not know if I explain myself well.

It would be very interesting that all possible offsets to be used would be incorporated into the MN Connector, although I do not know if this would give much work to Sebastian.

The community could help to incorporate many possibilities whenever the program at the time of showing in as the offsets to select is based on a BBDD that users could incorporate, in such a way that not based each added on a manual modification of the program; but in incorporating to a database the offsets with certain parameters. That would mean a breakthrough in the software if it is not planned to do so.
(I speak without knowing how it is designed. Sorry Sebastian for giving advice).

I in that, could help them to incorporate new offssets.

Thanks for everything,

Carlos (ec-cts)
2017-10-09 13:00
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
:scared: STOP.... You Mix up TWO complete different things !

We got 2 Systems to set things in the Simulator..... With Offsets OR With Events ! ( Events only work in FSX and P3d .... NOT in Xplane by the way)

So your on the right way but not understand it fully.....
The Offset 3110 ( 8 Byte) or better explaned the Offsets 3110 and 3114 ( each 4 byte) are used to transmit EventID Commands to the Simulator.
THIS is already inplement in Mobiflight..... You find it as "Type of Input" and its called "EventID"
There you can choose a ID Number and a Parameter..... Then Mobiflight will send it to 3110 and 3114 for you.

In this section Mobiflight include a complete List of all "standard" EventID´s.
You find this list, too in the FSUIPC Folder.... file is called "The 2016 List of FSX and P3D Controlls.PDF"
Additional some AddOn Aircrafts like PMDG got it´s own Lists with own EventID´s, too.

****
Alternate you can change your Com and Nav with Offsets, too.
The correct Offset would be....
iconQuote:

Offset: 3123...... Size in Byte: 1 ..............Radio Use/Standby swap toggles, Write bits to operate toggles.
2^3 COM1 swap
2^2 COM2 swap
2^1 NAV1 swap
2^0 NAV2 swap



Hope everything is more understandable now!
Good Luck !
2017-10-09 15:47
icon