User Manual For CYCLONE
FX
Programmers
109
Figure 11-14: a) Compressed Types for “Rev-“ Test Character; b) MT Type Change for “Rev-“ Test
Character
11.6.1.3.4 Type Changing Errors
When initially created, a Char Test type always matches the type of character in the corresponding
Sample field. However, changing a Char Test type or a Sample character can case an error. Errors
are always indicated by changing appropriate background colors to
red
. For example, if character
number 05 type is changed to NUmeric (
NU
) the following error would appear on the screen:
Figure 11-15: Error from invalid type for Sample character 05
Notice that the
Char Test(TYPE):
Button is red to indicate a problem in that field and that the
specific type character “
C
” causing the error is also red. Note that it is not the type character which
causes the error but the Sample character which is tested against its type. If multiple type boxes
were in error, each of the type boxes would be marked in red. These error conditions can be
corrected either by changing the
Char Test(TYPE):
entry or changing the corresponding
Sample
character. Clicking on almost anything con the screen clears all error indications.
11.6.1.4 Copy character types from step 3 to
Range-1
or
Range-2
.
When Char Test characters were added, down arrows were added only for contiguous types.
These down arrows can be used to select which characters from
Char Test(TYPE):
are added
to the two possible Optional Range Restrictions,
Range-1
and
Range-2
. In general, range tests
should only be added when the Char Type is not sufficient to test the appropriate values.
The characters add to a range are numerically concatenated together to form a single numerical
value which will be compared against specified upper and lower bounds tests. This allows for
testing to see if the target should be programmed based upon such things as serial numbers.
When not all allowable sequences for the types defined are desired. For instance, if a sequence
number from 00000-49999 was desired, but not 50000-99999, a
Range
restriction can be used. If,
however, 00000-99999 was fine for the serial number test, a range restriction is not needed and
the five characters are simply defined in the
Char Test(TYPE):
as Numerical(
NU
). In most
cases, valid range restrictions will probably be restrictions based upon numeric digits. However,
any characters: numeric, hexadecimal, alphabetic, control characters, etc. are allowed to form a
range.
Down arrows are not provide for a Fixed Character (
FC
) type since it is usually sufficient for them
to be tested as
Char Test(TYPE):
characters. Down arrows are only shown for contiguous
types since non-contiguous types would cause holes in sequence numbers which can be
confusing. To bypass these restrictions, see
Section 11.6.6.1 - Bulk Copy Option
.