Download Print this page

Keithley ADC-16 User Manual page 50

Analog input board

Advertisement

CHAPTER 6 THE
CALL
DRIVER
STARTCH
=
0:
STOPCH = 7: GAIN
=
0
CALL ABSOLUTE (ADSET,
IF ERRE'LAG
<>
0 THEN
SAMPLES = 0
ADC-16
CALL ABSOLUTE (ADSET,
IF ERRE'LAG
<>
0 THEN
CALL ABSOLUTE (ADSET,
IF ERRE'LAG
<>
0 THEN
CALL ABSOLUTE (ADSET,
IF ERRFLAG
<>
0 THEN
STARTCH, STOPCH, GAIN, ERRFLAG, KSETSTARTSTOPG)
PRINT "Error
I t ;
ERRFLAG
:
STOP
does not use the SAMPLES parameter
DATABUFFER
( )
,
SAMPLES,
ERRFLAG, KSETBUF)
PRINT "Error ''; ERRFLAG
:
STOP
ERRFLAG, KSYNCSTART)
PRINT "Error
#
I t ;
ERRFLAG;
STOP
ERRFLAG, KFREEFRAME)
PRINT "Error
I t ;
ERRFLAG;
STOP
FOR X
=
0 TO (STOPCH-STARTCH)
NEXT
PRINT
HEX$
(DATABUFFER(X)
)
END
SUB Callsetup
Initialize entry point Variables
ADCl6DEVOPEN
=
0
ADCl6GETDEVHANDLE
=
3
KGETADFRAMF,
=
6
KGETDOFRAME
=
15
KGETVER
= 30
KDASDEVINIT
=
33
KSETIRQMAP
=
36
KE'REEFRAME
=
39
KSETBUF
=
42
KSETSTARTSTOPG
=
54
KGETSTARTSTOPG = 57
KSETCHN
=
60
KGETCHN = 63
KSETSTARTSTOPCHN = 66
KGETSTARTSTOPCHN = 69
KSETG
=
72
KGETG
=
75
KSETCHNGARY
= 78
KCHKFRAME
=
129
KINITFRAME = 132
KSYNCSTART
=
135
KINTSTART
=
147
KINTSTATUS
=
150
KINTSTOP
=
153
KGETDOCURVAL
=
156
KMOVEDATABUF
=
201
KADREAD
=
213
KDIREAD
=
219
KDOWRITE
=
222
RFORMATCHNGARY
=
225
KRESTORECHNGARY = 228
KCLEARFRAME = 231
END SUB
The KGETADFRAME call is used to open the frame with the variable name ADSET for the ADC-16
board referred to by variable DEVHANDLE. The FRAME is filled with the start-stop channels and
gain using the call
KSETSTARTSTOPG.
The data location for the acquisition is established by
KSETBUF.
The number of samples taken in this example is determined by the start and stop channels
and the
SAMPLES
parameter in the KSETBUF call is ignored. With all the FRAME parameters
completed in ADSET, the acquisition is initiated by a call to
KSYNCSTART.
6 - 1 9

Advertisement

loading