Components

cancel
Showing results for 
Search instead for 
Did you mean: 

SENT Reference API

Please post any comments, questions or feedback on the SENT Reference API in this thread.

 

SENT References:

NI Community: https://forums.ni.com/t5/Example-Code/SENT-Communication-Protocol-Reference-Example-in-LabVIEW-FPGA/...

Wikipedia: http://en.wikipedia.org/wiki/SENT_(protocol)

SAE Standard: http://standards.sae.org/j2716_201001/

Digi-Key article: http://www.digikey.com/en/articles/techzone/2011/may/digital-communication-for-smart-modern-sensors

 

 

 

 

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 1 of 11
(12,625 Views)

Hi,

I am using the following driver to read data from a sensor by SENT.

https://forums.ni.com/t5/Example-Code/SENT-Communication-Protocol-Reference-Example-in-LabVIEW-FPGA/...

I am able to read information but I have a problem with the CRC. The check is 90% wrong, even if the information is always right. Do I need to change something inside the CRC VI?

 

I have tried to use this library too (https://www.ni.com/en/support/downloads/tools-network/download.sent-driver-api.html), but I couldn't find the CRC.

 

Thanks!

 

Davide

0 Kudos
Message 2 of 11
(11,799 Views)

Please post any comments, questions or feedback on the SENT Reference API in this thread.

 

SENT References:

NI Community: https://forums.ni.com/t5/Example-Code/SENT-Communication-Protocol-Reference-Example-in-LabVIEW-FPGA/...

Wikipedia SEOhttp://en.wikipedia.org/wiki/SENT_(protocol)

SAE Standard: http://standards.sae.org/j2716_201001/

Digi-Key article: http://www.digikey.com/en/articles/techzone/2011/may/digital-communication-for-smart-modern-sensors

 

 

 

 

Christian Loew, CLA
Principal Systems Engineer, National Instruments
Please tip your answer providers with kudos.

Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments.
You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 
I think there's a bug in the XML generation.
 
0 Kudos
Message 3 of 11
(11,348 Views)

Hi Christian, 

 

Can the SENT Driver API be used with the R series PXI FPGA cards? Looks like a total of 2 digital channels are needed - 1 to receive, and 1 to send. Thanks. 

--KT

Kalin T.
0 Kudos
Message 4 of 11
(10,837 Views)

The SENT communication example provided in https://forums.ni.com/t5/Example-Code/SENT-Communication-Protocol-Reference-Example-in-LabVIEW-FPGA/... can be used with R series devices.

 

The SENT Driver API on the LabVIEW Tools Network (https://www.ni.com/en/support/downloads/tools-network/download.sent-driver-api.html) is a different set of code, and I'm not very familiar with it. But after taking a look at it, I don't see why it wouldn't work with the R series as well.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 5 of 11
(10,824 Views)

The CRC sub-vi does not seem to calculate the correct CRC value according to the SAE 2010 SENT protocol.

0 Kudos
Message 6 of 11
(9,653 Views)

By chance, would you have access to the CRC definition for the SENT protocol, that you could share with me, so that I can verify and correct the implementation?

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 7 of 11
(9,642 Views)

Sure, Christian:

 

Here are the taken from SAE_J2716_Jan2010:

SENT CRC1.JPG

 

SENT CRC2.JPG

 

SENT CRC3.JPG

 

 

SENT CRC example.JPG

It seems that the original vi used different CRC implementation.

Message 8 of 11
(9,640 Views)

Here is a LabVIEW implementation of the SAE 2010 SENT CRC code using the 5.4.2.2.2 16-element array implementation. I will include this in the example code next week, but wanted to share it with you so that you can use it before I have the chance to update the code. The default value for Initial CRC Value is 5 (binary 0101).This code tests successfully for all of the test cases in Table B.1-2.

 

SAE 2010 SENT CRC.png

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Message 9 of 11
(9,632 Views)

Hi Christian,

 

I ´d like to use your API with the NI-9401 to test our sensors. Do you tests the API until 1us TickTimes of sensors?

In our tests we must check a amount of about 30 sensors. Is it possible with e.g. 4 modules of the NI 9401?

Do you have some VIs to build the slow message from the fast message?

 

Best regards Martin

0 Kudos
Message 10 of 11
(8,422 Views)