06-10-2015 09:57 AM
Hope this helps others bypass the troubles I had. A quick Thanks to Jonathan B. of NI App. eng. for suggesting another LIN example that led to my solution!
Equipment: Automotive Battery with single wire LIN connector using protocol ver. 2.1. & Baud Rate = 19200. (LabVIEW 2014, NI-CAN ver.14, and a USB-8476 LIN interface)
Modified Example "LIN Master Send Full Frame and Receive.vi"
Bottom Line: changing the "Is Remote" input to mode 17 on "ncWriteNet.vi"! Also had to add another "ncSetAttr.vi" with the LIN Checksum Type ID set to "1" for Enhanced (needed for version 2.1).
In my case I consistently get two Error frames in the beginning, so I enable "Log Bus Errors" (easy way out of error handling) and throw away the 1st 2 frames. And "Arbitration ID" is my frame ID! I needed both 0 and 1 (2 frames to get the full data). Also found that my vi works for either state of "Termination" and "Self Reception". Also the "Data" input to "ncWriteNet.vi" didn't matter so I was able to remove the input array. Make sure the LIN"x" interface number matches the number found in NI Meas. & Auto. Explorer.
Good Luck,
Tom
08-08-2016 01:43 AM
Hello Tom
Are you sloved this problem.now ,I meet the same problem for you.
Can you gave me some advice for slove this problem.
thank you.
08-08-2016 02:36 PM
Hello Qad,
Tom created this post over a year ago, and no one has responded to it. If his instructions above do not fix your issue, you may have better luck creating your own post on the forums. Feel free to make one, as it gives your post a better chance of being noticed.