Download Print this page

Keithley ADC-16 User Manual page 82

Analog input board

Advertisement

CHAPTER 7: INDIVIDUAL CALL DESCRIPTIONS
-
KSetG
Purpose
Frame Parameter. Set the overall analog input gain.
fUfI77at
DASErr
=
K S e t G
(
F r a m e H a n d l e ,
G a i n
)
:
entry parameters FrameHandle
=
frame handle obtained from previous KGetADFrame
call.
Gain = integer which sets the overall gain code (0,1, or 2) associated with
FrarneHandIe.
CODE
GAIN
0
1
1
10
2
100
exit parameters
None.
return value
DASErr
=
integer variable (0
=
No Error).
see also
KGetG, KStartStopG, KSetChnGAry.
comments
KSetG sets the analog gain for a specified frame.
KSetStartStopG sets the start and stop channel numbers and the gain for a
specified frame.
T h i s
function is an expedient way to combine KSetStartStopChn
and KSetG.
* * *
Examples
Interpreted BASIC
- 0
CALL
KSetG% ( F r a m e H a n d l e , Gain%,
DASErr%)
QuickBASIC
DASErr =
K S e t G % ( F r a m e I I a n d l e , 0)
'
S e t
G l o b a l Gain
t o
x l
IF DASErr
<>
0
THEN
BEEP:
STOP:
QBASIC
CALL
ABSOLUTE
( F r a m e B a n d l e ,
G a i n ,
DASErr,
KSetG)
* * *
7
-
29

Advertisement

loading