From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

8-bit CRC algorithm

Solved!
Go to solution

Hello,

 

I am working on sending data that uses 8bit CRC algorithm. I am using the algorithm from https://forums.ni.com/t5/LabVIEW/Computing-CRC/m-p/825331/highlight/true#M375052. It uses the polynomial 0x31(x^8+x^5+x^4+1), initial value xFF. I have trouble getting the expected data mentioned in the example, CRC(0x00) --> 0xAC.

 

Any advices.

Thanks. 

Download All
0 Kudos
Message 1 of 4
(4,322 Views)
Solution
Accepted by topic author naga2403

Rather than spending hours debugging your VI, here is one that works. I've used it for many, many years and I can't remember where I got it to properly acknowledge the original author.

 

bd.png

CRC(0x00).PNG  CRC(0xBEEF).PNG

Message 2 of 4
(4,276 Views)

Thank you @jamiva for sharing the algorithm.

0 Kudos
Message 3 of 4
(4,229 Views)

Thank you.

0 Kudos
Message 4 of 4
(2,711 Views)