Setting Alarms to disply on alarms Banner based on priority

Hi,

I need to filter alarms with priority avobe 5 to be annunciated on alarm banner. Books online talks about frsVariables gn_ProcessAlarmThresold to handle this by setting its value to the priority above wich alarmsare announced.

But, setting this value in example to 5 doesn't work, in fact whe the alarm banner graphic is opened the value of gn_ProcessAlarmThresold is set back to 3 (default value as explained on books online).

Looking Alarm Banner VBA code I've found that frszInitAlarmThresholds method is changing  gn_ProcessAlarmThresold  but this method is hidden (it is part of frsFactoryGlobals file).

Before unlocking frsFactoryGlobals to continue further investigation, if anybody knows how to filter alarms with priority on alrm banner I will appreciate some advice.

 

Regards

  • Did you look at the USERSETTINGS.grf file and set the thresholds from inside the vba code?
  • In reply to AdrianOffield:

    Yes I did but value of gn_ProcessAlarmThresold is set back to default(3) after frszInitAlarmThresholds is called from Alarm banner picture.
    In fact there is a specific comment on alarm Banner CfixPicture_Initialize regarding that:

    Private Sub CFixPicture_Initialize()
    On Error GoTo ErrorHandler
    Dim FirstAlarmIdx As Long
    Dim formatAnimation As Object
    Dim strFullName As String
    Dim lStatus As Long
    Dim bIsConnected As Boolean
    Dim lIndex As Long

    'the Alarm Banner is opening so update the alarm system with the alarm thresholds
    'NOTE: This code was initially in the frsFactoryGlobal.Startup.frszFactoryGlobalsInit
    'but it did not work correctly there. The values set in User_ref.grf/UserSettings.grf
    'would not be picked up by this routine. This is the best place since the values that
    'are set by the init routine affect what is visible in the alarm banner.
    .....
    .....

    Regards
  • In reply to gamella:

    in usersettings.grf there is a section that needs to be modified to alter DV Operate alarm behavior:

    '===================================
    'Alarm threshold initialization
    ' NOTE
    'Uncomment only ONE of the following #Const lines at a time
    'To Disable - uncomment the '=0' line and comment the '=1' line.
    'To Enable - uncomment the '=1' line and comment the '=0' line.
    '
    'Uncomment the following line to disable the initialization of the Alarm Threshold default values
    #Const INIT_ALARM_THRESHOLD = 0 'Disables Initialzation of Alarm Threshold Defaults
    '
    'Uncomment the following line to enable the initialization of the Alarm Threshold default values
    '#Const INIT_ALARM_THRESHOLD = 1 'Enables Initialzation of Alarm Threshold Defaults
    '
    'These values control the alarms that will be displayed
    'Uncomment the following lines, and set the value to the desired threshold.
    'in the alarm banner.
    'default values :
    'Const PROCESS_THRESHOLD_DEFAULT = 3
    'Const DEVICE_THRESHOLD_DEFAULT = 7
    'Const HARDWARE_THRESHOLD_DEFAULT = 7
    'Const SIS_PROCESS_THRESHOLD_DEFAULT = 3
    'Const SIS_DEVICE_THRESHOLD_DEFAULT = 7
    'Const SIS_HARDWARE_THRESHOLD_DEFAULT = 3
    #If INIT_ALARM_THRESHOLD Then
    If Not DeltaVAlarmThreshold Is Nothing Then
    DeltaVAlarmThreshold.InitDefaultAlarmThresholds PROCESS_THRESHOLD_DEFAULT, _
    DEVICE_THRESHOLD_DEFAULT, _
    HARDWARE_THRESHOLD_DEFAULT, _
    SIS_PROCESS_THRESHOLD_DEFAULT, _
    SIS_DEVICE_THRESHOLD_DEFAULT, _
    SIS_HARDWARE_THRESHOLD_DEFAULT
    End If
    #End If
    'end of Alarm threshold initialization
  • In reply to AdrianOffield:

    Yes!!! this works.

    Thanks
  • In reply to gamella:

    Awesome! Thanks, for posting . I have "verified the answer" for other group members to find more easily by selecting "verify the answer" in the bottom on 's post.

    Best Regards,

    Rachelle McWright: Business Development Manager, Dynamic Simulation: U.S. Gulf Coast