User`s manual
ThinkCore IA241/240 Linux User’s Manual Programmer’s Guide
6-9
to except the error signal. If you set to zero, it will not detect the duration time. You can set 40 ms
to 3600000 ms by increase 20 ms.
Output
OK will be zero.
DIN_EVENT_HIGH_TO_LOW
Digital Input Signal
duration
int get_din_event(int diport, int *mode, long int *duration)
Description
Get the set event for digital input port.
Input
int diport - the digital output port number. It is 0 to 3.
int *mode - Save the set event.
long int *duration - Save the set duration time value.
Output
OK will be zero.
Special Note
Don’t forget to link the library libmoxalib & libpthread for DI/DO programming, and also
include the header file moxadevice.h. The DI/DO library only can be used by one program at a
time.