LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting C code for CRC calculation into labVIEW

Solved!
Go to solution

Hi guys, I am a bit stuck. I am trying to implement a piece of C code into LabVIEW and I do some apparent mistake. Could you anybody compare the C code with my VI and tell me what I am missing? Thanks in advance.

 

For combination of Bytes1 and 2 the CRC results should be (all in decadic):

 

Byte1    Byte2 CRC
254       0        061
253       0        002
252       0        023
251       0        124
250       0        105
249       0        086
248       0        067
247       0        128
246       0        149
245       0        170

LV 2011, Win7
Download All
0 Kudos
Message 1 of 3
(2,793 Views)
Solution
Accepted by topic author ceties

I did very few improvements + a correction (you forget the binary inversion)

 

-Benjamin

_________________________
CLA
0 Kudos
Message 2 of 3
(2,786 Views)

Thanks!!! I knew I overlooked something.

LV 2011, Win7
0 Kudos
Message 3 of 3
(2,766 Views)