beautypg.com

ADLINK PCI-8554 User Manual

Page 53

background image

C/C++ Libraries • 43

5.5 _8554_Read_Counter

@ Description

User can directly read counter information with this function.

@ Syntax

C/C++ (DOS)

U16 _8554_Read_Counter (U16 cardNo, U16 cntNo, U16 *mode, U16

*cntrVal)

C/C++ (Windows 95)

U16 W_8554_Read_Counter (U16 cardNo, U16 cntNo, U16 *mode,

U16 *cntrVal)

Visual Basic (Windows 95)

W_8554_Read_Counter (ByVal cardNo As Integer, ByVal cntNo

As Integer, mode 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.

mode:

Counter operation mode.

cntrVal:

Counter value read back from counter

@ Return Value

ERR_NoError, ERR_BoardNoInit

ERR_InvalidCounterNo: cntNo is out of range.