270M
Rapid Scanning
Imaging
Spectrograph
write(fptr, 'I ', mono_ calib _ steps, ' ', max_ slit_ steps,';');
To read the device (only in the case of using the device driver query function), reset
the file for input, read from the file, then reset the file for output.
procedure read_ query;
var
position : longint;
begin
reset(fptr);
read(fptr, position);
rewrite(fptr);
end;
5.4 Communicating from a Text File:
Create a text file that contains the command(s) (and comments if desired) that you
would like
to
send
to
the device driver. For instance, a text file created for the purpose
of
interfacing with the device driver might contain the following line(s):
(beginning
of
text)
F 3000 O O
O;
\Set
monochromator frequency to 3000;
I 7 38000 1120; \Initialize system;
( end of text)
After the text file has been created (assume that our text file is called INITSYS), the
commands in the text file can be sent to the device driver by using the
DOS
COPY
command like this:
COPY INITSYS
SPEXOOOO
(press carriage return key)
5.5 Communicating from the DOS Command Une:
Interfacing with the device driver from the command line is very similar to interfacing
with the device driver from a text file. The only difference is that the device driver
commands are coming from the keyboard/screen rather than from a text file. Type the
line: COPY CON:
SPEXOOOO
at the command line. Enter the commands that you want
to
be sent
to
the device driver. When you are finished typing in the commands that
you want
to
send, press either the
FS
key
or
the Ctrl-Z key combination. Then press
the ENTER key
to
send the commands
to
the device driver.
70
Revieed
Nov~
24,
1992
Leica Microsystems, Inc.'s Ex. 1033