Lake Shore Model 218 Temperature Monitor User’s Manual
Remote Operation
6-5
Standard Event Status Register and Standard Event Status Enable Register (Continued)
Query Error (QYE) Bit (2)
– The QYE bit indicates a query error. It occurs rarely and involves loss
of data because the output queue is full.
Operation Complete (OPC) Bit (0)
– This bit is generated in response to the
Q
OPC common
command. It indicates when the Model 218 has completed all selected pending operations.
6.1.4 Example IEEE Setup and Program
Below is an example of how to setup and run a simple program using the built-in Model 218 IEEE-488
interface. While it does not reflect every hardware/software configuration found in the field, it is
representative of the overall procedure. This example uses the National Instruments GPIB - PCII/IIA
card and QuickBasic 4.0 or 4.5 on a PC compatible.
6.1.4.1
GPIB Board Installation
1. Install GPIB-PCII/IIA card using National Instruments instructions.
2. Install NI-488.2 software (for DOS). Version 2.1.1 was used for the example.
3. Verify that config.sys contains the command: device = \gpib-pc\gpib.com
.
4. Reboot the computer.
5. Run IBTEST to test software configuration. Do not install the instrument before running
IBTEST.
6. Run IBCONF to configure the GPIB - PCII/IIA board and dev 12. Set the EOS byte to 0AH. See
Figure 6-1. IBCONF modifies gpib.com.
7. Connect the instrument to the interface board and power up the instrument. Verify address is
12 and terminators are CR LF.
6.1.4.2
Running the Example QuickBasic Program
1. Copy
c:\gpib-pc\Qbasic\qbib.obj
to the QuickBasic directory (QB4).
2. Change to the QuickBasic directory and type: link /q qbib.obj,,,bqlb4x.lib; where x = 0 for QB4.0
and 5 for QB4.5 This one-time only command produces the library file qbib.qlb. The procedure
is found in the National Instruments QuickBasic readme file Readme.qb
.
3. Start QuickBasic. Type: qb /l qbib.qlb. Start QuickBasic in this way each time the IEEE interface
is used to link in the library file.
4. Create the IEEE example interface program in QuickBasic. Refer to Table 6-1. Name the file
“ieeeexam.bas” and save.
5. Run the program.
6.1.5
Notes on Using the IEEE Interface
• To chain commands or queries together, insert a semi-colon (;) between them. Multiple queries
cannot be chained. The Model 218 responds to the last query entered when addressed as a
talker.
• Queries generally use the same syntax as an associated setting command followed by a
question mark. They most often return the same information that is sent. Some queries have no
command form.
• The
term
free field
indicates that the decimal point is a floating entity and can be placed at any
appropriate place in the string of digits.
• Leading zeros and zeros following a decimal point are unneeded in a command string, but they
are sent in response to a query. A leading “+” is not required, but a leading “–”
is
required.
•
[term]
indicates where the user places terminating characters or where they appear on a
returning character string from the Model 218.
Summary of Contents for 218S
Page 14: ......