end of transmit event

USB to CAN Interface
Post Reply
tuttoaldoc
Posts: 24
Joined: Fri 15. Mar 2019, 14:44

end of transmit event

Post by tuttoaldoc » Mon 26. Jul 2021, 10:57

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

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: end of transmit event

Post by M.Heidemann » Mon 26. Jul 2021, 16:09

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
---
Marvin Heidemann
PEAK-Support Team

tuttoaldoc
Posts: 24
Joined: Fri 15. Mar 2019, 14:44

Re: end of transmit event

Post by tuttoaldoc » Tue 27. Jul 2021, 09:02

hello,
thanks for your answer. My question was for timestamping purposes.
thanks
regards
Michele

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: end of transmit event

Post by M.Heidemann » Tue 27. Jul 2021, 12:42

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
---
Marvin Heidemann
PEAK-Support Team

Post Reply