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
(4,046 Views)

Could you post a picture of your modified version?

0 Kudos
Message 12 of 22
(4,034 Views)

The 0x1FF3 should be 0x4042...

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

Here, use this.


GCentral
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
(4,025 Views)

Could explain this one? Why the changes?

0 Kudos
Message 15 of 22
(4,020 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.


GCentral
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
(4,012 Views)

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

0 Kudos
Message 17 of 22
(4,006 Views)

Mine:

 

crc16_mod 2.PNG

0 Kudos
Message 18 of 22
(3,992 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.


GCentral
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
(3,974 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
(3,962 Views)