Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC-4 calculation for SENT- Interface

Hello,

 

i have a SENT- Signal and try to create a VI which is calculate the CRC-4. I did not make it. The polynom is x4+x3+x2+1 and the seed value is 0101. I need a VI which is calculate the CRC-4 for the SENT- Signal.

 

Maybe someone can help me?

 

Best regards

 

Sebastian

 

 

 

Message 1 of 3
(6,912 Views)

Do you have examples of inputs and expected outputs?  There are many variations on CRCs and it is hard to get it figured out without some test data.


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 2 of 3
(6,906 Views)

Hey Sebastian,

 

you dont need to write the CRC check by yourself. This is already done and can be found here:

 

SENT Driver API - National Instruments - National Instruments
http://sine.ni.com/nips/cds/view/p/lang/en/nid/211171

Community: SENT Communication Protocol Reference Example in LabVIEW FPGA - National Instruments
https://decibel.ni.com/content/docs/DOC-22370

 

Both examples include a VI for the CRC check.

 

Regards, Stephan

Message 3 of 3
(6,891 Views)