CAN Development Packages for Windows®
-
rampinia
- Posts: 25
- Joined: Sat 5. Mar 2011, 11:37
Post
by rampinia » Thu 31. Oct 2013, 14:19
Hello
I jost got my PCAN PCI card 4 channel (IPEH-003040). I have a problem with CanApi2.
I'm calling CAN_SetDeviceName('pcan_pci') with no error but when I go throught enumerating the hardware I get no hardware. Same routine called with CAN_SetDeviceName('pcan_usb') enumerate succesfully.
I'm using Delphi XE4 with Windows7 64bit.
Code: Select all
Ret := CAN_SetDeviceName('pcan_pci');
if Ret<>CAN_ERR_OK then exit;
for HwIdx := 1 to MAX_HCANHW do
begin
NodeInfo.NodeType := NodeDevice;
Ret := CAN_GetHwParam(HwIdx, CAN_PARAM_NAME, @HwName, MAX_DRIVERNAMELEN);
Attached a screenshot of how CANNetConfign and CAn Hardware Control Pannel Applet appears.

- PcanPCI.jpg (116.01 KiB) Viewed 8251 times
Last edited by
M.Gerber on Thu 31. Oct 2013, 14:42, edited 1 time in total.
Reason: [Code] tag inserted for better legibility.
-
K.Wolf
- Software Development

- Posts: 141
- Joined: Wed 22. Sep 2010, 15:37
Post
by K.Wolf » Thu 31. Oct 2013, 16:22
Hi,
this is strange.
I've tested this by myself in a short Delphi XE2 application, and it works as expected. Both as 32-bit and 64-bit EXE. Can you verify that my example (see attachment) also works on your computer?
-
rampinia
- Posts: 25
- Joined: Sat 5. Mar 2011, 11:37
Post
by rampinia » Mon 4. Nov 2013, 09:03
Hello,
yes your test program works fine, also with Delphi XE4.
I'm gone throught my source code all the weekend to understand where it differs from your call.
I didn't get any results. In my source the PCI enumertaion still does not work. I get Always results 5120d back from the CAN_GetHardwareParam.
Any other suggestion?
Regards
-
rampinia
- Posts: 25
- Joined: Sat 5. Mar 2011, 11:37
Post
by rampinia » Mon 4. Nov 2013, 09:44
Problem Solved,
don't ask me how.
I did Windows->Restart, Delphi->Project->Clean All, Delphi->Project->Build All and now it works.
Thanks for the support,
Regards