Nuvo-4000 Series User’s Manual
Copyright © 2014 Neousys Technology Inc. All Right Reserved.
Page 69 of 76
DIO Function Reference
InitDIO
Description
Initialize the DIO function. You should always invoke InitDIO() before write/read any
DIO port/channel.
Parameter
None
Return Value
Returns TRUE if initialization successes, FALSE if initialization failed.
Usage
BOOL bRet = InitWDT()
DIReadLine
Description
Read a single channel of isolated digital input.
Parameter
ch
BYTE value specifies the DI channel to be read.
For Nuvo-4000, ch should be a value of 0 ~ 7.
Model Series
DO channel
Value
Nuvo-1000
8
000b ~111b
Nuvo-1300af
8
000b ~111b
Nuvo-2000+
8
000b ~111b
Nuvo-3000
8
000b ~111b
Nuvo-4000
8
000b ~111b
POC-100
4
00b~11b
POC-200
4
00b~11b
Return Value
The status (TRUE or FALSE) of the specified DI channel.
Usage
BYTE
ch=3; //DI channel #3
BOOL DIChValue = DIReadLine(ch); //read DI channel #3