Hi Again.
At first my email.... pizman@freenet.de
Advice my reply time on mails is long. I normaly check my mails only 1-2 times per week.... If much work maby just all 2 weeks.
About Problem....
If there is a 14 Seg Display in your cockpit then the question is.... WHAT does it show overall. If it extremly just show the "V" Character in a special Case then this is easy.... With a bit of wire work we can do this. If the SAME Display must show for example "V" and also " S" then its difficult but maby also possible.
To help i must know....
1. Is this just a ONE DIGGIT Display....
2. What can it show in all possible situations.
3. Is there a readable Indicator WHEN , WHAT thing must be shown.
About "=" Sign... I not test it already. Maby i find time on Thursday.
About the Precondition Problem.
Your System can NOT work
You simly duplicate the Config but you not rework it.
In your example Config 1 work if Indicator ( pretty sure Offset 6914) is 1
And Config 2 work if Indicator is 0
BUT Both Configs do the same !!!! They read Offset 6904 and show its value ( Both in same way) .
So its no matter if C1 or C2 is active aslong they both do the same.
If i understand you correct then the Display should be BLANK if Indicator (6914) is "0"
So the "OFF CONFIG" (Your second) must show "Space Space Space Space Space" on the Display instead of current Altitude Value from 6904
Simply make a Compare and Say If Value = 1 THEN "5 time Space Button" ELSE "5 time Space Button"
So Always ( If Value is 1 or if not 1 means ALWAYS) this config show "5 Empty Diggits"
By the way.... We normaly use here a FAKE Offset to provide Mobiflight of additional work. We use here Offset "0000" by standard.... But thats not required.
******
Last Note:
Please ask the guy who build this script for you. These difficult workflow with preconditions in Mobiflight is only needed for casual Users they not can scripting and users of AddOns like PMDG that have FSUIPC Offsets.
Your Maddog already need a script to make a communication with Mobiflight possible.
So WHY you not include all this stuff in your script ??
Simple example
((NOTE: I Not know the correct syntax. I Hope thats correct. Please Check this !))
Make a Global Read of The Status .... like : Powerstaus = ipc.readUD(0x6914)
And then include this in a IF ELSE in your Altitude System.
Code:
What i mean... You read the "indicator" of your power status "global" and you can use it now in every single Output Script part.
Here you say.... IF Power is ON then write current Value to the Offset.... If Power is OFF then write to LED "0" Zero. ( Whatever Lvar is 1 a.t.m.)
For Displays you say if Power is ON then write current Value.... If Power is OFF then write a fictional numer like 99999
In Mobiflight you can now make ONE Config for Altitude.... And you say in Compare If Value is exaclty 99999 then Blank the Display.... Else Show Value !
Summary. If you still use a script (instead to normal users with standard Aircrafts or famous Addons like PMDG) then i would include all this precondition Stuff in your script !
Thats more Powerfull and easy..... For you Mobiflight is just the "transmitter" to the Displays. All the "work" is done already before mobiflight in your script !
LAST NOTE:
Why is it so difficult in your maddog to define the Power Status with this xx Seconds Sleep Timer ?
Do you realy need this ? Why you not simply say all Displays LED and so on should be ON directly without waiting.... Then you can save the second script !