Example Ieee Setup And Program; Gpib Board Installation; Notes On Using The Ieee Interface - Lakeshore 330 User Manual

Autotuning temperature controller
Table of Contents

Advertisement

Lake Shore Model 330 Autotuning Temperature Controller User's Manual
Device Dependent Error (DDE) Bit (3) – Set to indicate a device dependent error. Determine the actual
device dependent error by executing the various device dependent queries.
Query Error (QYE) Bit (2) – Set to indicate a query error. Rare. Involves data loss due to full output queue.
Operation Complete (OPC) Bit (0) – This bit is generated in response to the QOPC common command. It
indicates when the Model 330 has completed all selected pending operations.
4.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 330 IEEE-488
Interface. It does not reflect every hardware/software configuration found in the field. This example uses the
National Instruments GPIB - PCII/IIA card and QuickBasic 4.0 or 4.5 on a PC compatible.
4.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 setup in
Fig 4-1. IBCONF modifies gpib.com.
7. Connect the instrument to the interface board and power up the instrument. Verify address as 12 and
terminators as CR LF.
4.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 IEEE sample interface program in QuickBasic. See Table 4-1. Name file "ieeeexam.bas" and save.
5. Run the program.
4.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 330 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.
• Add a query to the end of a command string to confirm command execution. For example, CUNI K;CUNI?
commands the Model 330 to set the temperature units to kelvin then return the temperature units to
confirm the change.
• 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 330.
4-4
Remote Operation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents