# C8536Init()

Initializes the counter linking features of an 8536 counter chip. The linking of counters 1 and 2 must be accomplished prior to enabling the counters.

For more information, refer to the Zilog 8536 product specification (Z8536.pdf) for a description of the hardware affected by this mode. This document is available on our web site mccdaq.com.

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function C8536Init(ByVal chipNum As Integer, ByVal ctr1Output As MccDaq.CtrlOutput) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo C8536Init(int chipNum, MccDaq.CtrlOutput ctr1Output)

## Parameters

chipNum

Selects one of the 8536 chips on the board, 1 to n.

ctrlOutput

Specifies how the counter 1 is to be linked to counter 2, if at all. Set it to one of the constants in the "ctrlOutput parameter values" section below.

## Returns

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

### ctrlOutput parameter values

All of the ctrlOutput settings are MccDaq.CtrlOutput enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the CtrlOutput enumeration (for example, variable = MccDaq.CtrlOutput.NotLinked, variable = MccDaq.CtrlOutput.GateCtr2, etc.).

NotLinked | Counter 1 is not connected to any other counters inputs.
GateCtr2 | Output of counter 1 is connected to the GATE of counter #2.
TrigCtr2 | Output of counter 1 is connected to the trigger of counter #2.
InCtr2 | Output of counter 1 is connected to the counter #2 clock input.