Programmer's Guide

RaDeKL Radar API Programmer’s Guide 23
© Multispectral Solutions, Inc. 2006
RaDeKL_GetRangeDelay
Get the RangeDelay from the radar device by reading the RANGE and DELAY registers and converting the
values to feet.
Format:
ULONG RaDeKL_GetRangeDelay (RaDeKL_HANDLE handle, DWORD *delay_feet);
Parameters:
handle RaDeKL_HANDLE as returned by a call to RaDeKL_OpenRadar.
delay_feet Pointer to a DWORD to receive the delay value in feet.
Return Value:
RADEKL_OK (0) if successful, a non-zero status otherwise. See RaDeKL_GetStatusText for codes.
Example:
Read the RangeDelay and display its value.
ULONG status;
RaDeKL_HANDLE handle;
DWORD delay;
// Assume we have an open radar with a valid handle
status = RaDeKL_GetRangeDelay (handle, &delay);
// Check status . . .
printf (“The DELAY is currently set to %d feet\n”, delay);