Programmer's Guide

RaDeKL Radar API Programmer’s Guide 24
© Multispectral Solutions, Inc. 2006
RaDeKL_SetInterval
Set the automatic detection interval for continuous detection mode. When the radar is in continuous mode,
a new detection is performed each time this interval expires. The default setting is INTERVAL_50_MS.
NOTE: There are currently 5 distinct interval settings (see table below), but the actual range of
permissible settings should be obtained by calling RaDeKL_GetDeviceInfo and using interval_min
and interval_max, as these might change with future versions of the radar unit.
Format:
ULONG RaDeKL_SetInterval (RaDeKL_HANDLE handle, BYTE interval);
Parameters:
handle RaDeKL_HANDLE as returned by a call to RaDeKL_OpenRadar.
interval A BYTE indicating the requested interval. Permissible interval values are:
Symbolic Constant Duration Value
INTERVAL_1_SEC 1 second 0
INTERVAL_500_MSEC 500 milliseconds 1
INTERVAL_250_MSEC 250 milliseconds 2
INTERVAL_100_MSEC 100 milliseconds 3
INTERVAL_50_MSEC (default) 50 milliseconds 4
Return Value:
RADEKL_OK (0) if successful, a non-zero status otherwise. See RaDeKL_GetStatusText for codes.
Example:
Set the continuous detection interval to 100 milliseconds.
ULONG status;
RaDeKL_HANDLE handle;
// Assume we have an open radar with a valid handle
status = RaDeKL_SetInterval (handle, INTERVAL_100_MS);
// Check status . . .