Hello,
Bourass wrote:i did not find any timer used for CAN_Read()
and how did you look for it? Each PCAN-Basic sample has implemented reading with timer, with events and manually. Everything you need is in the samples. You just need to study the code and understand it. We cannot do this for you.
For instance, here is an image of the PCAN-Basic sample project for C#:

- Timer control for reading with PCAN.-Basic
- PCAN-Basic-Timer.PNG (23.38 KiB) Viewed 6312 times
The code for it looks like:
Code: Select all
private void tmrRead_Tick(object sender, EventArgs e)
{
// Checks if in the receive-queue are currently messages for read
//
ReadMessages();
}
Bourass wrote:how can i adapt it to Write function?
Just create a new timer and write messages instead of reading them, in the timer function.