NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
TomMex
Posts: 6
0 Kudos

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?

 

Active Participant
O_Proulx
Posts: 306
0 Kudos

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

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
Member
TomMex
Posts: 6
0 Kudos

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

Are you using two devices in different threads?  Have you measure the result in the LIN Bus, not only at level function?
Active Participant
O_Proulx
Posts: 306
0 Kudos

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

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
Member
TomMex
Posts: 6
0 Kudos

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

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.

Member
Albert.lu
Posts: 35
0 Kudos

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

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

Member
TomMex
Posts: 6
0 Kudos

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

Nope... I switched to a Vector CANCaseXL.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page