Instruction manual

Table Of Contents
PC215E Page 102
6.6.10.4 Send Digital Output Data - DIOsetData
Writes a data value to a DIO channel. It is assumed that the channel has already been set as
an output by a call to function DIOsetMode.
i = DIOsetData (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 DIOsetChanWidth (default is 3 8-bit
channels).
dat Long. Digital data word.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
DIOsetMode
DIOsetChanWidth
See Also DIOgetData