Suspends the execution of the current thread for a specified interval.
Ret = TimWait(Microseconds)
Microseconds [ VB.NET: Integer ] [ C, C++: unsigned long ] [ C#: uint ]
Specify the unit of waiting time in us.
Onboard System Timer
1 to 1,073,741,823 (us) *1
System Timer
1,000 to 4,294,967,295 (us)
*1 When
using DIO-32DM3-PE, the setting range is as follows.
1 to 107,374,182 (us)
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]
Definition |
Value |
Description |
TIM_ERR_SUCCESS |
0 |
Normal completed |
TIM_ERR_DLL_NOT_INITIALIZED |
10010 |
It is not initialized. Please confirm whether the initialization function has completed normally. |
TIM_ERR_DLL_INVALID_TIME |
10550 |
Setting time beyond the limit. |
The others (See also:Details of Error Code)
None
This function looks like the Sleep function of Win32 API. The execution of a current thread is interrupted only at specified intervals.
The precision is different according to the current Timer Type.
When System Timer is used, because the GetTickCount function of Win32API is used internally,
although the unit is us, the precision is limited by the resolution of System Timer.