C/C++ Library
•
49
5.9
8454 Mode Functions
@ Description
This is a macro, instead of using function, which is used to program the
mode of the counters. Refer the 8454.H for the definition of these macros
The macro name are designed for easy to memorize or to be referenced.
User can use these macros instead of using the ‘_8454_Write_Counter()’
function.
@ Syntax
Microsoft C/C++ (Windows, Win95 & Win-NT)
W_8454_Interrupt_on_TC(CN,Val) == W_8454_Write_Counter( CN, 0, Val )
W_8454_One_Shoot(CN,Val) == W_8454_Write_Counter( CN, 1, Val )
W_8454_Square_Wave(CN,Val) == W_8454_Write_Counter( CN, 2, Val )
W_8454_Rate_Generator(CN,Val) == W_8454_Write_Counter( CN, 3, Val )
W_8454_SW_Strobe(CN,Val) == W_8454_Write_Counter( CN, 4, Val )
W_8454_HW_Strobe(CN,Val) == W_8454_Write_Counter( CN, 5, Val )
C/C++ (DOS)
_8454_Interrupt_on_TC(CN,Val) == _8454_Write_Counter( CN, 0, Val )
_8454_One_Shoot(CN,Val)
== _8454_Write_Counter( CN, 1, Val )
_8454_Square_Wave(CN,Val) == _8454_Write_Counter( CN, 2, Val )
_8454_Rate_Ge nerator(CN,Val) == _8454_Write_Counter( CN, 3, Val )
_8454_SW_Strobe(CN,Val)
== _8454_Write_Counter( CN, 4, Val )
_8454_HW_Strobe(CN,Val)
== _8454_Write_Counter( CN, 5, Val )
@ Arguments
int CN
: Counter number, equals to 1~12
UINT Val
: 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
@ Example
See ‘DEMO.C’ in library diskette
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...