Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any faster NI-CAN board drivers?

1. I write a frame (ncWriteObj), wait for a response ot be available (ncWaitForState), and then read the response (ncReadObj). This process takes at least 2.0 ms, although by watching the bus traffic with a 2nd PC, I see that the response is available 0.08ms after my write left the queue.

2. I perform continuous writes as fast as possible (like the case above without a wait and read). LabVIEW 6 and the nican.dll write to the queue at about 0.2ms/write. By watching the bus traffic I see that actual writes to the bus are occurring at 1.0ms/write. Of couse at this rate the queue quickly overflows.

Any suggestions on how to reduce the nican.dll overhead? Is there a VxD or similar kernel-level board driv
er available that can be used to perform writes to the bus faster than 1/ms?
0 Kudos
Message 1 of 3
(4,982 Views)
The rates you mentioned are close to the ball park figures we estimate for writing data to the CAN bus. The present hardware specs of the CAN card does not permit writing data faster and so our firmware and the driver cannot be modified to implement faster rates.
No, there are no kernal drivers which can implement this either .
0 Kudos
Message 2 of 3
(4,982 Views)
Drejoz,
Do you have any example code for reading the response? While I can send data over the CAN bus, I can't figure out how to read the incoming messages. If you could send me a small bit of code that you used to read incoming messages I would appreciate it. My e-mail address is martin.hogan@ASL-TK.com.

Thanks,
Marty Hogan
0 Kudos
Message 3 of 3
(4,982 Views)