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!
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.
Now I would like to change the Transponder Mode with an encoder and I set an Output that "manipulate" the 0B46 Offset with steps: (turn left) $-1 and (turn right) $+1.
I put one Comparison in the input that reads the offset status: if current value is => 6 set it to 0 (zero).

About last Question with Strings. YES this is possible. Need a little advanced Formula.
If you tell me exactly what words are need for the 6 Values i can build the formula for you !
That sounds like a misstake.... Cause a INPUT have no comparison Page.
Pretty sure you include this entry in the OUTPUT Config that is used finaly as a placeholder in your Display !
That also explane your situation.... Your OUTPUT work fine, cause here you say " If Offset is 6 or greater" show 0 .
Solution: Your idea is correct BUT it must be included in the INPUT Config for the Encoder to send the correct Value to the Sim !
For ON LEFT you use NOT $-1 ..... You must use : if($=0,5,$-1) ..... Means if Current Value is "0" then this left turn should set to 5. If NOT ( So Value is 1,2,3,4 or 5) it send $-1 ,
For ON RIGHT you say : if($=5,0,$+1) .... So If 5 then jump to 0 .... Else Add +1 to current value.
The needed strings-words are the transponder modes corresponding with the Offset 0B46 status:
0 = Off
1 = StandBy
2 = Test
3 = On
4 = Alt
5 = Ground

The needed strings-words are the transponder modes corresponding with the Offset 0B46 status:
0 = Off
1 = StandBy
2 = Test
3 = On
4 = Alt
5 = Ground
For only 2 different "strings" we could use the Comparison Tab in a easy way.....
Like IF Value =0 ..... THEN: Off ...... ELSE Standby
But in your case we need a lot of additional situations.... So we need to wokr with a formula. Here you need to know the >> ' << Symbol is the Key. All that is written between those symbols is a STRING..... But this will work in Mobiflight only in Compare.... NOT in Transform !
So for example 'HELLO' result in HELLO on your LCD . ( That symbol is above the # in the German Keyboard)
Solution:
The first part we can do with the THEN Field..... So we say in Compare : IF Value =0 THEN Off
In the ELSE Field we use a long formula with a lot of "ELSEIF" to fit all other situations..... NOTE: "0" is no longer possible cause it is still handle by the THEN.
Use in ELSE : if($=1,'StandBy',if($=2,'Test',if($=3,'On',if($=4,'Alt','Ground'))))
NOTE: The last Value "5" is not used itself cause it´s the ELSE in the last Condition.... If Value is not 0,1,2,3 or 4 then it MUST be 5 finaly !
Please Test and report experience..... Hopefully i wrote it correctly !
The needed strings-words are the transponder modes corresponding with the Offset 0B46 status:
0 = Off
1 = StandBy
2 = Test
3 = On
4 = Alt
5 = Ground
For only 2 different "strings" we could use the Comparison Tab in a easy way.....
Like IF Value =0 ..... THEN: Off ...... ELSE Standby
But in your case we need a lot of additional situations.... So we need to wokr with a formula. Here you need to know the >> ' << Symbol is the Key. All that is written between those symbols is a STRING..... But this will work in Mobiflight only in Compare.... NOT in Transform !
So for example 'HELLO' result in HELLO on your LCD . ( That symbol is above the # in the German Keyboard)
Solution:
The first part we can do with the THEN Field..... So we say in Compare : IF Value =0 THEN Off
In the ELSE Field we use a long formula with a lot of "ELSEIF" to fit all other situations..... NOTE: "0" is no longer possible cause it is still handle by the THEN.
Use in ELSE : if($=1,'StandBy',if($=2,'Test',if($=3,'On',if($=4,'Alt','Ground'))))
NOTE: The last Value "5" is not used itself cause it´s the ELSE in the last Condition.... If Value is not 0,1,2,3 or 4 then it MUST be 5 finaly !
Please Test and report experience..... Hopefully i wrote it correctly !

Nice.
![]()
I see you understand the logic and you "rework" the formula to get shorter Terms.
And your right, too.... This can be used for different things.... For example to show "Gear UP, Gear DOWN or Gear TRANS.