Lakeshore Learning Materials 622 User Manual

Page 42

Advertising
background image

Lake Shore Model 620/622/623/647 Magnet Power Supply User’s Manual

Remote Operation

4-4

The Standard Event Status Enable Register enables any of the Standard Event Status Register reports. The

Standard Event Status Enable command (*ESE) sets the Standard Event Status Enable Register bits. Set a

bit to enable its function. To set a bit, send the *ESE command with the bit weighting for each bit to set added

together. See the *ESE command for further details.

The Standard Event Status Enable Query, *ESE?, reads the Standard Event Status Enable Register. *ESR?

reads the Standard Event Status Register. Once this register is read, all bits are reset to zero.

Power On (PON) Bit (7). This bit is set when the power cycles from OFF to ON.

Command Error (CME) Bit (5). Set upon detection of a command error since the last reading. This means

the instrument could not interpret the command due to a syntax error, unrecognized header, unrecognized

terminators, or unsupported command.

Execution Error (EXE) Bit (4). Set upon detection of an execution error. Occurs when the instrument is

instructed to do something outside its capabilities.

Device Dependent Error (DDE) Bit (3). Reserved for future use.

Query Error (QYE) Bit (2). Indicates a query error. Occurs rarely and involves loss of data due to a full output

queue.

Operation Complete (OPC) Bit (0). Generated in response to the *OPC (operation complete) common

command. It indicates MPS completion of 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 MPS 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
Use the following procedure to install the GPIB Board.

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 = C:\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 the address as 12 and

the terminators as CR LF.

4.1.4.2 Run The Example QuickBasic Program
Use the following procedure to run the 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. See Table 4-1. Name the file “ieeeexam.bas”

and save.

5. Run the program.

Advertising
This manual is related to the following products:

623, 620