188
Function Library
6.24 High Resolution Timer Functions
@ Name
_8168_set_h_timer
– Start high resolustion timer counter
_8168_h_timer
– Get high resolution timer counter value
_8168_ssleep
– Sleep according to a high resolution timer
_8168_delay_time
– Delay for a while
_8168_delay_time_mt
– Delay for a while within thread
@ Description
_8168_set_h_timer
:
This function is used for starting a high resolution timer on cPCI-
8168. The timer base clock is 40 nero-second. Once the timer is
set, the hardware interrupt will start to generate frequently. Don’t
set the timer interval too small. Suggested value is more than 100
micro-second. That means the suggested minimum value is 2500
for this function. The minimum value for this function is 25. Notice
that the
_8168_int_control
() must be enable first.
_8168_h_timer
:
This function is used for reading back the 32-bit timer counter
value after the timer counter is started.
_8168_ssleep
:
This function is used for pause program for a specific time. It will
not consume CPU time under Windows. It is waiting for timer inter-
rupt event by
WaitForSingleObject
() Windows API. Users can
create up to 64 sleep functions at the same time. The minimum
time out time for
WaitForSingleObject
() is 200ms. The time-
out formula is twice the setting value. The sleep time is (setting
value x time base). The time base is come from
_8168_set_h_timer
() .
_8168_delay_time
:
This function is used to pause the program for a specific amount of
time. It will consume CPU time and occupy the axis as a motion
axis. Once it is called, the axis will start a dummy movement with a
Содержание cPCI-8168
Страница 4: ......
Страница 10: ...vi List of Figures...
Страница 29: ...Installation 19 2 9 Overview of CN3 CN6...
Страница 31: ...Installation 21 2 11 Switch Setting...
Страница 124: ...114 Function Library Src Counter source Return Code ERR_NoError Value Meaning 0 External Feedback 1 Command pulse...
Страница 134: ...124 Function Library Return Code ERR_NoError ERR_SpeedError ERR_PChangeSlowDownPointError ERR_MoveRatioError...
Страница 155: ...Function Library 145 12 At FH speed maximum velocity 13 In deceleration 14 Waiting for INP signal 15 Reserved...
Страница 204: ...194 Function Library...