Z-World Fox LP3500 User Manual - page 54
48
Fox (LP3500)
4.5.3 Digital I/O
Sets the state of a digital output (
OUT0–OUT9)
.
Remember to call
brdInit
before executing this function.
A runtime error will occur for the following conditions:
1.
channel
or
value
out of range.
2.
brdInit
was not executed before executing
digOut
.
PARAMETERS
channel
is the output channel number (0–9).
value
is the output value (0 or 1).
SEE ALSO
brdInit, digIn, digBankOut
Writes the state of a block of designated digital output channels. The first bank consists of OUT0–
OUT7, the second bank consists of OUT8–OUT9.
A run-time error will occur for the following conditions:
1.
channel
or
value
out of range.
2.
brdInit
was not executed before executing
digOut
.
PARAMETER
bank
is 0 for OUT0–OUT7, 1 for OUT8–OUT9.
value
is an 8-bit output value, where each bit corresponds to one channel. OUT0 and OUT8 are the
least significant bit 0.
RETURN VALUE
None.
SEE ALSO
brdInit, digOut, digBankIn
void digOut(int channel, int value);
void digBankOut(int bank, int value);