Admin Production ni-theme
Current Publication

PostDelayedCall

LabWindows/CVI

PostDelayedCall

int PostDelayedCall (DelayedCallbackFunc delayedCallbackFunction, void *callbackData, double delay);

Purpose

This function causes a callback function to be called at the specified time in the future.

Parameters

Input
Name Type Description
delayedCallbackFunction DelayedCallbackFunc This parameter specifies which function to call after the specified delay has elapsed.

The function must have the following prototype:

void CVICALLBACK DelayedFunction(void *callbackData);

callbackData void * This parameter specifies a user–defined value that will be passed to the delayed callback function when it is called.
delay double This parameter specifies the amount of time in seconds, from the current time, when the callback function is to be called. This time is a minimum value. Delays may be longer depending on the system's load and the frequency at which the system is processing events.

Return Value

Name Type Description
result int Returns 1 if the callback has been queued for execution at the specified time. Returns 0 if there was not enough memory to queue the callback.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later