CreateObject() error

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Locked
sade54
Posts: 2
Joined: Thu 17. Oct 2024, 16:59

CreateObject() error

Post by sade54 » Thu 17. Oct 2024, 17:13

Hi,

I'm trying to start a macro designed for PCAN explorer 5 on version 6.7.0.2830 (Microsoft Windows 11 Pro 23H2 (10.0.22631) x64).
But I have an error triggering on this line :
Set client = CreateObject("PCAN3.PCANClient")

I have then this window:

Image

I have the same on another .pem file , at the same command. :cry:

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: CreateObject() error

Post by M.Heidemann » Fri 18. Oct 2024, 08:55

Hi,

Change PCAN3.PCANClient in your macro to PCAN4.PCANClient and you should be golden!
(PCAN-Explorer 6 uses the PCAN-API 4, PE5 did use PCAN-API 3 in later Versions)


BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

sade54
Posts: 2
Joined: Thu 17. Oct 2024, 16:59

Re: CreateObject() error

Post by sade54 » Fri 18. Oct 2024, 09:20

Thanks, it did the trick ! ;)

Locked