Download Print this page

Keithley ADC-16 User Manual page 69

Analog input board

Advertisement

ADC-16
USER GUIDE
Purpose
format
entry parameters
exit parameters
return value
see also
comments
KGetG
Frame Parameter. Get the Gain code for the frame.
D A S E r r
=
K G e t G (
F r a m e H a n d l e , G a i n
)
:
FrameHandle
=
frame handle obtained from previous KGetADFrame call.
Gain =
integer variable containing the overall (applied to all Analog Input
channels) Gain code associated with the frame.
CODE
GAIN
0
1
1
10
2
100
DASErr
=
integer variable (0
=
No Error).
KSetG.
KGetG returns the global Gain code currently applied to all Analog Input channels.
* * *
Examples
Interpreted BASIC
- 0
CALL
KGetG%
(FrameHandle, Gain%,
D A S E r r % )
QuickBASIC
D A S E r r
=
K G e t G %
( F r d a n d l e ,
Gaincode)
IF
DASErr
<>
0
THEN BEEP:
STOP
PRINT
"The
G l o b a l Gain
Code
i s :
'I;
GainCode:
QBASIC
CALL
ABSOLUTE
(FramoHandle, Gain, D A S E r r
,
K G e t G )
* * *
7 - 1 6

Advertisement

loading