MT Hamming Encoder VI

LabView Digital Modulation

MT Hamming Encoder VI

Generates a Hamming-encoded bit stream.

The order-m Hamming codes are a special class of Bose-Chaudhari-Hocquenghem (BCH) codes in which the data word length equals 2m-m-1, code word length equals 2m-1 and the error correcting capacity equals 1. Valid values of m lie in the range 2 ≤ m ≤ 16.

MT Hamming Encoder

c1di8.gif

input bit stream specifies the bit sequence representing the data bits to encode. Use the MT Generate Bits (poly) VI to produce this bit stream or wire a custom data bit stream to this parameter.

Tip  To ensure that the output bit stream returned by the Hamming encoder corresponds to the entire input bit stream, specify an input bit stream with a length that is an integer multiple of k = 2m-m-1. If the length of the input bit stream is not an integer multiple of k, the last {length(input bit stream) modulo k} bits are buffered in the encoder. These bits are added to the beginning of the incoming bit stream during the beginning of the next iteration if reset? is set to FALSE.
ci32.gif

hamming order specifies the Hamming code order. Specify a value between 2–16, inclusive. The default is 3.

cbool.gif

reset? specifies whether to clear the internal state of the encoder. By default, the VI resets on first call. When reset? is set to TRUE, the VI initializes the Galois field structure corresponding to the Hamming code. The VI also clears any buffered bits from previous iterations. When reset? is set to FALSE, the VI continues performing Hamming encoding from the previous iteration. Any buffered bits from the previous iteration are prepended to the input bit stream prior to encoding.

Tip   When reset? is set to TRUE, the VI initializes the Galois field structure corresponding to the Hamming code. After initialization, this same Galois field structure is used for performing the Hamming encoding provided reset? is set to FALSE. This initialization may consume significant amounts of time for code word lengths greater than 127. To improve the performance of the Hamming Encoder VI, NI recommends performing Hamming encoding with reset? set to TRUE for the first iteration and set to FALSE thereafter.
ccclst.gif

error in (no error) can accept error information wired from previously called VIs. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. Right-click the front panel error in control and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cbool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the front panel error in control and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

ci32.gif

code identifies the error or warning code. Right-click the front panel error in control and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cstr.gif

source describes the origin of the error or warning. Right-click the front panel error in control and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

i1di8.gif

output bit stream returns the Hamming-encoded bits.

icclst.gif

error out passes error or warning information out of a VI to be used by other VIs. Right-click the front panel error out indicator and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the front panel error out indicator and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

ii32.gif

code is the error or warning code. Right-click the front panel error out indicator and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

istr.gif

source describes the origin of the error or warning. Right-click the front panel error out indicator and select Explain Error or Explain Warning from the shortcut menu for more information about the error.