cbC8536Init()

Initializes the counter linking features of an 8536 counter chip. The linking of counters 1 & 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.

Function Prototype

C/C++

int cbC8536Init(int BoardNum, int ChipNum, int CtrlOutput)

Visual Basic

Function cbC8536Init(ByVal BoardNum&, ByVal ChipNum&, ByVal Ctr1Output&) 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 an 8536 counter.

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 argument values" section below.

Returns

CtrlOutput argument values

NOTLINKEDCounter 1 is not connected to any other counters inputs.
GATECTR2Output of counter 1 is connected to the GATE of counter #2.
TRIGCTR2Output of counter 1 is connected to the trigger of counter #2.
INCTR2Output of counter 1 is connected to the counter #2 clock input.