LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC8 -> x8 x5 x3 x2 x 1

Solved!
Go to solution

Hello,

 

I need to calculate a Cyclic Redundancy Check. Can someone help me out with this problem?

 

The polynomial for this CRC8 is x8 + x5 + x3 + x2 + x + 1. I did not find any standard solution for this type.

 

Greetings

 

0 Kudos
Message 1 of 4
(8,029 Views)

Hi DAckermann,

 

I can't claim to be an expert but a quick search has thrown up some promising resources:

 

Inline CRC Reference Library (CRC-32, CRC-16, and CRC-8)

Previous Forum Post

 

It's always helpful to let us know what you have tried/researched so far Smiley Happy


Regards,

Peter D

0 Kudos
Message 2 of 4
(8,021 Views)
Solution
Accepted by DAckermann

Hi

 

I found some pseudocode and was able to solve it by implementing this in LabVIEW.

 

Thanks.

 

for (i=Num_Bits; i>=0; i--)
{
xor_5 = CRC_4 ^ CRC_7;
xor_4 = CRC_2 ^ CRC_7;
xor_3 = CRC_1 ^ CRC_7;
xor_2 = CRC_0 ^ CRC_7;
xor_1 = data_in[i] ^ CRC_7;
CRC_7 = CRC_6;
CRC_6 = CRC_5;
CRC_5 = xor_5;
CRC_4 = CRC_3;
CRC_3 = xor_4;
CRC_2 = xor_3;
CRC_1 = xor_2;
CRC_0 = xor_1;
}

0 Kudos
Message 3 of 4
(7,977 Views)

hello,

I can convert your VI in version 8.5
please

thank you

cordially

 

manu23

0 Kudos
Message 4 of 4
(7,557 Views)