Instruction manual

Table Of Contents
Page
103
PC215E
6.6.10.5 Read Digital Input Data - DIOgetData
Reads a data value from a DIO channel. It is assumed that the channel has already been set
as an input by a call to function DIOsetMode.
i = DIOgetData (h, chip, chan, data)
where
h Integer. Board handle as issued by function
registerBoard.
chip Integer. Address offset of the DIO chip. Use
one of the following pre-defined constants:-
PPIX = 0
PPIY = 8
PPIZ = 16
chan Integer. DIO channel. Note the channel
numbering depends on the channel width as set
by function DIOsetChanWidth (default is three 8-
bit channels).
dat Pointer to Long. Pointer to a variable, declared
as a long integer, into which the digital data
word will be placed.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
DIOsetMode
DIOsetChanWidth
DIOsetData
See Also