Sets the Measurement Mode.
Ret = TimSetMeasureMode(MeasureMode)
MeasureMode [ VB.NET: Short ] [ C, C++: short] [ C#: short ]
Measurement Mode
Definition |
Value |
Description |
TIM_MEASURE_HIGH |
0 |
High precision |
TIM_MEASURE_NORMAL |
1 |
Normal precision |
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_MEASURE_MODE |
10552 |
Measurement mode beyond the limit. |
The others (See also:Details of Error Code)
TM_MEASURE_HIGH
In the case of High precision, because the Timer is polling always, the precision is raised. Therefore the CPU load is increased.
In the case of Normal precision, because the monitor interval is free, the CPU load is reduced.