Error Generator API
-
- Posts: 4
- Joined: Mon 25. Nov 2019, 08:02
Error Generator API
Hi All,
I am using the PCAN-USB Pro to destroy frame using PCAN-View GUI. I am even using PCAN-Basic API for windows.
But I have not found any API to destroy CAN frame using python automation. Can you please let me know how can I do that ? or Is there any API for it ?
Thanks in advance.
best regards,
Dev
I am using the PCAN-USB Pro to destroy frame using PCAN-View GUI. I am even using PCAN-Basic API for windows.
But I have not found any API to destroy CAN frame using python automation. Can you please let me know how can I do that ? or Is there any API for it ?
Thanks in advance.
best regards,
Dev
Re: Error Generator API
Hello,
PCAN-Basic is not able to destroy frames as you are doing with PCAN-View. This is only possible with PCAN-API (a.k.a. CanApi4.dll), our professional API that is part of the developer package, PCAN-Developer 4.
PCAN-Basic is not able to destroy frames as you are doing with PCAN-View. This is only possible with PCAN-API (a.k.a. CanApi4.dll), our professional API that is part of the developer package, PCAN-Developer 4.
Best regards,
Keneth
Keneth
-
- Posts: 4
- Joined: Mon 25. Nov 2019, 08:02
Re: Error Generator API
Hello,
I have professional API that is part of the developer package, PCAN-Developer 4.
But can anyone please let me know how can i use that as Error Generator API or destroy frame. ?
I have professional API that is part of the developer package, PCAN-Developer 4.
But can anyone please let me know how can i use that as Error Generator API or destroy frame. ?
Re: Error Generator API
Hello,
please check the help documentation of the PCAN-API 4, PCAN-API_4_Documentation.pdf, on page 96. You will find in there an example in C++ on how to destroy a frame.
please check the help documentation of the PCAN-API 4, PCAN-API_4_Documentation.pdf, on page 96. You will find in there an example in C++ on how to destroy a frame.
Best regards,
Keneth
Keneth
-
- Posts: 4
- Joined: Mon 25. Nov 2019, 08:02
Re: Error Generator API
Hello Mr Wagner,
I'm using python API file CanApi4.py.
Is it possible with this file.? If yes then how to use it through python,
thanks in advance.
I'm using python API file CanApi4.py.
Is it possible with this file.? If yes then how to use it through python,
thanks in advance.
Re: Error Generator API
Dear,
as you see in the documentation, you just need to set a parameter. With the developer package you also got a sample project for python, CanApi4Example.py. In the line number 335 you will find a function called "SelectParam". In there, different parameters are set, showing you how to set parameters on CanApi4 using python. You just need to use the right parameter and their values as stated in the help documentation instead.
If you are not able to port the parameter from C++ to python, then please send an email to support[at]peak-system.com with your license data and we will send you a short sample on this.
as you see in the documentation, you just need to set a parameter. With the developer package you also got a sample project for python, CanApi4Example.py. In the line number 335 you will find a function called "SelectParam". In there, different parameters are set, showing you how to set parameters on CanApi4 using python. You just need to use the right parameter and their values as stated in the help documentation instead.
If you are not able to port the parameter from C++ to python, then please send an email to support[at]peak-system.com with your license data and we will send you a short sample on this.
Best regards,
Keneth
Keneth
-
- Posts: 4
- Joined: Mon 25. Nov 2019, 08:02
Re: Error Generator API
Hello,
I have sent mail with Licence details and asked support for the short example. but i have received mail with below answer.
"we don´t have an example for this, sorry."
Could you please be helpful on this ?
I have sent mail with Licence details and asked support for the short example. but i have received mail with below answer.
"we don´t have an example for this, sorry."
Could you please be helpful on this ?
Re: Error Generator API
Dear,
you are writing at the same time per email to our support and at the same time asking in forum things. You are making us work double. You either use the forum or the support email. I was not aware that you were communicating with our support already!
As my colleague answered by mail, as I also posted in this forum, we don't have a Python example on CAN frame destruction; It was an offer I made to you, to port the actual example from the documentation into Python. So please, give us time and let us work.
you are writing at the same time per email to our support and at the same time asking in forum things. You are making us work double. You either use the forum or the support email. I was not aware that you were communicating with our support already!

As my colleague answered by mail, as I also posted in this forum, we don't have a Python example on CAN frame destruction; It was an offer I made to you, to port the actual example from the documentation into Python. So please, give us time and let us work.

Best regards,
Keneth
Keneth