Download InTouch User's Guide

Transcript
916
Chapter 14
6.
Click OK.
Position the left scooter at the very left edge of your trend. The left scooter is
now complete. Duplicate the process for the right scooter using
.ScooterPosRight. The value fields remain the same.
Displaying Values at Scooter Positions
To display values based on the current location of the scooter, create a numeric
text object, for example, #.00 and assign it to a Value Display - Analog link
with an expression. For example:
HTGetValueAtScooter( "Trend1", Trend1.UpdateCount, 1,
Trend1.ScooterPosLeft, 1, "PenValue" )
This example will retrieve the value for Pen1 at scooter position left on
Trend1. If the slider is moved in Runtime, the Value Display - Analog link
will automatically be updated with the new value at the new scooter location.
Retrieving Values Between Zones
To receive data between the scooters current location in the form of either, max
value, min value, average value or standard deviation, create a numeric text
object, for example, #.00, and assign an Value Display - Analog link with an
expression. For example:
HTGetValueAtZone( "Trend1", Trend1.UpdateCount,
Trend1.ScooterPosLeft, Trend1.ScooterPosRight, 1,
"PenMaxValue" )
This example will retrieve the Max value for Pen1 on Trend1 between scooter
position left and scooter position right.
Zooming In and Out
To zoom in on the trend, create a button and assign it to a Touch Pushbutton Action link. Choose the On Button Down condition and enter the following
QuickScript:
HTZoomIn( "Trend1", "Center" );
This example will “anchor” the center time of the trend and the new chart
width will equal the old chart width divided by two if the scooters are at the far
left and right positions. If the scooters are moved, the new chart width is the
time between scooter left and scooter right and the LockString (“Center”) is
not used.
For more information using historical QuickScript functions, see “Historical
QuickScript Functions.”
InTouch User’s Guide