National Instruments CAN Series Getting Started
National Instruments CAN Series Getting Started

National Instruments CAN Series Getting Started

Getting started with your hardware and the ni-can software for windows nt
Table of Contents

Advertisement

Quick Links

CAN
Getting Started with Your CAN
Hardware and the NI-CAN
Software for Windows NT
Getting Started with CAN for Windows NT
January 1998 Edition
Part Number 321372C-01

Advertisement

Table of Contents
loading

Summary of Contents for National Instruments CAN Series

  • Page 1 Getting Started with Your CAN ™ Hardware and the NI-CAN Software for Windows NT Getting Started with CAN for Windows NT January 1998 Edition Part Number 321372C-01...
  • Page 2 Singapore 2265886, Spain 91 640 0085, Sweden 08 730 49 70, Switzerland 056 200 51 51, Taiwan 02 377 1200, United Kingdom 01635 523545 National Instruments Corporate Headquarters 6504 Bridge Point Parkway Austin, Texas 78730-5039 USA Tel: 512 794 0100 © Copyright 1997, 1998 National Instruments Corporation. All rights reserved.
  • Page 3 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty period.
  • Page 4 This device complies with the FCC rules only if used with shielded interface cables of suitable quality and construction. National Instruments used such cables to test this device and provides them for sale to the user. The use of inferior or nonshielded interface cables could void the user’s authority to operate the equipment under the...
  • Page 5: Table Of Contents

    Connect the Cables ....................2-6 Configure the NI-CAN Software ..................2-6 Chapter 3 Verify the Installation Chapter 4 Begin to Use the NI-CAN Software Using the NI-CAN Software....................4-1 General Programming Considerations................4-2 © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 6 Appendix E Customer Communication Glossary Figures Figure 2-1. Add/Remove Programs Properties Dialog Box ........2-2 Figure 2-2. NI-CAN Software Setup Screen ............. 2-3 Figure 2-3. Installing the PCI-CAN................2-4 Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 7 Table B-3. DeviceNet Cable Length Specifications..........B-5 Table D-1. PCI-CAN and PCI-CAN/2 Hardware Characteristics......D-1 Table D-2. PCMCIA-CAN and PCMCIA-CAN/2 Hardware Characteristics ..D-2 Table D-3. CAN Port Characteristics for Bus-Powered Ports........D-2 © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 8: About This Manual

    About This Manual This manual contains instructions to help you install and configure the National Instruments CAN hardware and the NI-CAN software for Windows NT. The National Instruments CAN hardware supported under Windows NT includes the PCI-CAN, PCI-CAN/2, PCMCIA-CAN, and PCMCIA-CAN/2.
  • Page 9: Organization Of This Manual

    CAN hardware, along with the recommended operating conditions. • Appendix E, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products and manuals. • Glossary contains an alphabetical list and a description of terms used in this manual, including abbreviations, acronyms, metric prefixes, mnemonics, and symbols.
  • Page 10: Conventions Used In This Manual

    Italic text in this font denotes that you must supply the appropriate words monospace italic or values in the place of these items. paths Paths in this manual are denoted using backslashes (\) to separate drive names, directories, folders, and files. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 11: Related Documentation

    Microsoft Windows NT User’s Guide, Microsoft Corporation Customer Communication National Instruments wants to receive your comments on our products and manuals. We are interested in the applications you develop with our products, and we want to help if you have problems with them. To make it easy for you to contact us, this manual contains comment and configuration forms for you to complete.
  • Page 12: Introduction

    Install the Hardware Chapter 2 Configure the Software Verify the Installation Chapter 3 Troubleshooting Passes? Appendix Review Programming Chapter 4 Considerations User Manual and Programmer Reference Write Application Program Manual © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 13: What You Need To Get Started

    PCMCIA-CAN or PCMCIA-CAN/2 CAN interface cables that meet the requirements in Appendix B, Cabling Requirements CAN Hardware Overview The National Instruments CAN hardware supported under Windows NT includes the PCI-CAN, PCI-CAN/2, PCMCIA-CAN, and PCMCIA-CAN/2 The PCI-CAN and PCI-CAN/2 are completely software configurable and compliant with the PCI Local Bus Specification.
  • Page 14: Ni-Can Software Overview

    CAN interface with complete communications and bus management capability. The NI-CAN software includes the following components: • Firmware (runs on embedded Intel 386EX) • Device driver • Diagnostic test utility • Configuration utility © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 15: Optional Programming Tools

    It includes all the tools needed for instrument control, data acquisition, analysis, and presentation. LabVIEW also includes an extensive instrument driver library. For more information about LabWindows/CVI and LabVIEW, contact National Instruments. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 16: Installation And Configuration

    Select Start»Settings»Control Panel. Double-click on the Add/Remove Programs icon in the Control Panel to launch the Add/Remove Programs applet. A dialog box similar to the one in Figure 2-1 appears. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 17: Figure 2-1. Add/Remove Programs Properties Dialog Box

    Insert the NI-CAN Software for Windows 95 and Windows NT (Disk 1), and click on the Next button to proceed. The software installation wizard begins with the screen shown in Figure 2-2. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 18: Install The Can Hardware

    CAN interface. Remove the top cover (or other access panels) to give yourself access to the computer expansion slots. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 19: Figure 2-3. Installing The Pci-Can

    Replace the top cover (or the access panel to the expansion slot). Turn on your computer and start Windows NT. When you have finished installing the hardware, proceed to the Connect the Cables section, later in this chapter. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 20: Install Your Pcmcia-Can Or Pcmcia-Can/2

    Figure 2-4 shows how to insert the card and how to connect the PCMCIA-CAN cable and connector to the card. Portable Computer PCMCIA Socket PCMCIA-CAN Cable Figure 2-4. Inserting the PCMCIA-CAN © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 21: Connect The Cables

    Connect the Cables. Connect the Cables Because exact cabling requirements will vary for each application, National Instruments does not provide cables, other than the PCMCIA-CAN cable. Refer to Appendix B, Cabling Requirements, for information about the cabling requirements of the CAN hardware.
  • Page 22: Resources Dialog Box For The Pcmcia-Can

    Figure 2-6. Resources Dialog Box for the PCMCIA-CAN Click on the Settings button to view information about the NI-CAN software configuration for the CAN interface. Figure 2-7 shows the Settings dialog box. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 23 When you have finished configuring the NI-CAN software, proceed to Chapter 3, Verify the Installation. Note If you changed the resources for any PCMCIA-CAN or PCMCIA-CAN/2 interface, you must restart Windows NT for the changes to take effect. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 24: Verify The Installation

    X next to the interface, and changes its status from Untested to Failed . Figure 3-1 shows the NI-CAN Diagnostic utility after it has tested some CAN interfaces. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 25: Ni-Can Diagnostic Utility After Testing

    Questions, to troubleshoot the problem. Troubleshooting information is also available in the online help for the NI-CAN Diagnostic utility, which you can access by clicking on the Help button. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 26: Begin To Use The Ni-Can Software

    For detailed information about the NI-CAN software and functions, refer to the NI-CAN User Manual for Windows 95 and Windows NT and the NI-CAN Programmer Reference Manual for Win32. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 27: General Programming Considerations

    For information about developing your application, refer to the NI-CAN User Manual for Windows 95 and Windows NT. For detailed information about NI-CAN functions and objects, refer to the NI-CAN Programmer Reference Manual for Win32. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 28: Uninstall The Hardware And Software

    Select the Add/Remove Programs icon under Start»Settings» Control Panel . A dialog box similar to the one in Figure A-1 appears. This dialog box lists the software available for removal. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 29: Add/Remove Programs Properties Dialog Box

    Add/Remove button. The uninstall program runs and removes all folders, utilities, device drivers, DLLs, and registry entries associated with the NI-CAN software. Figure A-2 shows the results of a successful uninstallation. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 30 You need to remove any remaining components yourself. If you want to reinstall the hardware and software, refer to Chapter 2, Installation and Configuration. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 31: Appendix B Cabling Requirements

    The 9-pin D-Sub follows the pinout recommended by CiA DS 102. Figure B-1 shows the pinout for this connector. No Connection Optional Ground (V-) CAN_L CAN_H No Connection No Connection Shield Figure B-1. Pinout for 9-Pin D-Sub Connector © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 32: Pcmcia-Can Cable

    1 of the 5-pin screw terminal block. All of the signals on the 5-pin Combicon-style pluggable screw terminal are connected directly to the corresponding pins on the 9-pin D-Sub. Figure B-3. PCMCIA-CAN Cable Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 33: Power Supply Information For The Can Ports

    Connecting pins 2 and 3 of a jumper configures the CAN physical layer to be powered internally (from the card). In this configuration, the V– signal serves as the reference ground for the isolated signals. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 34: Bus Power Supply Requirements

    Table B-1. Power Requirements for the CAN Physical Layer for Bus-Powered Versions Characteristic Specification Voltage Requirement V+ 10-30 VDC Current Requirement 40 mA typical 100 mA maximum Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 35: Cable Specifications

    Table B-3. DeviceNet Cable Length Specifications Bit Rate Thick Cable Thin Cable 500 kb/s 100 m 100 m 250 kb/s 200 m 100 m 100 kb/s 500 m 100 m © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 36: Maximum Number Of Devices

    120 Ω; therefore, a 120 Ω resistor should be used at each end of the cable. Each termination resistor should each be capable of dissipating 0.25 W of power. Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 37: Cabling Example

    Pin 5 Pin 5 Pin 3 Pin 5 Pin 9 Pin 9 Pin 5 V– Pin 1 Pin 3 Pin 3 Pin 1 Power Connector V– Figure B-7. Cabling Example © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 38: Troubleshooting And Common Questions

    Instruments CAN hardware, this means that the interface is not physically present in the system. If the interface is firmly plugged into its slot and the problem persists, contact National Instruments. Troubleshooting Diagnostic Utility Failures The following sections explain common error messages generated by the NI-CAN Diagnostic utility.
  • Page 39: Ni-Can Software Problem Encountered

    For the PCI-CAN, if legacy boards in your system are using the resources, change the resource configuration of the legacy board. If the problem persists, contact National Instruments. NI-CAN Software Problem Encountered This error occurs if the NI-CAN Diagnostic utility detects that it is unable to communicate correctly with the CAN hardware using the installed NI-CAN software.
  • Page 40 How do I use NI-CAN from within LabVIEW? For information about using NI-CAN from within LabVIEW, refer to Chapter 3, Developing Your Application, in the NI-CAN User Manual for Windows 95 and Windows NT. © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 41 You must remove any remaining components yourself. What information should I have before I call National Instruments? When you call National Instruments, you should have all of the information filled out on the Hardware and Software Configuration Form...
  • Page 42: Appendix D Specifications

    DeviceNet screw terminal Operating Environment Ambient Temperature 0° to 55° C Relative Humidity 10% to 90%, noncondensing Storage Environment Temperature –20° to 70° C Relative Humidity 5% to 90%, noncondensing © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 43: Table D-2. Pcmcia-Can And Pcmcia-Can/2 Hardware Characteristics

    Relative Humidity 5% to 90%, noncondensing Table D-3. CAN Port Characteristics for Bus-Powered Ports Characteristic Specification Power Requirement 10-30 V 40 mA typical 100 mA maximum Isolation 500 VDC optical Getting Started with CAN for Windows NT © National Instruments Corporation...
  • Page 44: Appendix E Customer Communication

    Electronic Services Bulletin Board Support National Instruments has BBS and FTP sites dedicated for 24-hour support with a collection of files and documents to answer most common customer questions. From these sites, you can also download the latest instrument drivers, updates, and example programs. For recorded instructions on how to use the bulletin board and FTP services and for BBS automated information, call 512 795 6990.
  • Page 45 Telephone and Fax Support National Instruments has branch offices all over the world. Use the list below to find the technical support number for your country. If there is no National Instruments office in your country, contact the source from which you purchased your software to obtain support.
  • Page 46 National Instruments for technical support helps our applications engineers answer your questions more efficiently. If you are using any National Instruments hardware or software products related to this problem, include the configuration forms from their user manuals. Include additional pages if necessary.
  • Page 47 Complete a new copy of this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration. Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
  • Page 48 Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Title: ™ Getting Started with Your CAN Hardware and the NI-CAN Software for Windows NT...
  • Page 49: Glossary

    16-bit Industry Standard Architecture bits bytes Celsius Controller Area Network CAN in Automation dynamic link library direct memory access electromagnetic interference Federal Communications Commission hertz IEEE Institute of Electrical and Electronic Engineers © National Instruments Corporation Getting Started with CAN for Windows NT...
  • Page 50 PCMCIA Personal Computer Memory Card International Association random-access memory resource hardware settings used by National Instruments CAN hardware, including an interrupt request level (IRQ) and an 8 KB physical memory range (such as D0000 to D1FFF hex) seconds volts...

This manual is also suitable for:

Pci-canPci-can/2Pcmcia-canPcmcia-can/2

Table of Contents