
Chapter 8
Defining Strings for Serial Ports and Viewports
8–38
In order to use the Repeat String feature, you must define the range (that is,
the Start, End, and Increment values) using the Repeat String menu:
Repeat String box
Repeat String menu
In configuring the repeat range for a string, you set the Start, the End, and
the Increment values.
Start value
End value
Increment value
During operation in the run mode, when the string is to be displayed, the
index is set to the Start value, then:
(1) If the End value is greater than or equal to the Start value, the string
is displayed.
(2) The index is incremented (according to the Increment value).
The string is displayed for each index value, until the index value exceeds
the End value.
The CVIM module thus displays the string for each index value, until the
index value exceeds the End value. If the # character is included in the
repeated string, the current index value replaces the # character in the string.
In our example, to display the string 5 times, and include the numbers 1–5 in
the five strings, respectively, we set the Start value to 1, the End value to 5,
and the Increment to 1. The index will increment through values 1 to 5,
printing the string five times. If instead we needed to indicate the numbers
6–10, we can set the Start value to 6, the End value to 10, and set the
Increment to 1, so the index will increment from 6–10, and so forth.
Comentarios a estos manuales