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
jkatz098
Posts: 10
So prosim737 outputs the characters N,E,S,W as 1,2,3,4

I've applied a comparison setting so that for the left character if =1 set it to N otherwise set it to S

This works really well, except when you change from PPOS the characters should disappear and prosim737 sends a -1

Usually I would make a comparison setting that if =-1 set it to " " and the character disappears

Is there anyway to be able to do both, if=1 set it to N otherwise set it to S and if =-1 set it to " "

I've also tried a precondition that the Left IRS number must be greater than 09999 for the character to display, it works on the first run but if I turn the switch back, the precondition shows it working but the 7segment still displays the character
[Last edited by jkatz098, 2019-12-31 04:52]
2019-12-31 04:46
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

This is a bit advanced and i can not guide you directly without knowing the complete ProSim Logic....... But i think i can help you.

As you already know..... the Comare Tab allow directly only ONE Action.
IF xxxx Then yyyyy Else zzzzz........ Bit you need If xxxxx then yyyyyy ElseIF aaaaaa then bbbbb Else zzzzz

Solution:
Say in Compare
IF: Value = 1
THEN: N
ELSE: if($=-1,' ','S')

So... If Value is 1 it will use THEN field and write "N" ...... If Not the ELSE field come allive..... And here we got a self written IF Condition
That say " If Value is -1 then write " " ( Space sign) if NOT ( So value is not 1 and also not -1 then it will write "S"
NOTE: the ' sign is used for STRING Outputs Characters ( Syntax is 'TEXT' )

If E and W are also possible maby you need in ELSE field.....
if($=2,'E',if($=3,'S',if($=4,'W',' '))) ----- This will include E,S,W and Space....... N is already don e by the Then field.


At least.... i not understand the system with "greater then 09999 at IRS Left..... Please eyplane again more detailed.
Good Luck !
2020-01-01 02:26
Avatar
jkatz098
Posts: 10
Ah I didn't realise you could do full syntax in those fields. I'll give it a try
2020-01-01 08:47
icon