National Instruments PCMCIA-232 Getting Started

National Instruments PCMCIA-232 Getting Started

Pcmcia serial hardware and software for windows 95
Hide thumbs Also See for PCMCIA-232:
Table of Contents

Advertisement

Quick Links

Serial
Getting Started with Your
PCMCIA Serial Hardware and
Software for Windows 95
PCMCIA Serial for Windows 95
December 1997 Edition
Part Number 321827A-01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCMCIA-232 and is the answer not in the manual?

Questions and answers

Summary of Contents for National Instruments PCMCIA-232

  • Page 1 Serial Getting Started with Your PCMCIA Serial Hardware and Software for Windows 95 PCMCIA Serial for Windows 95 December 1997 Edition Part Number 321827A-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 National Instruments Corporation. All rights reserved.
  • Page 3: Important Information

    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 Compliance FCC/DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio and television reception. Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC).
  • Page 5 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 FCC rules.
  • Page 6: Table Of Contents

    Optional Equipment ......................1-2 Serial Hardware Overview....................1-2 NI Serial Software Overview...................1-3 Optional Programming Tools ..................1-3 Using the Serial Hardware with Other National Instruments Products ......1-4 Chapter 2 Installation and Verification Install the NI Serial Software...................2-1 Install the PCMCIA Serial Hardware ................2-3 Verify the Installation ......................2-4...
  • Page 7 Half Duplex ..................B-4 Termination ....................... B-5 DTE vs. DCE ....................B-5 Appendix C Uninstalling the Serial Hardware and Software Removing the Hardware Information................C-1 Uninstalling the NI Serial Software ................C-3 PCMCIA Serial for Windows 95 viii © National Instruments Corporation...
  • Page 8 Straight-Through Cabling in a DTE-to-DCE Interface......B-6 Figure B-5. Null-Modem Cabling in a DTE-to-DCE Interface........B-6 Figure C-1. Selecting an Interface to Uninstall ............C-2 Figure C-2. Add/Remove Programs Properties Dialog Box........C-3 Figure C-3. Uninstallation Results................C-4 © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 9 Physical Characteristics of the PCMCIA Serial Cards ......A-1 Table A-2. Environmental Characteristics of the Serial Hardware......A-2 Table A-3. Software Characteristics ................. A-2 Table B-1. RS-232, RS-422, and RS-485 Features........... B-2 Table D-1. Standard DOS-Based Addresses............. D-4 PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 10: About This Manual

    About This Manual This manual contains instructions to help you install and configure the National Instruments serial hardware and the NI Serial software for Windows 95. The serial hardware covered by this manual includes the PCMCIA-232, PCMCIA-232/2, PCMCIA-232/4, PCMCIA-485, and PCMCIA-485/2.
  • Page 11: Conventions Used In This Manual

    About This Manual • Appendix F, 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 description of terms used in this manual, including abbreviations, acronyms, metric prefixes, mnemonics, and symbols.
  • Page 12: Related Documentation

    Corp. 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 13: Introduction

    Install the Serial Hardware Verify the Installation Chapter 2 Troubleshooting Passes? Connect the Cables Chapter 3 Configure the Serial Port Learn About Transceiver Control Modes Chapter 4 Review Programming Requirements Write Application Program © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 14: What You Need To Get Started

    4,000 ft., you can connect the PCMCIA-485 hardware with up to 31 devices. The PCMCIA-232 is available with one, two, or four ports. The PCMCIA-485 cards are available in a one-port version or two-port version. All PCMCIA cards come with cables for each port that terminates in a standard DB-9 D-Sub connector.
  • Page 15: Ni Serial Software Overview

    • Diagnostic test • Configuration utility The NI Serial software supports all National Instruments serial hardware, including all AT, PCI, and PCMCIA versions. Optional Programming Tools Your kit includes the NI Serial software for Windows 95 and Windows NT. In addition, you can order the LabWindows/CVI or LabVIEW software from National Instruments.
  • Page 16: Using The Serial Hardware With Other National Instruments Products

    National Instruments Products You can use standard serial I/O functions in LabVIEW and LabWindows/CVI with any National Instruments serial interface, once you have installed the hardware and software. If you already have LabVIEW or LabWindows and want to use it with your serial hardware, refer to your LabVIEW or LabWindows documentation for information about serial I/O functions.
  • Page 17: Installation And Verification

    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. Figure 2-1. Add/Remove Programs Properties Dialog Box © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 18: Figure 2-2. Ni Serial Setup Screen

    New Hardware Found dialog boxes. If no New Hardware Found dialog box appears, follow the steps in Appendix E, Forcing Windows 95 to Detect the Serial Hardware. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 19: Install The Pcmcia Serial Hardware

    Installation and Verification Install the PCMCIA Serial Hardware To install the PCMCIA-232 or PCMCIA-485 in your computer, first start Windows 95. If the card is not already inserted, insert it into a free PC Card (PCMCIA) socket the same way you insert a disk into a floppy drive. The card has no jumpers or switches to set, and you do not need to shut down the system before you insert it.
  • Page 20: Verify The Installation

    Ports (COM & LPT) icon. If you have installed one of these interfaces, double-click on the Multi-function adapters icon as well as the Ports (COM & LPT) icon. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 21: Figure 2-4. Device Manager Ports List For Pcmcia Serial Card Correctly Installed

    NI serial hardware that is installed properly and Figure 2-5 shows an example of NI serial hardware that is not working properly. Figure 2-4. Device Manager Ports List for PCMCIA Serial Card Correctly Installed © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 22: Verify The Hardware Resources

    For instructions, refer to the section Freeing an Interrupt Request Level in Appendix D, Troubleshooting and Common Questions. When you have finished verifying the hardware resources, proceed to the next section. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 23: Determine Which Physical Port Is Associated With Comx

    Start»Programs»NI Serial Software for Windows 95. If the diagnostic test completes with no failures, your serial hardware and software are installed properly. If it fails, refer to Appendix D, Troubleshooting and Common Questions, for troubleshooting instructions. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 24: Connect The Cables

    Pin 5 RXD- Pin 6 CTS- (HSI-) Pin 7 RTS- (HSO-) Pin 8 TXD+ Pin 9 TXD- * This signal is not supported on ports 3 and 4 of the four-port version. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 25: Connecting Two-Wire Devices

    Refer to Chapter 4, Using Your Serial Hardware, for information on setting the transceiver mode for two-wire communication. Refer to Appendix B, Serial Port Information, for more information on duplex architectures. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 26: Configuration

    If you use two-wire mode, FIFOs must be enabled. Transceiver modes TXRDY apply to RS-485 interfaces only. For more information about transceiver modes, refer to Chapter 4, Using Your Serial Hardware. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 27: Communication Port Settings

    Figure 3-1 shows the Port Settings tab. Figure 3-1. Port Settings Tab The following sections describe the port settings available on the Device Manager Port Settings tab. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 28: Bits Per Second

    You can view or change the advanced port settings by clicking on the Advanced button on the Port Settings tab. Figure 3-2 shows the Advanced Port Settings dialog box. Figure 3-2. Advanced Port Settings Dialog Box © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 29: Transceiver Mode

    If you want your serial hardware ports to use the names COM1, COM2, COM3, Note or COM4, refer to the Common Questions section of Appendix D, Troubleshooting and Common Questions. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 30: Using Your Serial Hardware

    , indicate that the signal is active low. Four-Wire Mode Use the four-wire mode for most full-duplex systems. In this mode, the transmitter and receiver are always enabled. This mode is the default. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 31: Two-Wire Mode: Dtr With Echo

    Because this mode handles the transmitter/receiver enabling for a two-wire connection in your hardware, it reduces the software overhead required to perform this operation in your application program. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 32: Setting The Transceiver Control Mode

    PCMCIA-485 board to two-wire mode with control, you would write a 0x02 to I/O address 0x3FF. The PCMCIA-485 board would immediately switch to the two-wire mode with control. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 33: Setting The Transceiver Mode With Deviceiocontrol

    TXRDY For example, to set two-wire auto control mode, use the TXRDY following call: ULONG TranceiverMode = 131; DeviceIoControl( hDevice , IOCTL_SERIAL_SET_TRANSCEIVER_MODE,(PVOID) &TransceiverMode,sizeof(ULONG), lpOutBuffer , nOutBufferSize , lpBytesReturned , lpOverlapped ); PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 34: General Programming Requirements

    Overviews and Win32 Reference. If you have LabVIEW or LabWindows and want to use it with your serial hardware, refer to your LabVIEW or LabWindows documentation for information about serial I/O functions. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 35: Appendix A Specifications

    (from PCMCIA expansion slot) PCMCIA-232 +5 VDC 40 mA Typical PCMCIA-485 +5 VDC 100 mA Typical PCMCIA-232/2 +5 VDC 60 mA Typical PCMCIA-485/2 +5 VDC 100 mA Typical PCMCIA-232/4 +5 VDC 60 mA Typical © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 36: Software Specifications

    Characteristic Specification Maximum Serial Transfer Rate 115,200 bps* Space Required for NI Serial Software 1 MB * Actual speed may vary considerably from speed shown due to system and instrumentation capabilities. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 37: Appendix B Serial Port Information

    Thus, you can use RS-422 for much longer distances (up to 4,000 ft.) and much greater transmission speeds (up to 10 Mb/s) than RS-232. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 38: Table B-1. Rs-232, Rs-422, And Rs-485 Features

    Maximum CMV ±25 V ±7 V +12 to –7 V Driver output 5 to 25 V 2 to 6 V 1.5 to 6 V 100 Ω 60 Ω Driver load >3 kΩ PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 39: Serial Communication Issues

    Likewise, full-duplex communication is often referred to as four-wire communications, because the full-duplex system uses a separate pair of wires for communication in each direction. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 40: Full Duplex

    A half-duplex system is often referred to as a two-wire system. Figure B-2 shows a typical half-duplex system. Slave 1 Slave 2 Slave n Figure B-2. Typical Half-Duplex System PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 41: Termination

    The terminating resistor should match the characteristic impedance of the transmission line (typically 100–120 Ω). National Instruments offers an optional DB-9 RS-485 termination connector that contains embedded terminating resistors for easy termination.
  • Page 42: Figure B-4. Straight-Through Cabling In A Dte-To-Dce Interface

    Figure B-5 shows null-modem cabling in a DTE-to-DCE interface. Rx D Rx D Pin 2 Pin 2 Tx D Tx D Pin 3 Pin 3 Figure B-5. Null-Modem Cabling in a DTE-to-DCE Interface PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 43: Uninstalling The Serial Hardware And Software

    Double-click the System icon under Start»Settings»Control Panel. The System Properties dialog box appears. Select the Device Manager tab. Click the View devices by type button. Double-click on the Ports (COM & LPT) icon. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 44: Figure C-1. Selecting An Interface To Uninstall

    Appendix C Uninstalling the Serial Hardware and Software Select the National Instruments port to remove from the list of ports as shown in Figure C-1. Figure C-1. Selecting an Interface to Uninstall Click the Remove button. Note To remove ports on two-port and four-port PCMCIA cards from within the Device Manager, you must open the Multi-function adapters class, select the name of your interface, and click on the Remove button.
  • Page 45: Uninstalling The Ni Serial Software

    Add/Remove Programs applet. A dialog box similar to the one in Figure C-2 appears. This dialog box lists the software available for removal. Figure C-2. Add/Remove Programs Properties Dialog Box © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 46: Figure C-3. Uninstallation Results

    NI Serial software. Figure C-3 shows the results of a successful uninstallation. Remove your PCMCIA card from your computer. Figure C-3. Uninstallation Results If you want to reinstall the hardware and software, refer to Chapter 2, Installation and Verification. PCMCIA Serial for Windows 95 © National Instruments Corporation...
  • Page 47: Troubleshooting And Common Questions

    OK. 11. Restart Windows 95 so it can correctly assign resources to the serial port. Then refer to the Verify the Hardware Resources section of Chapter 2, Installation and Verification. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 48: Selecting Conflict-Free Resources

    Chapter 2, Installation and Verification, and follow these troubleshooting steps: Verify the hardware resources. Verify that the National Instruments serial driver is installed and not the native Windows 95 serial driver. If either the serial hardware or file is missing, niserial.vxd reinstall the hardware and software.
  • Page 49: Resolving Resource Conflicts With Legacy Boards

    Verification, and follow these troubleshooting steps: Verify the hardware resources. Verify that the National Instruments serial driver is installed and not the native Windows 95 serial driver. Check the hardware installation to make sure the correct number of boards/ports are installed.
  • Page 50: Table D-1. Standard Dos-Based Addresses

    In most cases, Windows 95 does not assign names COM1 through COM4 to the serial hardware. Rather, it names the ports starting with COM5. If you assign any of the base addresses in Table D-1 to a National Instruments serial port, Windows 95 automatically changes the COM port name to the corresponding one listed in this table.
  • Page 51: Multi-Function Adapter Class In The Device Manager

    Troubleshooting and Common Questions double-click on the Multi-function Parent item that corresponds to your National Instruments serial interface. Use the Resources page to change the resources. Any resource changes are automatically reflected to the child devices. Figure D-1 shows the Multi-function adapters class in the Device Manager.
  • Page 52 Read Me under Start»Programs»NI Serial Software for Windows 95. What information should I have before I call National Instruments? When you call National Instruments, you should have the results of the Diagnostic test. Also, make sure you have filled out the hardware and...
  • Page 53: Forcing Windows 95 To Detect The Serial Hardware

    Windows 95 lists the ports it does not recognize. Note To remove ports on two- or four-port cards, you must open the Multifunction adapter class, select the name of the interface, and click on the Remove button. © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 54: Figure E-1. Port Selected In Device Manager

    Appendix E Forcing Windows 95 to Detect the Serial Hardware Select a National Instruments port name from the list of ports that corresponds to a serial port (for example, COM 5, COM 6, COM 7, or COM 8). Figure E-1 shows the Ports list in the Device Manager with a port selected.
  • Page 55: 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 56 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 57: Installed

    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 58: Installed

    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 59 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 PCMCIA Serial Hardware and Software for Windows 95...
  • Page 60 Data Communications Equipment or Data Circuit-Terminating Equipment direct memory access Data Terminal Equipment Data Terminal Ready (where the overscore denotes that the signal is active low) Electronic Industries Association electromagnetic interference Federal Communications Commission FIFO first-in-first-out © National Instruments Corporation PCMCIA Serial for Windows 95...
  • Page 61 Receive seconds Transmit Transmit Ready (where the overscore denotes that the signal is active low) TXRDY UART universal asynchronous receiver/transmitter volts volts direct current PCMCIA Serial for Windows 95 © National Instruments Corporation...

Table of Contents