LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crc

Solved!
Go to solution

Hi,

 

I`m struggling with CRC-8 calculation.

I need to make a VI out of picture  crc-8

When I`m trying with just 1 byte on datainput

it`s ok, but with 2-4 bytes it gives me wrong checksum.

 

 

 CRC-8.jpg

 

Any ideas how to make this Vi work ok?

CRC-8_2.jpg 

 

Thanks for any help, 

0 Kudos
Message 1 of 7
(7,765 Views)

You should have done some searching.  There are plenty of examples.  I posted this zip package that is actually based off the that exact website's javascript.

 

Message 2 of 7
(7,755 Views)

Hi,

Thanks for Your reply.

 

Even with Your CRC-8 check i do not get same result.

I get value C2  with same input as above but i need 13 as result.

Something i missed out?

 

CRC8.jpg 

0 Kudos
Message 3 of 7
(7,721 Views)

Change CRC Calculation from CRC-8 to Other (specify).  The CRC Parameters cluster is only valid when you specify Other.  The CRC-8 is a built-in version which uses an initial value of 0x00.  You also need to set CRC order to 8.

Message 4 of 7
(7,714 Views)
Solution
Accepted by topic author Dustyboy

Got it now 🙂

 

Thanks a lot! 

0 Kudos
Message 5 of 7
(7,705 Views)

You should mark Matthew's message as the solution to your question rather than your own thank you message.  You can unmark your message by going to the options menu to the upper right of your message.

Message 6 of 7
(7,698 Views)

根据这个帖子,问题得到解决了~谢谢!

0 Kudos
Message 7 of 7
(5,198 Views)