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
matthew29
Posts: 1
0 Kudos

CAN ncRead

We are using NI CAN Card and for the scripting side, we make use of the NI CAN inbuilt function ncRead to read the data from the NI CAN Card. We application software is sending the data packet at the rate of 40 ms. we are trying to read the data after 145ms, to ensure that the data is consistent. But we observe that there is a lag in the data. i.e. the software is sending the packet at the thrid time, but it is receiving only in the fourth time. Moreover, we tried using the ncWaitForState function also, but it was of no help.

 

Any idea or thoughts to overcome this problem...

Member
ColdenR
Posts: 153
0 Kudos

Re: CAN ncRead

Hello Matthew, 

 

What NI CAN card are you using? Also, what other CAN device are you communicating with using this CAN card?

 

Can you describe in more detail what you mean when you say there is a lag in the data? How long is the lag in the data, and is it just an offset or does it read too slowly for the rate data is coming in (and therefore fall behind)?

 

Finally, have you tried using some of the examples in the example finder? (Help --> Find Examples --> Hardware Input and Output --> CAN --> NI-CAN)

Colden Rouleau

Product Support Engineer | NI-RIO R&D | National Instruments
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