Support for legacy software

The free CAN Software API (Application Programming Interface) for Windows®
Locked
r.anders
Posts: 5
Joined: Fri 15. Sep 2023, 16:56

Support for legacy software

Post by r.anders » Fri 15. Sep 2023, 17:17

Hi,
I maintain 32-bit software that uses a 7841.dll to communicate with the PCI card. I was confronted with a (W10) system on which the CanOpenDriver(0,0) function returns the value -1 (PCI_INIT_ERROR). It is a PEAK IPEH-003026 and the hardware support person probably installed a current (64-bit) driver. I suspect that a 32-bit driver needs to be installed, but I can't find one on the PEAK site. I'm also not sure whether 7841.dll still provides the appropriate interface.
I would be grateful for any advice on how to solve the problem.

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

Re: Support for legacy software

Post by K.Wagner » Fri 15. Sep 2023, 17:44

Dear,

we do not know any 7841.dll and our APIs also do not return negative values on failure.

APIs from our company are canapi2.dll, canapi4.dll, pcanbasic.dll, pcan_pci.dll/pcan_2pci.dll (part of PCANLight API dlls), among others. Check if you find any of those files in your system.
Best regards,
Keneth

r.anders
Posts: 5
Joined: Fri 15. Sep 2023, 16:56

Re: Support for legacy software

Post by r.anders » Fri 15. Sep 2023, 18:09

Oh dear,
they replaced a PCI-7841-card from ADLINK by a card from PEAK.
So I have to replace the API in any case.
Can You help anyway, concerning the 32-bit-context?

r.anders
Posts: 5
Joined: Fri 15. Sep 2023, 16:56

Re: Support for legacy software

Post by r.anders » Fri 15. Sep 2023, 18:39

I made the original software with pcan_dng.dll more than 20 years ago.

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

Re: Support for legacy software

Post by K.Wagner » Mon 18. Sep 2023, 09:59

Hello,

ich you have to implement the access to the PCAN-PCI card again, then use please the PCAN-Basic API for it. It offers support for x86 and x64 applications.

Please use the software PEAK-Drivers Setup to install both, the Plug&Play device drivers and the PCAN-Basic API.
Best regards,
Keneth

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Support for legacy software

Post by PEAK-Support » Mon 18. Sep 2023, 10:07

I made the original software with pcan_dng.dll more than 20 years ago.
The latest Version of this DLL from 2010 (Version 2.04) is available here - scroll down "Outdated APIs"
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

r.anders
Posts: 5
Joined: Fri 15. Sep 2023, 16:56

Re: Support for legacy software

Post by r.anders » Mon 25. Sep 2023, 08:07

We decided to create a new software using C# under .net. Is there example code for this that could be used as a template? Preferably a Visual Studio solution.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Support for legacy software

Post by PEAK-Support » Mon 25. Sep 2023, 08:11

As Keneth wrote - uset the PCAN-Basic API - he also add a link to the post. So simply study the Information / Package.
All you need is part of it...spend 2 minutes and you have what you need...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

r.anders
Posts: 5
Joined: Fri 15. Sep 2023, 16:56

Re: Support for legacy software

Post by r.anders » Mon 25. Sep 2023, 08:46

OK. Thanks

Locked