Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Examples of scripts with the Incident server and Incident manager  Examples of scripts with Operator query panel and SIP-terminal Next page


Formats

Format of events procedure for the Operator protocol object:

OnEvent("OPERATORPROTOCOL","_id_","_event_")

Operator format for describing the actions with the Operator protocol:

DoReact("OPERATORPROTOCOL","_id_","_command_" [,"_parameters_"]);

Format of events procedure for the Event Viewer object:

OnEvent("EVENT_VIEWER","_id_","_event_")

Operator format for describing the actions with the Event Viewer:

DoReact("EVENT_VIEWER","_id_","_command_" [,"_parameters_"]);

Examples

Examples of using events and reactions of the Operator protocol object:

  1. Delete the first alarm on Camera 3 from the Operator protocol 1 window on Macro 2.
    OnEvent ("MACRO","2","RUN")
    {
        DoReact("OPERATORPROTOCOL","1","DEL_ALARM","objtype<CAM>,objid<3>,options<first>");
    }

  2. Hide the Alarm situation, Suspicious situation and False alarm buttons for the Disarm event from Camera 12 in the Operator protocol 1 window on Macro 2.
    OnEvent ("MACRO","2","RUN")
    {
        DoReact("OPERATORPROTOCOL","1","HIDE_BUTTON","button<alarm,suspicious,false>,hide<1>,objtype<CAM>,objaction<DISARM>,objid<12>");
    }

Example of using events and reactions of the Event Viewer object:

Set general background color to black and general text color to white for Event Viewer 1 on Macro 1.

OnEvent ("MACRO","1","RUN")
{
    DoReactStr("EVENT_VIEWER","1","UPDATE_VIEW","bk_color<#000000>, defclr<#FFFFFF>");
}


  • No labels