dio_tuner(_c)
dio_tuner([logging.i4.r] [,read_timeout.i4.r] [,set_timeout.i4.r]
[,dbm_timeout.i4.r] [,stale_notify.i4.r]
[,cache_delete.i4.r])
dio_tuner_c([logging.i4.v] [,read_timeout.i4.v] [,set_timeout.i4.v]
[,dbm_timeout.i4.v] [,stale_notify.i4.v]
[,cache_delete.i4.v])
This routine sets parameters used globally by DIO routines. If this
routine is called with no arguments, it serves as a DIO initialization.
If a value of CLIB_DEFAULT_ARG is passed for any argument, the
corresponding parameter will remain unchanged.
[logging] error logging flag
(TRUE -> log DIO errors (Could happen at 15 Hz !),
FALSE -> don't log DIO errors (default))
[read_timeout] number of seconds to wait for reading requests
(default is 2 seconds)
[set_timeout] number of seconds to wait for setting requests
(default is 4 seconds)
[dbm_timeout] number of seconds to wait for database requests
(default is 10 seconds)
[stale_notify] stale data notification flag
(TRUE -> return a value of DIO_STALE for stale data
requests (default),
FALSE -> return a value of OK for stale data)
[cache_delete] automatic cache deletion flag
(TRUE -> delete the DIO cached information for any
device whose database information is
modified using DABBEL,
FALSE -> ignore database modifications (default))
This function requires the following include files:
cnsparam_h, diolib_h
Related functions:
dio_query_tuner, dio_read_db_timeout, dio_dbquery_c
C/C++ usage:
int logging = FALSE;
int read_timeout = 2;
int set_timeout = 4;
int dbm_timeout = 10;
int stale_notify = TRUE;
int cache_delete = TRUE;
dio_tuner_c(logging,read_timeout,set_timeout,dbm_timeout,stale_notify,
cache_delete);