MT Hamming Decoder VI

LabView Digital Modulation

MT Hamming Decoder VI

Decodes 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 (k) equals 2m-m–1, code word length (n) equals 2m–1, and the error correcting capacity (t) equals 1. Valid values of m lie in the range 2 ≤ m ≤ 16.

MT Hamming Decoder

c1di8.gif

input bit stream specifies the bit sequence representing the Hamming-encoded data bits to decode. Use the MT Hamming Encoder VI to generate this encoded bit stream.

Tip  To ensure that the output bit stream data corresponds to the entire message, specify an input bit stream with a length that is an integer multiple of n = 2m–1 where n = 2m–1 is the length of the Hamming code word. If the length of the input bit stream is not an integer multiple of n, the last {length(input bit stream) modulo n} bits are buffered in the Hamming decoder. 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 an integer between 2 and 16, inclusive. Notice that the Hamming order m is used to specify the Hamming code with data word length equaling 2mm–1 and code word length equaling 2m–1. The default is 3.

cbool.gif

reset? specifies whether to clear the internal state of the decoder. 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 clears any buffered bits from previous iterations. When reset? is set to FALSE, the VI continues performing Hamming decoding from the previous iteration. Any buffered bits from the previous iteration are added to the beginning of the input bit stream prior to decoding. The default is TRUE.

Tip   When reset? is set to TRUE, the VI initializes the Galois field structure corresponding to the Hamming code. Once initialized, this same Galois field structure is used for performing the Hamming decoding provided reset? is set to FALSE. This initialization may consume significant amounts of time for code word lengths greater than 127. For best performance, perform Hamming decoding 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 decoded bit stream.

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.