Hi folks,
This might be far too complicated, but I will explain what I want to do and perhaps someone can help me out...
I have an XML based panel in which the EICAS has an area for annunciator messages. Currently, the messages appear as individually positioned text strings, but, as I am modelling more systems (and from a peek at the real thing last week) I see that what I need to do is list the current messages because there are simply not enough spaces for them all to have 'their own place' on the screen...
Looking here, I see that I can store the relevant strings as L vars : http://www.fsdeveloper.com/forum/showthread.php?t=94088
So, for example, I could use this to have a register of available messages such as
L:Annunc1 => "RIGHT ENGINE FIRE"
L:Annunc2 => "LEFT ENGINE FIRE"
L:Annunc3 => "APU FIRE"
L:Annunc4 => "LEFT BRAKE OVERHEAT"
L:Annunc5 => "RIGHT BRAKE OVERHEAT"
L:Annunc6 => "SPOILER UP"
L:Annunc7 => "AUTOBRAKE OFF"
etc, etc... There would probably be about 40 of these
Then I would (I assume) be able to use a bit of code to look if the L Var was empty and if it was not, to display it... However, this is where I'm stuck: How do I "go through" all these and only display the ones that are not empty?? I.e. Star at Annunc1 and if it is 'live' then show that text, then look at Annunc2 and if it is empty skip it but if it is not then show that on the next line... This way I would simply show the first (lets say) 8 messages in one line - I would be clever in the order if them so that the 'really bad', therefore high priority, things like fire warnings were always on top etc... Any ideas? Is there some much easier / more logical way to do this?
In the ideal situation I would have one EICAS page where the annunciator list was everything shown and then on other pages it would only look at a sub-set i.e. Annunc20-25 and could select colour for the text based on which L var it used... Perhaps this is just too complicated?
I am working in XML, and I have a medium knowledge level there. I have no clue about coding in C, so it's an XML only project.
Cheers,
Geoff
This might be far too complicated, but I will explain what I want to do and perhaps someone can help me out...
I have an XML based panel in which the EICAS has an area for annunciator messages. Currently, the messages appear as individually positioned text strings, but, as I am modelling more systems (and from a peek at the real thing last week) I see that what I need to do is list the current messages because there are simply not enough spaces for them all to have 'their own place' on the screen...
Looking here, I see that I can store the relevant strings as L vars : http://www.fsdeveloper.com/forum/showthread.php?t=94088
So, for example, I could use this to have a register of available messages such as
L:Annunc1 => "RIGHT ENGINE FIRE"
L:Annunc2 => "LEFT ENGINE FIRE"
L:Annunc3 => "APU FIRE"
L:Annunc4 => "LEFT BRAKE OVERHEAT"
L:Annunc5 => "RIGHT BRAKE OVERHEAT"
L:Annunc6 => "SPOILER UP"
L:Annunc7 => "AUTOBRAKE OFF"
etc, etc... There would probably be about 40 of these
Then I would (I assume) be able to use a bit of code to look if the L Var was empty and if it was not, to display it... However, this is where I'm stuck: How do I "go through" all these and only display the ones that are not empty?? I.e. Star at Annunc1 and if it is 'live' then show that text, then look at Annunc2 and if it is empty skip it but if it is not then show that on the next line... This way I would simply show the first (lets say) 8 messages in one line - I would be clever in the order if them so that the 'really bad', therefore high priority, things like fire warnings were always on top etc... Any ideas? Is there some much easier / more logical way to do this?
In the ideal situation I would have one EICAS page where the annunciator list was everything shown and then on other pages it would only look at a sub-set i.e. Annunc20-25 and could select colour for the text based on which L var it used... Perhaps this is just too complicated?
I am working in XML, and I have a medium knowledge level there. I have no clue about coding in C, so it's an XML only project.
Cheers,
Geoff




