Lake Shore Model 370 AC Resistance Bridge User’s ManualStandard Event Status Register and Standard Event Status Enable Register (Continued)The Standard Event Status Enable Query, QESE?, reads the Standard Event Status Enable Register. QESR? reads theStandard Event Status Register. Once this register has been read, all of the bits are reset to zero.Power On (PON), Bit (7) – This bit is set to indicate an instrument off-on transition.Command Error (CME), Bit (5) – This bit is set if a command error has been detected since the last reading. Thismeans that the instrument could not interpret the command due to a syntax error, an unrecognized header,unrecognized terminators, or an unsupported command.Execution Error (EXE), Bit (4) – This bit is set if an execution error has been detected. This occurs when theinstrument is instructed to do something not within its capabilities.Query Error (QYE), Bit (2) – This bit indicates a query error. It occurs rarely and involves loss of data because theoutput queue is full.Operation Complete (OPC), Bit (0) – This bit is generated in response to the QOPC common command. It indicateswhen the Model 370 has completed all selected pending operations. It is not related to the QOPC? command, which isa separate interface feature.6.1.5 IEEE Interface Example ProgramsA Visual Basic program is included to illustrate the IEEE-488 communication functions of the instrument. Instructionsfor setting up the IEEE-488 board is included in Section 6.1.5.1. Refer to Section 6.1.5.2 for instructions on how to setupthe program. The Visual Basic code is provided in Table 6-2. A description of program operation is provided inSection 6.1.5.3. While the hardware and software required to produce and implement these programs is not included withthe instrument, the concepts illustrated apply to most applications.6.1.5.1 IEEE-488 Interface Board Installation for Visual Basic ProgramThis procedure works for Plug and Play GPIB Hardware and Software for Windows 98/95. This example uses the AT-GPIB/TNT GPIB card.1. Install the GPIB Plug and Play Software and Hardware using National Instruments instructions.2. Verify that the following files have been installed to the Windows System folder:a. gpib-32.dllb. gpib.dllc. gpib32ft.dllFiles b and c support any 16-bit Windows GPIB applications being used.3. Locate the following files and make note of their location. These files will be used during the development processof a Visual Basic program.a. Niglobal.basb. Vbib-32.basNOTE: If the files in Steps 2 and 3 are not installed on your computer, they may be copied from your NationalInstruments setup disks or they may be downloaded from www.natinst.com.4. Configure the GPIB by selecting the System icon in the Windows 98/95 Control Panel located under Settings on theStart Menu. Configure the GPIB Settings as shown in Figure 6-1. Configure the DEV12 Device Template as shownin Figure 6-2. Be sure to check the Readdress box.Remote Operation 6-5