Download Print this page

Keithley ADC-16 User Manual page 56

Analog input board

Advertisement

CHAPTER 7 : INDIVIDUAL CALL DESCRIPTIONS
-
ADCl GGetDevHandle
Purpose
Driver Initialization. Get a handle to the logical device associated with an adapter
card.
fOflllat
D a s E r r
=
ADCl6GetDevHandle
(
B o a r d N u m , D e v H a n d l e
)
:
entry parameters
BoardNum =
a board ID number. The first board is BoardNum = 0, the last is
BoardNum
=
NumberOfBoards-1
,
where NumberOfBoards is obtained from
ADC16DevOpen.
exit parameters
D e v H a n d l
e
= a unique handle identifier for a logical DAS device.
return value
D A S E r r
= error code number; 0 if
no error.
see also
ADC16DevOpen.
comments
ADC16GetDevHandle returns a unique device handle for identifying a specific
ADC-16 board. Multiple-board applications know how many devices are available
for the current session as a result of the previous Call using ADC16DevOpen.
Associating subsequent Calls with specific boards requires a handle.
+ + +
Examples
InterpretedBASIC
xxxl0 BoardNuxn% = 0
xxx20
CALL ADClCGetDevHandle% (BoardNum%, DevHandle, DASErr%)
QuickBASIC
DASErr = ADCl6GETDEVBANDLE% (0, DevHandle)
'Board #O
IF (DasErr
0
0)
THEN BEEP:
STOP:
QBASIC
BoardNum = 0
DIM
DevEandle
AS
LONG
CALL
ABSOLUTE (BoardNuxn, DevHandle, DASErr
,
ADCl CGetDevHandle)
7 - 3

Advertisement

loading