use Constants
couple of examples of how you could use the constants
IFT
We could use the constant at the IFT of layout, parameter or the fault code. The code would be similar on any of those. Let's use the constant that was created previously at Add Constant : ATA36_LOW_BLEED_TEMP.
The constant seems to be related to the temperature of bleed, thus we could create an IFT at the moment of reception of the report, parameter or fault code containing information about that temperature. In this example, we'll create the IFT on the report (follow the IFT at Layout for details) that will check the value of the bleed temp and compare it with the constant. If the value is lower than specified constant, then we will tag the message with the tag "LOW_BLEED_TEMP":

Dashboard Rule
Similarly to previous example (IFT) Let's use the constant that was created previously at Add Constant: ATA36_LOW_BLEED_TEMP.
The constant seems to be related to the temperature of bleed, thus we could change the colour of an object (_anim) of the dashboard that is related to that temperature. Let's get to a dashboard, by going to Edit Dashboards and choose the dashboard that visualize bleed data:

At the previous example, we have compared our constant to existing parameter of the bleed temperature, that is TPO_1. On the above dashboard, we find the object (anim) that is related to that temperature - TPO_1_anim. Click on the name of the object to highlight it on the dashboard and on '+' button situated next to the TPO_1_anim to create a new Dashboard Rule:


The box will show up - this is where you could write the rule that uses the constant ATA36_LOW_BLEED_TEMP. In the example, we will change the colour of the value of the temperature, whenever that temp is lower than the constant:

Remember to save the rule by clicking on the Save button situated on the top right side of the dashboard rule editor.
Find Constant
If you'd like to know if any constant is used somewhere at the platform!
Knowing that the constants could be used either at IFTs or the Dashboard Rules, you can search for them very easily.
find constant on IFTs
To find any constant that is used at the IFTs, go to Edit IFTs, and start typing it's name in the Search Box located on the top left corner of the display the platform:

Now that you found where the constant is use, you can go ahead and edit the IFT if needed.
find constant on Dashboard Rule
To find any constant that is used at the Dashboards, go to Edit Dashboard, and start typing it's name in the Search Box located on the top left corner of the display the platform:

All the dashboards that uses the constants will shoe up. If none of the dashboards uses the constant, then no dashboard will be shown.
Now that you found where the constant is use, you can go ahead and edit the Dashboard if needed. To find on which object (_anim) the constant is used - search again by its name in the Search Box:

Objects (_anim) that contain constant will show up - check the code to find it:

Last updated
Was this helpful?