![ADLINK Technology HSLink HSL-AI16 User Manual Download Page 51](http://html1.mh-extra.com/html/adlink-technology/hslink-hsl-ai16/hslink-hsl-ai16_user-manual_2852692051.webp)
NT DLL Programming
•
43
Timer Set
Ø
Systax
void _stdcall W_HSL_Timer_Set(U16 card_ID, U16 c1, U16 c2);
Ø
Description
This function is used to setup the Timer#1 and Timer#2. Timer#1 & Timer#2
are used as frequency divider for generating constant timer interrupt
sampling rate dedicatedly. The highest timer interrupt sampling rate of the
master card can not exceed 20KHZ on Win NT platform. So the
multiplication of the dividers must be larger than 300. The value of c1 and c2
must be greater then 1. When c1=0 or c2=0, the timer interrupt will be
stopped.
Ø
Parameter
card_ID
The card id of the card that want to perform this
operation.
c1
frequency divider of timer#1
c2
frequency divider of timer#2
Ø
Return Number
none
Ø
Example
W_HSL_Timer_Set(cardNo, 20, 20);
/* set the timer interrupt sampling rate to 6MHZ / (20* 20) =15 KHZ*/
W_HSL_Timer_Set(cardNo, 100, 50);
/* set the timer interrupt sampling rate to 6MHZ / (100 * 50) =1.2 KHZ */