C8536Config()

Configures an 8536 counter for desired operation. This method can only be used with 8536 counters.

For more information, refer to the Zilog 8536 product specification (Z8536.pdf) on our web site at mccdaq.com.

Member of the MccBoard class.

Function Prototype

VB .NET

Configure for software triggering:

Public Shared Function C8536Config(ByVal counterNum As Integer, ByVal outputControl As MccDaq.C8536OutputControl, ByVal recycleMode As MccDaq.RecycleMode, ByVal trigType As MccDaq.C8536TriggerType) As MccDaq.ErrorInfo

Configure for hardware triggering; use when existing code includes MccDaq.OptionState:

Public Function C8536Config(ByVal counterNum As Integer, ByVal outputControl As MccDaq.C8536OutputControl, ByVal recycleMode As MccDaq.RecycleMode, ByVal retrigger As MccDaq.OptionState) As MccDaq.ErrorInfo

C# .NET

Configure for software triggering:

public MccDaq.ErrorInfo C8536Config(int counterNum, MccDaq.C8536OutputControl outputControl, MccDaq.RecycleMode recycleMode, MccDaq.C8536TriggerType trigType)

Configure for hardware triggering; use when existing code includes MccDaq.OptionState:

public MccDaq.ErrorInfo C8536Config(int counterNum, MccDaq.C8536OutputControl outputControl, MccDaq.RecycleMode recycleMode, MccDaq.OptionState retrigger)

Parameters

counterNum

Selects one of the counter channels. An 8536 has 3 counters. The value may be 1, 2 or 3.

INT32 Series boards have two chips installed, so the counterNum value may be 1 to 6.

outputControl

Specifies the action of the output signal. Set it to one of the constants in the "outputControl parameter values" section below.

retrigger

If set to Recycle (as opposed to OneTime), the counter automatically reloads to the starting count every time it reaches 0, and then counting continues

recycleMode

If set to Enabled, every trigger on the counter's trigger input initiates loading of the initial count. Counting proceeds from the initial count.

trigType

Specifies the trigger type. Set it to one of the constants in the "trigType parameter values" section below.

Returns

outputControl parameter values

All of the outputControl settings are MccDaq.C8536OutputControl enumerated constants. To set a variable to one of these constants, refer to the MccDaq object and the C8536OutputControl enumeration (for example, variable = MccDaq.C8536OutputControl.HighPulseOnTc, variable = MccDaq.C8536OutputControl.ToggleOnTc, etc.).

HighPulseOnTcOutput transitions from low to high for one clock pulse on terminal count
ToggleOnTcOutput changes state on the terminal count.
HighUntilTcOutput transitions to high at the start of counting then goes low on the terminal count.

trigType parameter values

All of the trigType settings are MccDaq.C8536TriggerType enumerated constants. To set a variable to one of these constants, refer to the MccDaq object and the C8536TriggerType enumeration (for example, variable = MccDaq.C8536OutputControl.HighPulseOnTc, variable = MccDaq.C8536OutputControl.ToggleOnTc, etc.).

HWStartTrigThe first trigger on the counter's trigger input initiates loading of the initial count. Counting proceeds from the initial count.
HWRetrigEvery trigger on the counter's trigger input initiates loading of the initial count. Counting proceeds from the initial count.
SWStartTrigThe CLoad() method initiates loading of the initial count. Counting proceeds from the initial count.