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
end of transmit event
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: end of transmit event
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
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
Marvin Heidemann
PEAK-Support Team
-
- Posts: 24
- Joined: Fri 15. Mar 2019, 14:44
Re: end of transmit event
hello,
thanks for your answer. My question was for timestamping purposes.
thanks
regards
Michele
thanks for your answer. My question was for timestamping purposes.
thanks
regards
Michele
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: end of transmit event
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
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
Marvin Heidemann
PEAK-Support Team