Download Print this page

Keithley ADC-16 User Manual page 71

Analog input board

Advertisement

ADC-16 USER GUIDE
Purpose
format
entry parameters
exit parameters
return value
see also
comments
Examples
Interpreted BASIC
QuickBASIC
QBASIC
KGetStartStopG
Frame Parameter. Obtain the start channel, stop channel and overall gain code
associated with a particular frame.
DASErr
= KGetStartStopG(
FrameHandle,
S t a r t C h n , S t o p C h n ,
G a i n
) ;
FrarneHandfe
=
frame handle obtained from previous KGetADFrame call.
StartChn = integer variable containing the start channel associated with
FrameHandIe
.
Limits
=
((#
of STA-EX8s
*
8)
+
(8
-
#
of STA-EX8s)) -
1.
SropChn = integer variable containing the stop channel associated with
FrameHandle
.
limits
=
((#
of STA-EX8s
*
8)
+
(8
-
#
of STA-EX8s)) - 1.
Gain
=
integer variable containing the overall gain code associated with
FrameHandle.
CODE
GAIN
0
1
1
10
2
100
DASErr
=
integer variable (0
=
No Error).
KSetStartStopG.
None.
+ + +
xxx20
CALL
KGetStartStopG%(FrameHandle,StartChn%,StopChn%,Gain%,DASErr%)
DASErr = KGetStartStopG%(FrameHandle, StartChn, StopChn, Gaincode)
IF DASErr
<>
0 THEN
BEEP:
STOP
P R I N T
"Start:
";
StartChn;
'I
Stop:
";
StopChn;
It
Gaincode:
";
Gaincode:
CALL
ABSOLUTE (FrameHandle, StartChn, StopChn, Gain, DASErr, KGetStartStopG)
+ + +
7 - 18

Advertisement

loading