From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
To calculate the LRC, you perform an XOR operation of every bit, add it to the end of the message, and then XOR that entire message again after transmission. If that second XOR calculation equals zero, then the last bitstream (minus the added LRC value at the end) is the same message as the one that was sent.
This pseudo-code might explain the XOR operation a bit better: