Error Generator API

CAN FD and LIN Interface for High-Speed USB 2.0
Locked
devchandgadhiya
Posts: 4
Joined: Mon 25. Nov 2019, 08:02

Error Generator API

Post by devchandgadhiya » Mon 25. Nov 2019, 08:12

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

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Error Generator API

Post by K.Wagner » Mon 25. Nov 2019, 08:47

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.
Best regards,
Keneth

devchandgadhiya
Posts: 4
Joined: Mon 25. Nov 2019, 08:02

Re: Error Generator API

Post by devchandgadhiya » Thu 6. Feb 2020, 10:20

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. ?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Error Generator API

Post by K.Wagner » Thu 6. Feb 2020, 10:33

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.
Best regards,
Keneth

devchandgadhiya
Posts: 4
Joined: Mon 25. Nov 2019, 08:02

Re: Error Generator API

Post by devchandgadhiya » Thu 6. Feb 2020, 10:38

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.

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Error Generator API

Post by K.Wagner » Thu 6. Feb 2020, 11:41

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.
Best regards,
Keneth

devchandgadhiya
Posts: 4
Joined: Mon 25. Nov 2019, 08:02

Re: Error Generator API

Post by devchandgadhiya » Thu 6. Feb 2020, 12:53

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 ?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Error Generator API

Post by K.Wagner » Thu 6. Feb 2020, 13:34

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. :evil:
Best regards,
Keneth

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Error Generator API

Post by K.Wagner » Thu 6. Feb 2020, 14:47

Answered per E-Mail. Closed!
Best regards,
Keneth

Locked