a question about PCAN Basic send example

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
workhard10
Posts: 7
Joined: Wed 18. Nov 2015, 10:37

a question about PCAN Basic send example

Post by workhard10 » Tue 24. Nov 2015, 15:50

I want to try the PCAN Basic send example, and I got a Erorr window, can anyone tell me, how can I solve the problem?

see the attachment.
Attachments
Erorr.pdf
(116.28 KiB) Downloaded 491 times

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

Re: a question about PCAN Basic send example

Post by M.Maidhof » Tue 24. Nov 2015, 16:22

Hi,

which CAN Hardware from PEAK do you use?

regards

Michael

workhard10
Posts: 7
Joined: Wed 18. Nov 2015, 10:37

Re: a question about PCAN Basic send example

Post by workhard10 » Tue 24. Nov 2015, 22:17

M.Maidhof wrote:Hi,

which CAN Hardware from PEAK do you use?

regards

Michael
I use PCAN-USB optoentkoppelt IPEH-002022.

Do you know, how can I delete the post? I have already a same post in Foren-Übersicht ‹ Software Support ‹ Development Packages ‹ PCAN-Basic

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

Re: a question about PCAN Basic send example

Post by K.Wagner » Wed 25. Nov 2015, 09:04

Double post was deleted
Best regards,
Keneth

workhard10
Posts: 7
Joined: Wed 18. Nov 2015, 10:37

Re: a question about PCAN Basic send example

Post by workhard10 » Wed 25. Nov 2015, 10:59

K.Wagner wrote:Double post was deleted
thanks!

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

Re: a question about PCAN Basic send example

Post by M.Maidhof » Wed 25. Nov 2015, 15:00

Hi,

to solve your problem, please do the following steps:

- select "PCAN_USBBUS1" instead of "PCAN_NONEBUS" for the channel

please also check the correct installation of your PCANBasic dlls:

Windows 32-bit systems:
32-bit DLL > Windows\System32

Windows 64-bit system:
32-bit DLL > Windows\SysWOW64
64-bit DLL > Windows\System32

please uninstall the labview drivers, and reinstall them again after you have placed the dlls in the needed directory

regards

Michael

workhard10
Posts: 7
Joined: Wed 18. Nov 2015, 10:37

Re: a question about PCAN Basic send example

Post by workhard10 » Thu 26. Nov 2015, 12:33

M.Maidhof wrote:Hi,

to solve your problem, please do the following steps:

- select "PCAN_USBBUS1" instead of "PCAN_NONEBUS" for the channel

please also check the correct installation of your PCANBasic dlls:

Windows 32-bit systems:
32-bit DLL > Windows\System32

Windows 64-bit system:
32-bit DLL > Windows\SysWOW64
64-bit DLL > Windows\System32

please uninstall the labview drivers, and reinstall them again after you have placed the dlls in the needed directory

regards

Michael
Thanks a lot! It runs now! :D

I don't know how I can use the example to build my own Frontpanel and to send/receive the CAN bus data to/from another microcontroller CAN interface.

I have a PCB borad and there are 19 relaies on the PCB borad. The 19 relaies are controlled by the micocontroller LPC11C12FBD48, and there is a CAN interface on the PCB board. I have conected PCAN-USB(IPEH-002022) to the CAN bus interface on my relay board and I want to controll the 19 relaies on the PCB board with my own Labview Frontpanel.

I image the Labview Frontpanel like that: there are 19 switches to turn on/off the relaies on the board and there are 19 small windows to show the status of relaies, on or off. The data will be exchange between labview and PCB board....

Can you give me some help? I look forward to your help.

regards

Lidong

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

Re: a question about PCAN Basic send example

Post by M.Maidhof » Thu 26. Nov 2015, 12:41

yes, use CAN_Read() and CAN_Write() to exchange CAN data, to control your device and read the status.

regards

Michael

Post Reply