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
Initialization of PCAN-miniPCIe(dual Channel)
-
- Posts: 18
- Joined: Tue 6. Jan 2015, 09:03
Re: Initialization of PCAN-miniPCIe(dual Channel)
Hello,
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.
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:abhishek1808 wrote:1. What shall be the Channel name as I was not able to determine it from the documentation about PCAN basic API?
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.
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:abhishek1808 wrote:2. Shall the IOPort be 6?
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.abhishek1808 wrote:I am not able to successfully initialize the module.
Language C# (.NET 4.1)
Best regards,
Keneth
Keneth
-
- Posts: 18
- Joined: Tue 6. Jan 2015, 09:03
Re: Initialization of PCAN-miniPCIe(dual Channel)
Dear Keneth
Thank you!!!
I got the required information.
Regards
Thank you!!!
I got the required information.
Regards