cbC9513Init()

Initializes all of the chip level features of a 9513 counter chip. This function can only be used with 9513 counters.

For more information, refer to the AM9513A data sheet (9513A.pdf) in the Documents subdirectory where you installed the UL (C:\Program files\Measurement Computing\DAQ by default).

Function Prototype

C/C++

int cbC9513Init(int BoardNum, int ChipNum, int FOutDivider, int FOutSource, int Compare1, int Compare2, int TimeOfDay)

Visual Basic

Function cbC9513Init(ByVal BoardNum&, ByVal ChipNum&, ByVal FOutDivider&, ByVal FOutSource&, ByVal Compare1&, ByVal Compare2&, ByVal TimeOfDay&) As Long

 Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99. The specified board must have a 9513 counter.

ChipNum

Specifies which 9513 chip is to be initialized. For a CTR05 board this should be set to 1. For a CTR10 board it should be either 1 or 2, and for a CTR20 it should be 1-4.

FOutDivider

F-Out divider (0-15). If set to 0, FoutDivider is the rate of FoutSource divided by 16. If set to a number between 1 ands 15, FoutDivider is the rate of FoutSource divided by FoutDivider.

FOutSource

Specifies source of the signal for F-Out signal. Set it to one of the constants in the "FOutSource argument values" section below.

Compare1

Compare1 ENABLED or Compare1 DISABLED. (CBENABLED or CBDISABLED in Visual Basic).

Compare2

Compare2 ENABLED or Compare2 DISABLED. (CBENABLED or CBDISABLED in Visual Basic).

TimeOfDay

TimeOfDay ENABLED or TimeOfDay DISABLED. (CBENABLED or CBDISABLED in Visual Basic). The options for this argument are listed in the "TimeofDay argument values" section below.

Returns

FOutSource argument valuesand 9513 Data Sheet Equivalent

TCPREVCTRTCN - 1 (Terminal count of previous counter)
CTRINPUT1SRC 1 (Counter Input 1)
CTRINPUT2SRC 2 (Counter Input 2)
CTRINPUT3SRC 3 (Counter Input 3)
CTRINPUT4SRC 4 (Counter Input 4)
CTRINPUT5SRC 5 (Counter Input 5)
GATE1GATE 1
GATE2GATE 2
GATE3GATE 3
GATE4GATE 4
GATE5GATE 5
FREQ1F1
FREQ2F2
FREQ3F3
FREQ4F4
FREQ5F5

TimeOfDay argument values and 9513 Data Sheet Equivalent

CBDISABLEDTOD Disabled
1TOD Enabled / 5 Input
2TOD Enabled / 6 Input
3TOD Enabled / 10 Input

No Arguments - For:

Notes