Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN Diagnostic mode with VI / C (DLL)

Hello all,

 

I'm trying to communicate with a DUT using LIN Diagnostic mode.

I'm making use of the NI PCI-8516. 

 

I had a look at the examples on the CD that came with the product.

There are VI and VS C examples.

 

With the VS examples, I saw that sending PDU packets with LIN isn't implemented.

With Flexray, it is.

 

I tried modifying the LIN VI examples to send PDU packets (see examples).

Everything is set on PDU and I also modified the LDF for diagnostic mode.

 

I tried to modify the Init LIN Frame array VI .


After running, following exeption is given: 

[IMG]http://i57.tinypic.com/2due6bn.png[/IMG]

 

Someone experienced this error before?

 

Is it even possible to use LIN diagnostic mode with a VI using NI XNET?

 

Does anyone by chance ever created a driver (dll/ VS project) which can communicate over LIN diagnostic mode?

 

Thanks in advance!!

 

BR Jeroen

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

Why do you intend to use PDUs with LIN?

0 Kudos
Message 2 of 4
(6,053 Views)

btw the Automotive Diagnostic Command Set offers LIN Diagnostics at a high level

so may check if it offers what you are looking for as already build in feature:

 

https://www.ni.com/en-us/shop/product/automotive-diagnostic-command-set-toolkit.html

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

Hi Jeroen,

When it comes to you error: what do you select in "PDU List" (and PDU List 2)?  Which version of NI XNET are you using? Can you try replacing it with the Generic instance of NI XNET Create Session?

 

Best,

Jos

0 Kudos
Message 4 of 4
(5,879 Views)