Download Print this page

Keithley ADC-16 User Manual page 84

Analog input board

Advertisement

CHAPTER 7 : INDIVIDUAL CALL DESCRIPTIONS
KSetStartStopG
Purpose
Frame Parameter. Specify the start channel, stop channel and overall gain for a
particular frame.
format
DASErr = KSetStartStopG(
F r a r n e H a n d l e , S t a r t C h a n , S t o p C h a n , G a i n )
;
entry parameters
FrumeHundle = frame handle obtained from previous KGetADFrame call.
SturtChun
=
the start channel associated with FrameHandle. Limit
=
((#
of STA-
EX8s
*
8)
+
(8
-
#
of STA-EX~S))
-
1.
StopChan = the stop channel associated with FrameHandle. Limit
=
((#
of STA-EX&
*
8)
+
(8 -
##
Of
STA-EX&))
-
1.
Gain
=
the overall gain code associated with an operation.
CODE
GAIN
0
1
1
10
2
100
exit parameters
None.
return value
DASErr
=
integer variable (0
=
No Error).
see also
KGetStartStopG.
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. This function is an expedient way to combine KSetStartStopChn
and KSetG.
KSetChnGAry selects an arbitrary sequence of channel sampling with selectable
gain settings. The Call receives an array of channel numbers and gain settings, and
it scans through the list sequentially. Therefore, any random order of channels and
gain settings is allowable, including sampling the same channel sequentially at
different gain settings. All the conceptual rules that combined with
KSetStartStopChn apply to this Call.
* * *
Examples
Interpreted BASIC
xxx20
CALL
KSetStartStopG% (FrameHandle, StartChan%, StopChan%, Gain%, DASErr%)
QuickBASIC
DASErr = KSetStartStopG% (FrameHandle, 0, 3,
0)
IF DASErr
<>
0
TEEN
BEEP:
STOP:
QBAsIC
CW
ABSOLUTE (FrameHandle, StartChan, StopChan, Gain, DASErr, KSetStartStopG)
* * *
7
-
31

Advertisement

loading