Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example. When the Backup Archive 1 module starts archiving video recordings, the analog output 1 of the Video Capture Device 2 is disabled. Send the command as an event to be registered in the Event Viewer.

Info
titleNote

 When When running this script, the analog output 1 of the Video Capture Device 2 is not disabled.

Code Block
languagejavascript
 if (Event.SourceType == "ARCH" && Event.SourceId == "1" && Event.Action == "ACTIVE ")
{
  var msgevent = CreateMsg();
  msgevent.SourceType = " GRABBER ";
  msgevent.SourceId = "2";
  msgevent.Action = "MUX1_OFF";
  NotifyEvent(msgevent);
}