Programming instructions

85
Intermec Fingerprint 6.13 – Programmer's Guide
8. OUTPUT FROM FINGERPRINT, cont'd.
2. Redirecting Output
from Std Out Channel
to File
As described in chapter 8.1, by default some instructions return data
on the standard OUT channel. However, it is possible to redirect
such output to a file using the REDIRECT OUT statement, as
described below.
REDIRECT OUT
This statement can be issued with or without an appending string
expression:
REDIRECT OUT <sexp>
The string expression specifies the name of a sequential file that
will be created and in which the output will be stored. Obviously,
in this case no data will be echoed back to the host.
REDIRECT OUT
When no file name appends the statement, the output will be
directed back to the std. OUT channel.
Example:
The output is redirected to the file "IMAGES.DAT". Then the
images in the printer's memory is read to the file after which the
output is redirected back to the standard OUT channel. Then the file
is copied to the communication channel "uart1:" and printed on the
screen of the host.
10 REDIRECT OUT "IMAGES.DAT"
20 IMAGES
30 REDIRECT OUT
RUN
Ok
COPY "IMAGES.DAT","uart1:"
Yields e.g.:
CHESS2X2.1 CHESS4X4.1
DIAMONDS.1 GLOBE.1
391084 bytes free 1352 bytes used
Ok