Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Examples of scripts with PTZ devices and Control devices  Examples of scripts with the Incident server and Incident manager Next page


Procedure is started when the corresponding event occurs. Format of events procedure for the Core object:

OnEvent("CORE","_id_","_event_")

Example. When a face appears in the frame, display the video image from the corresponding camera on Monitor 2. When the face disappears, remove the video image from the corresponding camera from Monitor 2.

OnEvent("CORE",N,"DO_REACT")
{
    if (strequal(action,"SET_MARKRECT"))
    { 
        DoReact("MONITOR","2","ADD_SHOW","cam<"+param5_val+">"); 
    }
    if (strequal(action,"DEL_MARKRECT"))
    {
        [ 
        Wait(2); 
        DoReact("MONITOR","2","REMOVE","cam<"+param0_val+">"); 
        ] 
    }
}


  • No labels