Nuvo-7501 Series
88
DOWriteLine
Syntax
void DOWriteLine(BYTE ch, BOOL value);
Description
Write a single channel of isolated digital output.
Parameter
ch
BYTE value specifies the DO channel to be written. C
h
should
be a value of 0 ~ 7.
value
BOOL value (TRUE or FALSE) specifies the status of DO
channel.
Return Value
None
Usage
BYTE ch=3; //DI channel #3
BOOL DOChValue=TRUE;
DOWriteLine(ch, DOChValue); //write DO channel #3 as
TRUE
DOWritePort
Syntax
void DOWritePort(WORD value);
Description
Write the entire isolated digital output port (8 channels).
Parameter
value
WORD value specifies the status of the DO port. V
alue
should
be a value of 0~255.
Return Value
None
Usage
WORD DOPortValue=0XFF; //11111111b
DOWritePort(DOPortValue); //write DO port as 11111111b