Initialization of PCAN-miniPCIe(dual Channel)

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
abhishek1808
Posts: 18
Joined: Tue 6. Jan 2015, 09:03

Initialization of PCAN-miniPCIe(dual Channel)

Post by abhishek1808 » Mon 15. Aug 2016, 11:08

Dear All

I am using a miniPCIe (2 Channels).
The Card is on Bus 6 (Firmware 1.3.0)
The initialization function PCANBasic.Initialize( channel, baudrate, canType,IOPort,interrupt);

Question
1. What shall be the Channel name as I was not able to determine it from the documentation about PCAN basic API?
2. Shall the IOPort be 6?

I am not able to successfully initialize the module.
Language C# (.NET 4.1)
Thanks in advance

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

Re: Initialization of PCAN-miniPCIe(dual Channel)

Post by K.Wagner » Mon 15. Aug 2016, 13:20

Hello,
abhishek1808 wrote:1. What shall be the Channel name as I was not able to determine it from the documentation about PCAN basic API?
Channels are listed as they were registered in a computer, staring with one. Since you only have a card with two channels, then you have to use PCAN_PCIBUS_1, and/or PCAN_PCIBUS2. This is also documented:
Identifying the channel to use
Identifying the channel to use
identification.PNG (55.3 KiB) Viewed 4379 times
You also can take a look at the several sample projects that are delivered together with PCAN-Basic. In there is explained how to check for availbale channel and their names.
abhishek1808 wrote:2. Shall the IOPort be 6?
No, you don't need to specify any IOPort. This is only needed if you are using NOT plug & paly hardware (e.g. ISA cards). PCANBasic.Initialize has two overloads. You has picked the wrong one:
Overloads of Initialize()
Overloads of Initialize()
Initialize.PNG (17.55 KiB) Viewed 4379 times
abhishek1808 wrote:I am not able to successfully initialize the module.
Language C# (.NET 4.1)
Please try connecting the module with any of the sample projects you have received with the PCAN-Basic packages. There is also a compiled one (exe file) that you can just start and try.
Best regards,
Keneth

abhishek1808
Posts: 18
Joined: Tue 6. Jan 2015, 09:03

Re: Initialization of PCAN-miniPCIe(dual Channel)

Post by abhishek1808 » Mon 15. Aug 2016, 13:26

Dear Keneth

Thank you!!!
I got the required information.

Regards

Post Reply