Download Print this page

Keithley ADC-16 User Manual page 67

Analog input board

Advertisement

ADC-16 USER GUIDE
-
KGetDOCurVaI
PurpoSe
Operating Function. Retrieve the Digital Output value currently assigned to the
output port of a Digital Output frame.
format
DASErr
=
KGetDoCurVal( F r a m e H a n d l e , V a l u e
) :
entry parameters FrameHandle
=
frame handle obtained from previous KGetDOFrame call.
exit parameters
Value
=
long integer containing the current Digital Output value. Bit0
=
OPO;
Bit1 =
OP1; Bit2
=
EX1;
Bit3
=
E X ; Bit4
=
EX4.
return value
DASEv
=
integer variable (0
=
No Error).
see also
KSetDOFrame, KDOWrite
.
comments
KGetDOCurVal reads a value
up
to 5 bits that is currently assigned to the digital
output port. This operation can take place while other background A/D operations
are in progress.
* * *
Examples
Interpreted BASIC
xxx20
CALL
KGetDOCurVal% ( F r d a n d l e , V a l u e % ( 0 )
,
DASErr%)
QuickBASIC
DASErr
=
KGetDOCurVal%
(FrameHandle,
V a l u e )
I F DASErr
<>
0
TaEN
BEEP: STOP
PRINT
"Current
D i g i t a l O u t p u t
value i s :
'I;
HEX$ ( V a l u e ) :
QBASIC
CALL
ABSOLUTE
(FrameHandle, V a l u e , DASErr
,
KGetDOCurVal)
* * *
7 - 1 4

Advertisement

loading