2.7.4 - WaitForNextInterval | LabJack
 
« Close

Datasheets and User Guides

App Notes

Software & Driver

 
Tuesday April 7th, 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 55/56 products in stock. More details.
Supply Chain: Some disruptions. More details.

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.