Download Print this page

Keithley ADC-16 User Manual page 80

Analog input board

Advertisement

CHAPTER 7 : INDIVIDUAL CALL DESCRIPTIONS
-
KSetChn
Purpose
Frame Parameter. Specify a channel for single channel operations.
format
DASErr
=
K S e t C h n
( F r a m e H a n d l e ,
C h a n )
:
entry parameters FrameHundle
=
frame handle obtained from previous KGetADFrame call.
Chun = integer variable containing a channel number. For A/D frames, use Chan in
the range of 0 to topchannel, where topchannel
=
((#
of STA-EX8s
*
8)
+
(8
-
#
of
STA-EX8s))
-
1. For Digital I/O, Chan is always 0.
exit parameters
None.
return value
DASEn
=
integer variable (0
= No
Error).
see also
KSetStartStopChn.
comments
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 be used to reset the start channel number after KSetStartStopChn
has established a channel range.
* * +
Examples
Interpreted BASIC
- 0
CALL
KSetChn% ( F r a m e b d l e ,
Chan%,
DASErr%)
QuickBASIC
DASErr
=
KSetChn%
(FrameHandle,
Chan)
IF -Err
<>
0
TEEN BEEP: STOP:
QBASIC
cAI;G ABSOLUTE
( F r d a n d l e ,
man,
DASErr,
KSetChn)
* * *
7
-
27

Advertisement

loading