Re: PCANBasic.dll performance
Posted: Mon 18. Nov 2019, 12:18
you wrote:
In the documenation you find some hint that you should read ALWAYS until you get the CAN_ERR_QRCVEMPTY (receive queue of the DRIVER is empty)
Calling for every CAN-Frame a single CAN Read is not correct - change it and you will see that it works (thousends of other applications work like that and work perfectly since many years..)
what we are talking about? - call read every 1000ms, 100ms, 10ms or some µs ?!?During transmission another thread is constantly reading data using CAN_read(), another one ditto for the 2nd channel.
In the documenation you find some hint that you should read ALWAYS until you get the CAN_ERR_QRCVEMPTY (receive queue of the DRIVER is empty)
Calling for every CAN-Frame a single CAN Read is not correct - change it and you will see that it works (thousends of other applications work like that and work perfectly since many years..)