Skip to main content
InSource Solutions

TN IT274 Creating A Generic Timestamp Display In InTouch

Count5.JPGInSource_Logo_Transparent.png

Description

This article from InSource Solutions shows you how to make a generic timestamp display in InTouch.

  • Author: Daniel London
  • Published: 05/31/2017
  • Applies to: InTouch

Details

This article walks you through how to create a generic timestamp display in Wonderware InTouch. This can be used to show an operator when a process was last executed by including this display as part of an executed script.

  1. Create a memory message tag to display the date/time string. The example tag I used is TimeStampStringTag.

TagNameDictionary.jpeg

  1. Create a window with a button to execute the script and a label to display the timestamp string.

Window.jpeg

  1. Right click the button and go to Animation Links. We are going to select the Touch Pushbuttons/Action animation.

Animation_Links.jpeg

  1. Enter the following script (we are using the memory message tag we created in step one).

TimeStampStringTag = $TimeString + " " + $DateString;

$TimeString and $DateString are two system string tags that display the time and date.

ButtonScript.jpeg

  1. Right click the label and go to Animation Links. Select the Value Display/String.

Animation_Links_2.jpeg

  1. Assign the value display to the memory message tag that was created in step 1.

LabelAssignment.jpeg

  1. Save changes and open the window in WindowViewer. Click the button and the timestamp string will be displayed in the label. It will update each time the button is clicked.


FinishedProduct.jpeg