No exception or display

USB to CAN Interface
Post Reply
marmorand31
Posts: 2
Joined: Mon 14. Jun 2021, 10:03

No exception or display

Post by marmorand31 » Mon 14. Jun 2021, 10:27

Dear readers,

I'm currently trying to use the PCAN-USB API in a LabWindows/CVI app, I included header, .dll, .lib, the function i use from this library are recognised by the IDE but i haven't any display and when i try to catch the frame i send through the CAN bus with PCAN VIEW i can't get anything. Did I forget to add something to my project or is there no error management included in this library ?

Also, i'm trying to use the simple form of CAN_initialize that only use handle and baudrate but it tell me that i can only use the 5 args form with handle, baudrate, type, ioPort and interrupt while a lot of example i see on the forum use the 2 args form. Does this have anything to do with my first problem?

Regards.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: No exception or display

Post by M.Maidhof » Mon 14. Jun 2021, 12:44

Hello,

as a first step, please check that the PCANBasic.dll files (32 and 64bit) are correctly installed on your system. As a test, please start the PCANBasic examples for 32 and 64bit which we deliver with the API:

https://www.peak-system.com/produktcd/D ... xample.exe
https://www.peak-system.com/produktcd/D ... xample.exe

If both executable will work on your system, the dlls are correctly installed. If not, please remove all local dlls and install the PCANBasic dll files through our driver setup selecting the PCANBasic option.

Please read the help file of PCANBasic to understand that you only need 2 parameters when using PCAN-USB or PCAN-PCI based hardware. The other parameters are only for older non pnp hardware.

regards

Michael

marmorand31
Posts: 2
Joined: Mon 14. Jun 2021, 10:03

Re: No exception or display

Post by marmorand31 » Mon 14. Jun 2021, 12:56

Hello Michael,

Thanks for your answer, the dll are correctly installed, both .exe works fine, it was just a mistake by my side..

I succeed to get the statut of the 5 parameters init and to send a frame with the CAN_Write function. I still can't use the 2 parameters function but i will find what i am doing wrong in the documentation or in this forum.

Thanks again

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: No exception or display

Post by M.Maidhof » Mon 14. Jun 2021, 14:25

Hi,

this could also be a LabWindows/CVI related issue (no overloading possible), simply use 5 parameters with 0 for the last three parameters.

regards

Michael

Post Reply