Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering out the input messages

Can any one help me out Iam looking for a sample code which Filters out the Incoming messages, i.e I dont want to receive all the messages which are broadcasted on the CAN Bus from the engine.
Instead I want to send a request asking just to transmit the messages what I mention in a excel sheet. Iam using NI-USB 8473 for my application.

 

 

Thank you,

 

Shanth.

0 Kudos
Message 1 of 4
(6,621 Views)

Hi shanth422,

 

If you go to the NI example finderer by clicking help>>find examples then click Hardware Input and Output>>CAN>>Frame API>>Basic,  you can look at the Series2 Filter Mode.vi. This example is similar to the CAN Receive.vi example, but allows you to set the Series 2 attributes that filter incoming CAN frames.

 

Hope that helps.

 

Scott M.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(6,609 Views)

Scott,

 

         Can you pls explain me once how to use this vi. I tried to run the vi by entering the arbitration ID which I dont need to see, but its still displaying me that Arbitration Id. Can you pls say wht i/ps should be given under Series 2Filter Mode, Series 2 Comparator and Series 2 Mask.

 

Thank you,

 

Shanth

0 Kudos
Message 3 of 4
(6,607 Views)

Hi Shanth,

 

When you push the configure button in the example it will pop up a window that will show you how how to build a filter from a mask and a comparator.

 

You can find more about what the mask and comparator mean in the NI-CAN Hardware and Software manual on pg452.

 

Scott M. 

 

ps you might need to use the windows calculator to convert between decimal and binary.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(6,600 Views)