Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Examples of scripts with Video surveillance monitor and Cameras  Examples of scripts with detection tools Next page


Specifying the text to display on the map

When you add an object to the Map, you can select the type of the Text display (see Attaching objects to the layers of interactive map). You can use the script in the JScript language to change the displayed text.

Example. The Text type of display on the map is selected for the Camera 1. It's required to display the value of the MyVar variable, read from the C:\test.ini file, on the map and debug window on Macro 1.

if(Event.SourceType == "MACRO" && Event.Action == "RUN") 
{ 
 var result = parseInt(ReadIni("MyVar","C:\\test.ini"));
 result += 2;
 NotifyEventStr("CAM","1","ANALOG_PARAMS","text<Variable value = \n" + result + ">, blink_state<1>");
 DebugLogString(result); 
}


  • No labels