Alarm Condition State color scripting in PG2 graphics
I have a color expression on a graphic element that is used throughout our system. The expression is:
if Mp4 > 0. && AlarmConditionState_Descendants > 0 && SL4 then
LogicalColorFromName(AlarmForegroundColor_Descendants, "", Gray)
else
Gray
Can someone explain to me what LogicalColorFromName(AlarmForegroundColor_Descendants, "", Gray) means and what value or color would it return when the alarm is active.
Thank you.
Voted best answer
Hi,
LogicalColorFromName is a Color Function and it returns a Color.
Its expression states as
LogicalColorFromName(ColorName, GroupName, Fallbackcolor)
In your case ColorName = AlarmForegroundColor_Descendants
GroupName = Empty
Fallbackcolor = Gray
It returns color of the logical color that exists, based on ColorName and GroupName. The Groupname may be replaced with the empty string (As in your case). Fallbackcolor is returned if a logical color is not uniquely found before the resolving process is completed.
Hope it answers the question.
Regards,
Ashish
Add new comment