Go to documentation repository
The GetIPAddress method returns the IP - address of the Axxon PSIM kernel according to current the existing architecture of the distributed video surveillance system architecture.
Method call syntaxSyntax for method invocation:
| Code Block | ||
|---|---|---|
| ||
function GetIPAddress (dst : String, src : String) : String |
Method arguments:
| Info | ||
|---|---|---|
| ||
The information about all connections of the local computer (kernel) to other remote computers (kernels) registered during the |
...
configuration of the distributed architecture |
...
is displayed in the Architecture tab of the System |
...
settings window. |
Usage examples
Problem. Upon Example. On a camera alarm, determine the name of the server computer to which this camera is connected to, and output in the debug window the IP - address of the connection between this server computer and the local computer where on which the script executes, to the debugger windowis executed.
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "CAM" && Event.Action == "MD_START")
{
var camid = Event.SourceId;
var compname = GetObjectParentId("CAM", camid, "COMPUTER");
var ip = GetIPAddress("WS1","WS1"); \\if the script is run on the computer where kernel of Axxon PSIM software has been installed
DebugLogString("IP-address of the alarmed camera computer" + ip);
} |
| Info | ||
|---|---|---|
| ||
Instead of "WS1" in the example, you must enter the name of the computer on which the script is run and Axxon PSIM kernel is installed. |