background image

PCAN-PCI – User Manual 
 

20 

4.2

 

Linking Own Programs with PCAN-Basic 

 

Figure 11: PCAN-Basic 

On the provided DVD you can find files of the programming 
interface PCAN-Basic in the directory branch 

Develop

. This API 

provides basic functions for linking own programs to CAN 
interfaces by PEAK-System and can be used for the following 
operating systems: 

 

Windows 8, 7, Vista (32/64-bit) 

 

Windows CE 6.x (x86/ARMv4) 

 

Linux (32/64-bit) 

The API is designed for cross-platform use. Therefore software 
projects can easily ported between platforms with low efforts. 
PEAK-System has created examples for the following programming 
languages: C++, C#, C++/CLR, Visual Basic, Delphi, Python, and 
Java. 

Summary of Contents for PCAN-PCI

Page 1: ...PCAN PCI CAN Interface for PCI User Manual Document version 2 3 1 2014 04 29...

Page 2: ...r picture shows the product PCAN PCI Dual Channel opto decoupled Other product versions have an identical form factor but vary in equipment CANopen and CiA are registered community trade marks of CAN...

Page 3: ...3 3 1 Termination 12 3 3 2 Example of a Connection 12 3 3 3 Maximum Bus Length 13 4 Using the Software 14 4 1 CAN Monitor PCAN View for Windows 14 4 1 1 Receive Transmit Tab 16 4 1 2 Trace Tab 18 4 1...

Page 4: ...ef information about the installation and operation of the PCAN PCI card 1 1 Properties at a Glance PC plug in card for PCI slot 1 or 2 High speed CAN channels ISO 11898 2 Bit rates from 5 kbit s up t...

Page 5: ...linux 1 2 System Requirements A vacant PCI slot in the computer Operating system Windows 8 7 Vista 32 64 bit or Windows CE 6 x x86 and ARMv4 processor support or Linux 32 64 bit 1 3 Scope of Supply P...

Page 6: ...CI card later on 2 Insert the supplied DVD into the appropriate drive of the computer Usually a navigation program appears a few moments later If not start the file Intro exe from the root directory o...

Page 7: ...e 1 Position of the CAN connectors CAN 1 lower position and CAN 2 upper position In the Single Channel version CAN 1 remains at the same position 1 Shut down the computer 2 Disconnect the computer fro...

Page 8: ...user with administrator privileges Windows notifies that new hardware has been detected 2 The drivers are found and installed by Windows 3 Afterwards you can work as user with restricted rights again...

Page 9: ...a male connector on the PCAN PCI card With the pins 1 and 9 devices with low power consumption e g bus converters can be directly supplied via the CAN connector At deli very these pins are not assign...

Page 10: ...omputer and is not fused separately The opto decoupled versions of the card contain an interconnected DC DC converter Therefore the current output is limited to about 50 mA Proceed as follows to activ...

Page 11: ...one Pin 1 Pin 9 Pin 1 Pin 9 LJ21 CAN channel 1 LJ22 CAN channel 2 Attention Risk of short circuit If the option described in this section is activated you may only connect or disconnect CAN cables or...

Page 12: ...al reflections and the transceivers of the connected CAN nodes CAN interface control device will not work The PCAN PCI card does not have an internal termination Use the card on a terminated CAN bus 3...

Page 13: ...the bit rate The following table shows the maximum possible CAN bus length at different bit rates Bit rate Bus length 1 Mbit s 40 m 500 kbit s 110 m 250 kbit s 240 m 125 kbit s 500 m 50 kbit s 1 3 km...

Page 14: ...le CAN monitor for viewing transmitting and logging CAN messages Figure 5 PCAN View for Windows Do the following to start and initialize PCAN View 1 If PCAN View is already installed on the hard disk...

Page 15: ...e CAN hardware and parameters 2 From the list Available CAN hardware select the CAN channel to be used 3 Select the bit rate that is used by all nodes on the CAN bus from the dropdown list Bit rate 4...

Page 16: ...ent of PCAN View It contains two lists one for received messages and one for the transmit messages Representation of CAN data is in hexadecimal format Do the following to transmit a CAN message with P...

Page 17: ...e greater than 0 For a manual only transmission enter 0 4 Confirm the entries with OK The created transmit message appears on the Receive Transmit tab 5 You trigger selected transmit messages manually...

Page 18: ...bus During this process the CAN messages are cached in the working memory of the PC Afterwards they can be saved to a file The tracer can be configured to run in linear or in ring buffer mode In linea...

Page 19: ...Bar The status bar shows information about the current CAN connection about error counters Overruns QXmtFull and shows error messages You can find further information about the use of PCAN View in the...

Page 20: ...ions for linking own programs to CAN interfaces by PEAK System and can be used for the following operating systems Windows 8 7 Vista 32 64 bit Windows CE 6 x x86 ARMv4 Linux 32 64 bit The API is desig...

Page 21: ...ternal buffer for 32 768 messages per CAN channel Precision of time stamps on received messages up to 1 s depending on the PEAK CAN interface used Access to specific hardware parameters such as listen...

Page 22: ...hannels can be opened at the same time After a successful initialization the CAN channel is ready for communication with the CAN hardware and the CAN bus No further configuration steps are required In...

Page 23: ...LL and further files needed for linking are property of the PEAK System Technik GmbH and may be used only in connection with a hardware component purchased from PEAK System or one of its partners If a...

Page 24: ...pto up to 500 V separate for each Channel Supplying external devices PCAN PCI D Sub pin 1 pin 9 5 V max 100 mA PCAN PCI opto D Sub pin 1 pin 9 5 V max 50 mA Not assigned at delivery Termination none S...

Page 25: ...nual 25 Environment Operating temperature 40 85 C 40 185 F Temperature for storage and transport 40 125 C 40 257 F Relative humidity 15 90 not condensing EMC EN 55024 2011 09 EN 55022 2011 12 EC direc...

Page 26: ...PCAN PCI User Manual 26 Appendix A CE Certificate...

Page 27: ...PCAN PCI User Manual 27 Appendix B Dimension Drawing Figure 12 Dimension drawing PCAN PCI The figure doesn t show the actual size of the product...

Page 28: ...itched off computer The PCAN PCI card is recognized by Windows and the driver is initialized After the installation process is finished successfully you can find the entry PCAN PCI in the branch CAN H...

Reviews: