![Guildline 6530 Series Operator'S Manual Download Page 148](http://html1.mh-extra.com/html/guildline/6530-series/6530-series_operators-manual_2278476148.webp)
Section 8
OM6530-C1-00
19 November, 2019
8-7
8.6.
SAMPLE BUS CONTROL PROGRAM
The following is a brief note on how to configure a National Instruments GPIB-PC controller
card when used with the 6530. A program outline is provided that collects data using the
National Instruments GPIB-PC interface.
Assuming that the National Instrument driver has been installed with all the default naming, the
device name for ADDRESS 4 will be "DEV4", and could be used to control the 6530.
The "DEV4" should be configured as follows:
-
Default device name:
DEV4
-
GPIB address (fixed):
4
-
Secondary address:
none
-
Timeout setting:
3 seconds
-
Serial poll timeout:
3 seconds
-
Terminate read on EOS:
YES
-
Set EOI with EOS on write:
YES
-
Type of compare on EOS:
7 bit
-
EOS byte:
0A hex
-
Send EOI at end of writes:
YES
-
Enable repeat addressing:
YES
-
Programming Note 1 : BASIC
Sample Bus Control Program Using Basic And National Instruments GPIB-PC Controller
100 REM BASIC Example Program - for Guildline Model 6530 Teraohm Bridge-
Meter
110 REM 6530
120 REM
130 REM You MUST merge this code with DECL.BAS.
140 REM
150 REM Assign a unique identifier to device and
160 REM store in variable DEV%.
170 REM
180
BDNAME$ = "DEV4"
190
CALL IBFIND (BDNAME$, DEV%)
200 REM
210 REM Check for error on IBFIND call.
220 REM
230
IF DEV% < 0 THEN GOSUB 2000
240 REM
250 REM Clear the device.
260
CALL IBCLR (DEV%)
270 REM
280 REM Check for an error on each GPIB call to be
290 REM safe.
300 REM