GetTimerTickData
int GetTimerTickData (double *eventTime, double *timeSinceLastCallback);
Purpose
Returns the time of the current EVENT_TIMER_TICK callback and the time elapsed since the last EVENT_TIMER_TICK callback.
You must call GetTimerTickData inside the timer's callback function when it receives an EVENT_TIMER_TICK event. If you call GetTimerTickData outside of an EVENT_TIMER_TICK callback event, LabWindows/CVI returns a stale data error.
GetTimerTickData is the only way to get the time values from an EVENT_TIMER_TICK event in a 64-bit executable.
You can pass NULL for either parameter but not for both.
Parameters
Output | ||
Name | Type | Description |
eventTime | double | The time value when the EVENT_TIMER_TICK event was generated. |
timeSinceLastCallback | double | The time elapsed since the last EVENT_TIMER_TICK event was generated. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 2009 and later
Example
Refer to toolbox\asyncdem.cws for an example of using the GetTimerTickData function.