Nuvo-3000 Series User’s Manual
Copyright © 2013 Neousys Technology Inc. All Right Reserved.
Page 95 of
101
Return Value
A WORD value indicates the status of DI port (8 DI channels).
For Nuvo-1000/2000+/1300af/3000,
the return value is a
. For Nuvo-2000,
ch
should
be a value of 0 ~ 11.
Usage
WORD DIPortValue = DIReadPort ();
DOWriteLine
Description
Write a single channel of isolated digital output.
Parameter
ch
BYTE value specifies the DO channel to be written.
For Nuvo-1000/2000+/1300af3000,
ch
should be a value of 0 ~ 7. For Nuvo-2000,
ch
should be a value of 0 ~ 11.
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
Description
Write the entire isolated digital output port (8 channels).
Parameter
value
WORD value specifies the status of the DO port. For Nuvo-1000/1300af,
value
should be a value of 0~255. For Nuvo-2000,
value
should be a value of 0~4095.
Return Value
None