Quote Originally Posted by Codeplug View Post
The best option would be to not poll at all, but instead be notified when an event occurs. If that isn't an option, then you have to poll.

Do you really need to poll the driver more than once every 15ms? Why?

What "driver libraries" are you referring to?

gg
I am using Kvaser and vectorCAN, which requires polling.

And yes I do need a loop thats faster than 15ms. I am implementing a communication algorithm with handshaking. So i send a command, get its response, and send next command, get another response. All of this must occure sequentially. The response is much much faster than the polling on the PC side, so the PC side is my weakest link in the speed of this procedure. At the speed that I am polling and sending commands now, I am only using 4% of the CAN bus load, and I have plenty of space to put more messages on the bus. I just don't know how to speed it up on the PC side.