Page 1 of 1

end of transmit event

Posted: Mon 26. Jul 2021, 10:57
by tuttoaldoc
Hello,
I'm using the PCANBasic dll in a windows program. I'm using, as suggested, the SetEvent interface to set an event when a message is received. Is it possible to do the same in transmission? As far as I understood the CanWrite interface use a queue mechanism. Is it possible to rise an event at end of transmission and know which message was sent?
thanks
regards
Michele

Re: end of transmit event

Posted: Mon 26. Jul 2021, 16:09
by M.Heidemann
Hello,

There is not Transmit-Event implemented in PCANBasic, having
the transmission event raised therefore is not possible in PCANBasic.

If you do not fill the queue faster than the frames can be written by the hardware, you can
be quite sure that the last frame you pushed to queue is the last one that was written.

For further questions feel free to contact me again.

Best Regards

Marvin

Re: end of transmit event

Posted: Tue 27. Jul 2021, 09:02
by tuttoaldoc
hello,
thanks for your answer. My question was for timestamping purposes.
thanks
regards
Michele

Re: end of transmit event

Posted: Tue 27. Jul 2021, 12:42
by M.Heidemann
Hello,

in this case you could consider taking a look at the PCAN-Developer package:

https://www.peak-system.com/PCAN-Develo ... .html?&L=1

The PCAN-API 4 included in the Developer package allows for Messages have future
timestamps, which will have the messages transmit once the timestamp is reached.

If you only want to receive the timestamp for a transmit-message, you can also take
advantage of the self-receive feature of PCAN-API 4.

For further questions feel free to contact me again.

Best Regards

Marvin