Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Log messages to the Log Viewer

  • Last UpdatedJun 13, 2024
  • 1 minute read

Use the Log Viewer to help you debug QuickScripts. The Operations Control Log viewer is located in the System Management Console and is installed when you install the InTouch HMI.

One way to debug QuickScripts

  1. Set check points in the QuickScript to log values to the Log Viewer.

  2. Open Operations Control Log viewer to view the values.

Another way to debug QuickScripts is to create a Key Script that logs tag values to the Log Viewer.

Set check points in a QuickScript

  1. Open the QuickScript that you suspect is causing errors.

  2. Locate the line where you want to set a check point.

  3. Insert one of the following snippets of code after that line:

    • LogMessage(messagetag);
      In this script, messagetag is the name of a message tagname whose value you want to log.

    • LogMessage(StringFromIntg(inttag,10));
      In this script, inttag is the name of an integer tagname whose value you want to log.

    • LogMessage(Text(realtag,"#.#######"));
      In this script, realtag is the name of a real tagname whose value you want to log.

    • LogMessage(DText(disctag,"TRUE","FALSE"));
      In this script, disctag is the name of a discrete tagname whose value you want to log.

    • Log more information to the LogViewer at a checkpoint, such as an identifier and/or tagname. For example,

      LogMessage("DEBUG tag:"+ind.name+" value:"+Text(ind,"#.####"));

      In this script, ind could be an analog indirect tag.

    TitleResults for “How to create a CRG?”Also Available in