Download GPIB Library Software User`s Manual
Transcript
GPIB Library Software User's Manual Programming language-specific information Status% = ilclr (0) or CALL ibclr 0 SAMPLE.BAS illustrates the use of several of the GPIB library routines. Developing GPIB Programs with HP VEE HP VEE is a graphic programming environment from Hewlett Packard that works with the GPIB library. HP Vee comes with hundreds of Instrument drivers that simplify the programming of most common GPIB instruments. Enabling GPIB Support Within HP VEE HP VEE automatically recognizes that the GPIB library has been installed on your system. However, if you also have a National Instruments GPIB library on your system, HP VEE may recognize the wrong library. In that case, you should rename or remove the following National Instruments files from your system. \windows\system\gpib.dll \windows\system\gpib-16.dll \windows\system\gpib-32.dll Earlier than HP Ver 4.0 If you are using a HP VEE version less than 4.0, GPIB support is automatically enabled. The GPIB board is installed as GPIB interface 14. All GPIB devices within HP VEE have a 4 digit address property - 14xx, where xx is the GPIB address of the device. For example if you have a signal generator set to GPIB address 7, then the address field for this device is set to 1407. This address (1407) should be used throughout VEE whenever you want to access that device. Ver 4.00 If you are using version 4.0 (or greater) of HP VEE, first copy the GPIB DLL files from the C\gpib_32 directory into the \windows\system directory. Run HP Vee. Select I/O from VEE's main menu bar, then select Instrument Manager to display the Instrument Manager dialog box. Press the refresh button on the right. The panel on the left updates with a new driver called HP-IB0. This is the GPIB library. Select HP-IB0 on the left panel, then press the Edit.. button. A small Interface Configuration dialog box appears. Change the address field to 14, then select OK to close the dialog. The HP-IB0 in the left pane has changed to HP-IB14. Select HP-IB14 and press the refresh button again. All devices that connected to the GPIB boards appear beneath the HP-IB14 icon in the left pane. Each device icon has a "?" superimposed on it to indicate that the system does not yet know what type of device it is. Select one of the unknown devices and press "refresh" again. A small dialog box appears that says "OK to Send '*IDN?' to NewDevice. If you select OK, the system sends this command to the instrument. "*IDN?" is a standard (SCPI) command which instructs the device to send back an identification string. Many GPIB instruments respond to this command, and the system automatically recognizes which type of device it is. 25