Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page The GetObjectIds method  The SourceType property Next page


GetObjectParams method is used to get the parameters of an object.

Syntax for method invocation:

 function GetObjectParams(objectType : String, objectId : String)

Method arguments:

  1. objectType is a required argument. It specifies the type of the system object (CAMGRAYGRABBER, and so on) for which you want to return the type of the parent object. Possible values: String type, range is limited by object types registered in the system.
  2. objectId is an object’s identifier. Possible values: String type.

Example. On macro 1, check the color control of camera 2. If camera 2 is a color one, set it to recording.

 if (Event.SourceType == "MACRO" && Event.SourceId && Event.Action == "RUN")
{
var msg = CreateMsg();
msg.StringToMsg(GetObjectParams("CAM", "2"));
if(msg.GetParam("color") == "1")
{
DoReactStr("CAM", "2", "REC", "");
}
}