beautypg.com

ADLINK PCI-8554 User Manual

Page 58

background image

48 • C/C++ Libraries

5.10 _8554_SET_cntCLK

@ Description

This function is used to select the clock source for counters 1~10
(Clock source for counter 11 is 8MHz and clock source of counter
12 is from COUT11, both clock sources are fixed).

@ Syntax

C/C++ (DOS)

U16 _8554_DI (U16 cardNo, U16 cntNo, U16 clkMODE)

C/C++ (Windows 95)

U16 W_8554_DI (U16 cardNo, U16 cntNo, U16 clkMODE)

Visual Basic (Windows 95)

W_8554_SET_cntCLK (ByVal cardNo As Integer, ByVal cntNo

As Integer, ByVal clkMODE As Integer) As Integer

@ Arguments

cardNo:

card number to be selected

cntNo:

Counter/Timer number. This value must be
between 1 and 10.

clkMODE:

Select clock sources:

“0” = ECLKn.

“1” = COUTn-1.

“2” = CK1.

“3” = COUT10.

@ Return Value

ERR_NoError

ERR_BoardNoInit

ERR_InvalidCounterNo: cntNo is not in the range of 1 ~ 12

ERR_InvalidMode:

clkMODE is not in the range of 0 ~ 3