 pks
		
			pks
		
		
		
		
		
		
		
		
	
			07-06-2009 10:39 AM
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.
07-07-2009 11:10 AM
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.
07-07-2009 11:30 AM
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
07-07-2009 01:05 PM
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.