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).
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
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.
TCPREVCTR | TCN - 1 (Terminal count of previous counter) |
CTRINPUT1 | SRC 1 (Counter Input 1) |
CTRINPUT2 | SRC 2 (Counter Input 2) |
CTRINPUT3 | SRC 3 (Counter Input 3) |
CTRINPUT4 | SRC 4 (Counter Input 4) |
CTRINPUT5 | SRC 5 (Counter Input 5) |
GATE1 | GATE 1 |
GATE2 | GATE 2 |
GATE3 | GATE 3 |
GATE4 | GATE 4 |
GATE5 | GATE 5 |
FREQ1 | F1 |
FREQ2 | F2 |
FREQ3 | F3 |
FREQ4 | F4 |
FREQ5 | F5 |
CBDISABLED | TOD Disabled |
1 | TOD Enabled / 5 Input |
2 | TOD Enabled / 6 Input |
3 | TOD Enabled / 10 Input |
No Arguments - For: