Unable to find the library PCANBasic.dll

The free CAN Software API (Application Programming Interface) for Windows®
sagarpadwal
Posts: 5
Joined: Mon 16. Nov 2015, 06:31

Unable to find the library PCANBasic.dll

Post by sagarpadwal » Mon 16. Nov 2015, 06:42

Hello,

I am developing a VB application with Visual studio 2008.

I have a problem with the library "PCANBasic.dll". I can't add this library to the vb project as reference because vb.net reports an error. The error says that the library is not a valid COM.

After that i tried to find solution on your forum and followed solution mentioned in
https://www.peak-system.com/forum/viewt ... f=41&t=189

but still not working. when i try to run the code of PCANBasic Example it giving error as "Unable to find the library PCANBasic.dll"

reply ASAP.


Regards,
Sagar

sagarpadwal
Posts: 5
Joined: Mon 16. Nov 2015, 06:31

Re: Unable to find the library PCANBasic.dll

Post by sagarpadwal » Mon 16. Nov 2015, 08:27

Hello,

I just able to fix the problem with .dll

But now the next problem is
-I run the PCAN Basic Sample code and it started, but what i have to select from options 'Hardware' and 'Hardware Type'?
Basically to can in intialize the CAN hardware with this PCAN Basic Sample code and able to send and receive messages throug it? if Yes, hten whats the procedure?

Regards,
Sagar

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

Re: Unable to find the library PCANBasic.dll

Post by M.Maidhof » Mon 16. Nov 2015, 10:50

Hi,

which PEAK hardware did you connected to your PC?

regards

Michael

sagarpadwal
Posts: 5
Joined: Mon 16. Nov 2015, 06:31

Re: Unable to find the library PCANBasic.dll

Post by sagarpadwal » Mon 16. Nov 2015, 10:58

Hi Michael,

i am using 'PCAN-PCI Express Dual Channel' PCI CAN card.

Regards
Sagar

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

Re: Unable to find the library PCANBasic.dll

Post by M.Maidhof » Mon 16. Nov 2015, 12:12

Hi,

please select PCAN_PCIBUS1 0x41 as handle for channel1, hardwaretype is not necessary for PCI cards, please read info in the PCANBasic help file (PCANBasic_enu.chm) for more deatils.

regards

Michael

BTW: this has nothing to do with PCAN-View, so it will be better to move that thread into the PCANBasic API section.

sagarpadwal
Posts: 5
Joined: Mon 16. Nov 2015, 06:31

Re: Unable to find the library PCANBasic.dll

Post by sagarpadwal » Mon 16. Nov 2015, 13:08

Hi,
I have attached the snapshot of application where no option in the dropdown list as 'PCAN_PCIBUS1 0x41' as handle for channel1.

I have developed vb application with other CAN hardware but as now with current requirement i want to use that application with this current hardware i mentioned in previous message.
so i have to change the communication level interface of that application , so that it will work with the PCAN PCI-e card as well.

i want to check that how this PCAN Basic sample example works.

I want to send and receive CAN messages with this PCAN Basic sample application so that i can implement the similar changes in my current application code.


Regards,
Sagar
Attachments
PCAN Basic sample screenshot
PCAN Basic sample screenshot
PCAN basic.bmp (1.95 MiB) Viewed 23337 times

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

Re: Unable to find the library PCANBasic.dll

Post by M.Maidhof » Mon 16. Nov 2015, 13:53

Hi,

is the PCAN-PCI card correctly installed on your system? Do you have any other software running which uses that card at the moment. Does PCAN-View show the card?

regards

Michael

sagarpadwal
Posts: 5
Joined: Mon 16. Nov 2015, 06:31

Re: Unable to find the library PCANBasic.dll

Post by sagarpadwal » Mon 16. Nov 2015, 13:56

HI,

Yes, the PCI card installed correctly on PC.
And i checked it through the PCAN view ,it shows both the channels and i also checked it with transmitting and receiving messages.

Regards,
Sagar

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

Re: Unable to find the library PCANBasic.dll

Post by M.Maidhof » Mon 16. Nov 2015, 14:37

Hi,

Please download the Sysinfo tool from the following link:

http://www.peak-system.com/fileadmin/me ... ysInfo.zip

unzip it and start the *.exe (no istallation required), then make a system analysis (don´t use the quick-analysis functionality) and save the result into a XML file. Please sent the XML file to us by email (use the support email address).

best regards

Michael

Ramiro Cavazos
Posts: 2
Joined: Thu 28. Apr 2016, 15:02

Re: Unable to find the library PCANBasic.dll

Post by Ramiro Cavazos » Thu 28. Apr 2016, 15:30

Hi

I am using the PCAN-USB Pro hardware, and when running the PCAN-Basic Example I'm getting a similar problem.

1. When I run the application, a compile error in line 990 appears and it does not compile.
2. I commented lines 989 to 991, and now I am able to compile.
3. After compiling, I get an error message “Unable to find the DLL PCANBasic.dll!”
4. Once the application is open, I can not find the PCAN_USBBUS1 hardware.

How did you solved this issue?
PCAN Basic Example.jpg
PCAN Basic Example.jpg (114.02 KiB) Viewed 22097 times

Post Reply