« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.7.4 - WaitForNextInterval

Waits (blocks/sleeps) until the next interval occurs. If intervals are skipped, this function still waits until the next complete interval.

Syntax

LJM_ERROR_RETURN LJM_WaitForNextInterval(
                      int IntervalHandle,
                      int * SkippedIntervals)

Parameters

IntervalHandle [in]
The user-generated interval identifier. This can be anything.
SkippedIntervals [out]
The number of skipped intervals that occurred since the last time this function was called.

Returns

LJM errorcodes or 0 for no error.

Returns LJME_INVALID_INTERVAL_HANDLE if IntervalHandle was not set up using LJM_StartInterval.

Examples

See LJM_StartInterval for an example.