C9513Init()

Initializes all of the chip level features of a 9513 counter chip. This method 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).

Member of the MccBoard class.

Function Prototype

VB .NET

Public Function C9513Init(ByVal chipNum As Integer, ByVal foutDivider As Integer, ByVal foutSource As MccDaq.CounterSource, ByVal compare1 As MccDaq.CompareValue, ByVal compare2 As MccDaq.CompareValue, ByVal timeOfDay As MccDaq.TimeOfDay As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo C9513Init(int chipNum, int foutDivider, MccDaq.CounterSource foutSource, MccDaq.CompareValue compare1, MccDaq.CompareValue compare2, MccDaq.TimeOfDay timeOfDay)

Parameters

chipNum

Specifies which 9513 chip is to be initialized. For a CTR05 board, set to 1. For a CTR10 board, set to either 1 or 2, and for a CTR20 set to 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 parameter values" section below.

compare1

MccDaq.CompareValue.Enabled or MccDaq.CompareValue.Disabled

compare2

MccDaq.CompareValue.Enabled or MccDaq.CompareValue.Disabled

timeOfDay

MccDaq.TimeOfDay.Disabled, or three different enabled settings. Set it to one of the constants in the "timeOfDay parameter values" section below.

Returns

foutSource parameter values

All of the foutSource settings are MccDaq.CounterSource enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the CounterSource enumeration (for example, variable = MccDaq.CounterSource.CtrInout1, variable = MccDaq.CounterSource.CtrInput2, etc.).

foutSource9513 Data Sheet Equivalent
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)
Gate1GATE1
Gate2GATE2
Gate3GATE3
Gate4GATE4
Gate5GATE5
Freq1F1
Freq2F2
Freq3F3
Freq4F4
Freq5F5

timeOfDay parameter values

All of the timeOfDay settings are MccDaq.TimeOfDay enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the TimeOfDay enumeration (for example, variable = MccDaq.TimeOfDay.Disable, variable = MccDaq.TimeOfDay.One, etc.).

timeOfDay9513 Data Sheet Equivalent
DisabledTOD Disabled
OneTOD Enabled/5 Input
TwoTOD Enabled/6 Input
ThreeTOD Enabled/10 Input
No parameters for: 9513 Data Sheet Equivalent
0 (FOUT on)FOUT Gate
0 (Data bus matches board)Data Bus Width
1 (Disable Increment)Data Pointer Control
1 (BCD Scaling)Scalar Control

Notes