User manual

Table Of Contents
DELIB API reference |
Seite 167
4.8. Output timeout management
4.8.1. DapiSpecialCMDTimeout
Description
This command serves to set the timeout time
Definition
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT, cmd, par1, par2);
Parameters
handle=This is the handle of an opened module
Set timeout time
cmd=DAPI_SPECIAL_CMD_TIMEOUT_SET_VALUE_SEC
par1=Seconds [s]
par2=Milliseconds [100ms] (value 6 stands for 600ms)
Activate timeout
cmd=DAPI_SPECIAL_CMD_TIMEOUT_ACTIVATE
Deactivate timeout
cmd=DAPI_SPECIAL_CMD_TIMEOUT_DEACTIVATE
Return value
None
Example program
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_SET_VALUE_SEC, 3, 7);
//Die Zeit des Timeouts wird auf 3,7sek gesetzt.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_ACTIVATE, 0, 0);
//Der Timeout wird aktiviert.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_DEACTIVATE, 0, 0);
//Der Timeout wird deaktiviert.