ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC-16 with 0x8005 polynomial

Solved!
Go to solution

I am not getting the expect result. I modified the VI to look like this:

 

crc16_mod.PNG

0 Kudos
Message 11 of 22
(5,810 Views)

Could you post a picture of your modified version?

0 Kudos
Message 12 of 22
(5,798 Views)

The 0x1FF3 should be 0x4042...

0 Kudos
Message 13 of 22
(5,795 Views)
Solution
Accepted by topic author swbpnole

Here, use this.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 22
(5,789 Views)

Could explain this one? Why the changes?

0 Kudos
Message 15 of 22
(5,784 Views)

@swbpnole wrote:

Could explain this one? Why the changes?


This VI is based on a setup I have had for a very long time.  Like I said before, there are many different ways to do a CRC.  In this case, we needed to shift the CRC to the left while the Data is shifted to the left.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 22
(5,776 Views)

Are you using a PC? This is too wierd I am not getting this...Smiley Sad

0 Kudos
Message 17 of 22
(5,770 Views)

Mine:

 

crc16_mod 2.PNG

0 Kudos
Message 18 of 22
(5,756 Views)

Try right-clicking on the Boolean Array To Number and select properties.  There is a tab in there to allow you to change the output data type.  Change that to a U16.  I'm not seeing anything else obviously wrong.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 22
(5,738 Views)

Between you and the NI AE, I realized it was my polynomial and initial value representations, both were I32 and should have been U16. Thanks...

0 Kudos
Message 20 of 22
(5,726 Views)