Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Why the LIN API takes too long to update slave task?

Hi I'm using two LIN-8476 to simulate several devices in two separated LIN networks, all the devices are slaves.  A CVI application is controlling both devices and updates continuosly the data for each of the simulated devices.  My main problem is that application, requires a lot of syncronization and takes too long to update the values for the simulated devices when using the 8476 devices, I have tried several methods and I was capable to isolate to problem to the point at which I use the API function ncWrite.   My application is capable to use a tool from other vendors and I have not seen the problem, everithing is the same except the API to access the HW.

 

Do you have any idea or clue to optimize my NI implementation?

 

0 Kudos
Message 1 of 7
(7,749 Views)

Hello TomMex,

 

I just tried to benchmark the time for ncWrite to update the LIN response of a slave and the time was almost too small for my OS to measure.  How much time delay are you seeing?

 

Also, if you post your LIN code, we may be able to help further.

 

Have a great day. 

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 7
(7,662 Views)
Are you using two devices in different threads?  Have you measure the result in the LIN Bus, not only at level function?
0 Kudos
Message 3 of 7
(7,659 Views)

Hello TomMex,

 

I did not measure the delay from the function call to the update on the bus.  This sounds a little more challenging, because you have to synchronize sending a header "right after" the function was called.  Or I guess you can be sending headers continuously for the slave.  What was your strategy here?

 

What value did you see for delays?

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 4 of 7
(7,655 Views)

I have a Master device requesting to update data from my slaves simulated devices, what I'm seeing in the LIN BUS is that takes really long to update the data values in my simulated slave devices using the ncwrite function.  My master device needs to receive the data syncronized, but I can adjust tolerances to receive the data with +- 100 ms differences.  With the 8476 I cannot get this kind of "soft syncronization", and my feeling is that the LIN API takes to long to update the data for slave messages.

0 Kudos
Message 5 of 7
(7,652 Views)

Hi,

 

Did you fix your problem?

 

I am running into one problem about working in slave mode of USB-8476s.

 

Could you give me some helps?

 

 

This device how to work in slave mode,in LIN bus,how does it work?

 

 

thanks

0 Kudos
Message 6 of 7
(6,906 Views)

Nope... I switched to a Vector CANCaseXL.

0 Kudos
Message 7 of 7
(6,901 Views)