Page 1 of 1
Initialization of PCAN-miniPCIe(dual Channel)
Posted: Mon 15. Aug 2016, 11:08
by abhishek1808
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
Re: Initialization of PCAN-miniPCIe(dual Channel)
Posted: Mon 15. Aug 2016, 13:20
by K.Wagner
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
- identification.PNG (55.3 KiB) Viewed 4381 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()
- Initialize.PNG (17.55 KiB) Viewed 4381 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.
Re: Initialization of PCAN-miniPCIe(dual Channel)
Posted: Mon 15. Aug 2016, 13:26
by abhishek1808
Dear Keneth
Thank you!!!
I got the required information.
Regards