UCD Console for UCD-340 User Manual | Unigraf Oy
67.
-pr "outer loop cmd 1"
-loops 3 #inner loop
-pr " inner loop cmd 0"
-pr " inner loop cmd 1"
-endloops #inner loop
-pr "outer loop cmd 2"
-endloops
Looping with variables:
-var Times=3,5,6,8,10
-var Pats=0,5,10
-loops i=Pats #outer loop 3 times
-c TSI_W_PG_PREDEF_PATTERN_SELECT=Pats[i];
-loops j=Times #inner loop 5 times
-c TSI_W_PG_PREDEF_TIMING_SELECT=Times[j];
-endloops
-endloops
Using if-else-endif:
-if .read = TSI_R_USBC_CABLE_STATUS.bitsoff.1
-pr "Straight orientation"
-else
-pr "Flipped orientation"
-endif
Output
Output is directly to the console window and possibly to an output file.
Output to a file is automatic when scripts are run from a file:
-r file.txt
The output file will be of the form:
file_20181008105217_log.txt
Extra html output for tests (see 1.2.6 Running Tests below) can be started via
-beginhtm
and
ended via
-endhtml
.
If the device is changed via a
-d Dev
command or if another
-beginhtml
command is executed,
the file will be closed (equivalent to
-endhtml
).
The html output file will be of the form <
devsink>_20181008105224_log.html
where
<devsink>
is the device alias name.
Summary of Contents for UCD-240
Page 1: ......
Page 76: ...UCD Console for UCD 340 User Manual Unigraf Oy 76 ...