Download Print this page

Keithley ADC-16 User Manual page 83

Analog input board

Advertisement

ADC-16 USER
GUIDE
Purpose
format
entry parameters
exit parameters
return value
see also
comments
Examples
Interpreted BASIC
QuickBASIC
QBASIC
KSetStartStopC h
n
Frame Parameter. Set the Start and Stop channels associated with a particular
frame.
DASErr
=
KSetStartStopChn
(
FrameHandle,
S t a r t C h a n , S t o p C h a n
) ;
FrumeHundle = frame handle obtained from previous KGetADFrame call.
SturrChun = integer start channel to be associated with FrameHandle. Limit =
((#
of
STA-EX8s
*
8)
+
(8
-
#
of STA-EX8s))
-
1.
StopChun
=
integer stop channel to be associated with FrameHandle. Limit
=
((#
of
STA-EX~S
*
8)
+
(8
-
#
of STA-EX8s))
-
1.
None.
D A S E n
=
integer variable (0
=
No Error).
KGetStartStopChn, KSetChn.
KSetChn is used to specify a channel for a single channel operation. As an example,
KSetChn would typically be used to specify the channel for KADRead
.
KSetStartStopChn is used to specify a range of channels for KSyncStart or
KIntStart operations. For instance, several A/D channels may be monitored
sequentially by specifying independent Start and Stop Channels. If StartChn
= 2
and StopChn = 4, then samples will be taken from Channels 2,3,4.
KSetChn may
also
be used to reset the start channel number after
KSetStartStopChn has established a channel range.
* * *
xxx20
CALL
KSetStartStopChn% (FrameHandle, StartChan%, StopChan%, DASErr%)
DASErr = KSetStartStopChn% (FrameHandle,
0,
3)
IF DASErr
<>
0 THEN
BEEP: STOP:
CALL
ABSOLUTE(FrameHandle,StartChan,StopChan,DASErr,KSetStartStopChn)
* + *
7-30

Advertisement

loading