Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The SourceType property stores the system type of the MsgObject or Event object.

Property call syntax

 SourceType : String

Usage examples

Problem. When Relay 1 closes (for example, the button connected to the relay is pressed), print the frames from Cameras 1 and 2.

 if (Event.SourceType == "GRELE" && Event.SourceId == "1" && Event.Action == "ON")
{
 //activating the Camera 1 window
 DoReactStr("MONITOR","1","ACTIVATE_CAM", "cam<1>"); 
 //printing the frame from Camera 1
 DoReactStr("MONITOR","1","KEY_PRESSED","key<PRINT>");
 //activating the Camera 2 window
 DoReactStr("MONITOR","1","ACTIVATE_CAM", "cam<2>");
 //printing the frame from Camera 2
 DoReactStr("MONITOR","1","KEY_PRESSED","key<PRINT>");
}
  • No labels