beautypg.com

ADLINK PCI-8554 User Manual

Page 54

background image

44 • C/C++ Libraries

5.6 _8554_Stop_Counter

@ Description

User can directly stop the counter with this function. This function
will stop the counter by setting the counter to mode 5.

@ Syntax

C/C++ (DOS)

U16 _8554_Stop_Counter (U16 cardNo,U16 cntNo,U16 *cntrVal)

C/C++ (Windows 95)

U16 W_8554_Stop_Counter (U16 cardNo,U16 cntNo,U16 *cntrVal)

Visual Basic (Windows 95)

W_8554_Stop_Counter (ByVal cardNo As Integer, ByVal cntNo

As Integer, cntrVal As Integer) As Integer

@ Arguments

cardNo:

card number to be selected

cntNo:

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

cntrVal:

Counter value read back from counter

@ Return Value

ERR_NoError , ERR_BoardNoInit

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