Line Source Divider

Output ports pulse train divider

The signal output path of Output-only I/O control block and Bidirectional I/O control block includes a Line Source Divider block.

The Line Source Divider decimates the incoming pulse train, keeping only 1 pulse every N pulses. N is user-configurable by setting LineSourceDivisionFactor to any value in the [1..8] range. The default value is 1 (no decimation).

The decimation happens on the rising edge of the incoming pulse. This is not configurable.

The decimation can be offset by up to 7 pulses by setting LineSourceInitialOffset to any value in the [0..7] range. The default value is 0 (no offset).

Typical use case

The Line Source Divider of 3 outputs is configured to decimate the same input signal by 3 with respective offsets of 0, 1 and 2.

Decimation by 3 with respective offsets of 0, 1 and 2

GenApi settings example

The pulse train of the Strobe signal of Device0 is routed to 3 outputs: TTLIO11, TTLIO12 and TTLIO21 and, then, decimated by 3 with respective offsets of 0, 1 and 2.

LineMode[TTLIO11] = Output

LineSource[TTLIO11] = Device0Strobe0

LineSourceDivisionFactor[TTLIO11] = 3

LineSourceInitialOffset[TTLIO11] = 0

LineMode[TTLIO21] = Output

LineSource[TTLIO21] = Device0Strobe0

LineSourceDivisionFactor[TTLIO21] = 3

LineSourceInitialOffset[TTLIO21] = 2

LineMode[TTLIO12] = Output

LineSource[TTLIO12] = Device0Strobe0

LineSourceDivisionFactor[TTLIO12] = 3

LineSourceInitialOffset[TTLIO12] = 1