03-30-2009 10:53 AM
Hi , I am using a LIN 8476s device to monitor a LIN bus for an automotive application but have run into a small problem.
I wish to only watch for a certain ID and then parse the LDF file to obtain the the current text information for this ID.
Everything works fine except for the filtering for a specific ID for the 8476. Is it possible to get the device to only listen to certain LIN IDs ?.
The NI_CAN hardware and Software Manual seem to indicate that this is not possible but I find that hard to believe as it would be a basic feature.
I have tried the SetAttr function with Series 2 Mask set to my ID to filter for but I get an error of xBFF62104.
Does any functionality for this exist with the 8476 ?
Thanks,
Mike
04-02-2009 05:39 AM
Hi Mike,
Many thanks for contacting National Instruments. Do you know the ID you wish to search for? The LIN hardware is something I have very little experience of, but I would say unless the functionality can be programmed in software, the manual will be right in that it can't be achieved. Alternatively, you could register a product suggestion at the website so the functionality can be added to a later revision.
My apologies for not being able to provide further assistance.
Kind Regards,
04-02-2009 06:16 AM
Thanks for the reply Mike W.
Normally with LIN ( similarly with CAN ) the hardware has built in Firmware filters and Masks which can be configured to pass through defined messages. What I'm working on is creating a generic VI which extracts the schedules and data from any LDF file. All nodes in the LDF would be simulated except for the target ECU which is being tested. The ID + Data from the target ECU would be passed through up to Labview and all others are discarded by Firmware. However the target ID would change depending on the DUT so would have to be determined on the fly from the LDF selected.
What I have done to get around this is just to compare the target ID with the LIN frame received from the 8476 and determine if I'm interested in it. If so then parse it. If not then discard. Extra CPU cycles are required to do this but it works ok.
It would be a very useful feature if the 8476 had this included in its driver. I will submit it.
Thanks again.