EasyManua.ls Logo

SPEX 270M - To Query Number of States; Reading the Device

Default Icon
89 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
"Q [HWARE NUMBER];"
EXAMPLES:
270M
Rapid
Scanning Imaging Spectrograph
"Q
O;"
- ask for position
of
monochromator. Read device - get answer from device.
"Q
10;" - ask for position of side exit slit.
Read
device - get answer from device.
2.6
To
Query Number of States:
This function is used
to
determine the number of states that exist on the system
controlled by the device driver. The device driver responds, placing an ASCII numeric
string telling the number of states into
an
internal buffer. The contents of the internal
buffer become known to the caller only when the device is read (see 6).
SYNTAX:
"QS;"
EXAMPLE:
"QS;" - ask for number of
state.s.
Read
device - get answer from device.
2. 7 Reading
the
Device:
This function is used
to
get information from the device driver. Unlike the other
commands in the protocol, this function is not sent to the device driver in the form of
a command. Instead, it is "received" by one's program whenever a request
to
read
from the device driver is made. The device driver maintains an internal buffer used
exclusively for this function. Whenever the driver is read, it sends whatever information
is stored in this internal buffer back
to
the caller. It is up
to
the programmer
to
be sure
that this buffer contains the proper information. This is easy
to
assure by sending a
· command that modifies the internal buffer immediately before reading the device. As of
this writing, only the "Query device" command (see above) modifies the internal
buffer.
66
Revised November 24.
1992
/
/
Leica Microsystems, Inc.'s Ex. 1033
Page 75 of 89