Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to seperate CAN frames from the received data stream

Dear Sir/Madam,

 

            When we are receiving the CAN data through NI CAN Card (NI PXI-8464) channel from network, how to separate the particular data stream based on the message ID. Also tell us how to convert that the data into the decimal values.

 

Thanks & Regards,

 

Sandeep Salunkhe

Assistant Manager (Development),

ERC - Indoor Testing,

TATA Motors Ltd.

Office:  +91-020-6613 3267

Mobile:   +91-96046 04381

 

0 Kudos
Message 1 of 2
(6,390 Views)

NI CAN frames are in the following format (a six element array of numbers in a U32 data format):

 

NI CAN Frame.JPG

 

Index the array at element 2 to get the message ID.  Index element 4 and 5 to get the data.  You then have to break apart and then combine the data bytes using the Split Number and Join Number primitives on the Data Manipulation pallete depending upon the size of the data you are receiving.  See the attached VI's, they may help you get started.

 

 

 

 

Download All
0 Kudos
Message 2 of 2
(6,281 Views)