Example Code

General CRC calculator (1..32 Bit)

Code and Documents

Attachment

 

This are 4 *.vi's, which should help you to calculate CRC. The main VI is CRC_Universal.vi. If you set "Final_XOR_value" to zero it's a CRC-16 CCITT example. The default values are the CRC-16 of GENIbus. GENIbus is a communication protocol of the Grundfos company. You find the specification at https://forums.ni.com/t5/LabVIEW/Has-anyone-any-experiance-of-communication-with-grundfos-pump/m-p/2....

 

The code is based on the examples of http://zorc.breitbandkatze.de/crc.html. This homepage based on PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS article written by Ross N. Williams.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors