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

AVEVA™ InTouch HMI

HTZoomIn() Function

  • Last UpdatedFeb 22, 2017
  • 1 minute read

The HTZoomIn() function calculates a new chart width and start time. If the trend's scooters are at the left and right sides of the trend, then the new chart width equals the old chart width divided by two. The new start time is calculated based on the value of the LockString argument.

If the scooters are not at the left and right sides of the trend, the HTZoomIn() function zooms the trend to the zone defined by the scooters and ignores the LockString argument.

Category

Historical

Syntax

HTZoomIn(Hist_Tag,LockString);

Arguments

Hist_Tag

HistTrend tag assigned the name of the trend.

LockString

String representing the type of zoom:

StartTime

Keep the start time equal to before zoom

Center

Keep center time equal to before zoom

EndTime

Keep end time equal to before zoom

Remarks

If the scooter positions are not at the left and right sides of the trend, the new chart width is the time between .ScooterPosLeft and .ScooterPosRight positions. In this case, the value of LockString is not used. The minimum chart width is one second. The scooter positions are set to .ScooterPosLeft=0.0 and .ScooterPosRight=1.0 after the zoom.

Example

The following statement zooms the display by a factor of two and maintains the same start time for the Trend1 trend. Trend1.ScooterPosRight is equal to 1.0 and Trend1.ScooterPosLeft is equal to 0.0. If the start time before zooming was 1:25:00 PM and the chart width was 30 seconds, the new start time remains at 1:25:00. The new chart width is 15 seconds.

HTZoomIn("Trend1","StartTime");

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