# 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

- An ErrorInfo object that indicates the status of the operation.

### 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.).

foutSource | 9513 Data Sheet Equivalent
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 | GATE1
Gate2 | GATE2
Gate3 | GATE3
Gate4 | GATE4
Gate5 | GATE5
Freq1 | F1
Freq2 | F2
Freq3 | F3
Freq4 | F4
Freq5 | F5

### 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.).

timeOfDay | 9513 Data Sheet Equivalent
Disabled | TOD Disabled
One | TOD Enabled/5 Input
Two | TOD Enabled/6 Input
Three | TOD 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

- The information provided here and in C9513Config() will only help you understand how Universal Library for .NET syntax corresponds to the 9513 data sheet (9513A.pdf). It is not a substitute for the data sheet. You cannot program and use a 9513 without it.