44
•
C/C++ Library
5.4
W_8454_Write_Counter
@ Description
To write a command to a counter. The user can directly assign the
counter number 1~12, therefore it is not necessary to care about the
chips number and other details. The output and response of the
counter is dependent on the ‘Mode’ argument and the configuration
on hardware.
@ Syntax
Microsoft C/C++ (Windows, Win95 & Win-NT)
int W_8454_Write_Counter(int CntrNo,int
Mode,unsigned int CntrVal)
Visual Basic
Windows 3.11 Version:
W_8454_Write_Counter (ByVal CntrNo As Integer, ByVal
Mode As Integer, ByVal CntrVal As Integer) As
Integer
Win-95 or Win-NT Version:
W_8454_Write_Counter (ByVal CntrNo As Long, ByVal
Mode As Long, ByVal CntrVal As Long) As Long
C/C++ (DOS)
int _8454_Write_Counter(int CntrNo,int Mode,unsigned int CntrVal )
@ Arguments
int CntrNo
: Counter number, equals to 1~12
int Mode
: Operation mode of counter, equals to 1 ~6
unsigned int CntrVal :The 16 bits counter value to write to the counter.
@ Return Value
No_Error
: No error
Invalid_Counter_No : CntrNo is out of range.
Invalid_Timer_Mode : Mode is out of range
Summary of Contents for NuDAQ ACL-8454
Page 1: ...N u D A Q ACL 8454 MultiFunctions Counter Timer Card User s Guide...
Page 2: ......
Page 5: ......
Page 6: ......
Page 10: ......
Page 23: ...Installation 13 reference number of chips and the counters number...
Page 39: ...Registers Format 29 Bit 7 6 5 4 3 2 1 0 Base 5 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0...