Table of Contents

Advertisement

Quick Links

PCMCIA-485-2

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for National Instruments PCMCIA Serias

  • Page 1 PCMCIA-485-2...
  • Page 2 Serial Getting Started with Your PCMCIA Serial Hardware and Software for Windows 98/95 PCMCIA Serial for Windows 98/95 August 1998 Edition Part Number 321827B-01...
  • Page 3 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 4 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 5 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 6 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 7: 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 8 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 98/95 viii © National Instruments Corporation...
  • Page 9 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 Figure D-1. Port Selected in Device Manager ............D-4 Figure D-2. Multi-Function Adapter Class in the Device Manager ......D-6 © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 10 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-5 PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 11: About This Manual

    • Appendix E, Communication, contains forms you can use to Customer request help from National Instruments or to comment on our products and manuals. © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 12: Conventions Used In This Manual

    Bold text in this font denotes the messages and responses that the computer monospace bold automatically prints to the screen. Italic text in this font denotes that you must enter the appropriate words or monospace italic values in the place of these items. PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 13: Related Documentation

    EXAR 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 14: Introduction

    Install the Serial Hardware Verify the Installation Chapter 2 Passes? Troubleshooting 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 98/95...
  • Page 15: What You Need To Get Started

    Windows 95/98 and Windows NT, which is included in your kit ❑ Adapter cable from PCMCIA card to DB-9 connector, which is included in your kit Optional Equipment Call National Instruments for more information about the following optional equipment: • DB-9 RS-485 termination connector •...
  • Page 16: Ni Serial Software Overview

    • Diagnostic test • Configuration utility The NI Serial software supports all National Instruments serial hardware, including all AT, PCI, PXI, CompactPCI and PCMCIA versions. Optional Programming Tools Your kit includes the NI Serial software for Windows 98/95 and Windows NT. In addition, you can order the LabWindows/CVI or LabVIEW software from National Instruments.
  • Page 17: 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 18: 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 98/95...
  • Page 19: Figure 2-2. Ni Serial Setup Screen

    New Hardware Found dialog boxes. If no New Hardware Found dialog box appears, refer to the section Forcing Windows to Detect the Serial Hardware in Appendix D, Troubleshooting and Common Questions. PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 20: Install The Pcmcia Serial Hardware

    Portable Computer PCMCIA Socket PCMCIA Serial Cable Figure 2-3. Inserting a PCMCIA Serial Card The PCMCIA serial hardware installation is complete. Proceed to the next section, Verify the Installation. © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 21: Verify The Installation

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

    Chapter 2 Installation and Verification Figure 2-4. Device Manager Ports List for PCMCIA Serial Card Correctly Installed © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 23: 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 98/95 © National Instruments Corporation...
  • Page 24: Determine Which Physical Port Is Associated With Comx

    National Instruments Serial. 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 98/95...
  • Page 25: 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 98/95 © National Instruments Corporation...
  • Page 26: 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 98/95...
  • Page 27: Configuration

    If you use two-wire TXRDY mode, FIFOs must be enabled. Transceiver modes 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 98/95...
  • Page 28: 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 98/95 © National Instruments Corporation...
  • Page 29: 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 98/95...
  • Page 30: Transceiver Mode

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

    DTR, 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 98/95 © National Instruments Corporation...
  • Page 32: Two-Wire Mode: Dtr With Echo

    For more information about serial communications in two- or four-wire modes, refer to the section Serial Communication Issues Appendix B, Serial Port Information. PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 33: Setting The Transceiver Control Mode

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

    Two-wire mode: DTR with echo Two-wire mode: DTR controlled Two-wire mode: TXRDY auto control For example, to set TXRDY two-wire auto control mode, use the following call: ULONG TranceiverMode = 131; DeviceIoControl(hDevice, IOCTL_SERIAL_SET_TRANSCEIVER_MODE,(PVOID) &TransceiverMode,sizeof(ULONG),lpOutBuffer, nOutBufferSize,lpBytesReturned,lpOverlapped); PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 35: 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 98/95 © National Instruments Corporation...
  • Page 36: Hardware 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 98/95...
  • Page 37: 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 98/95 © National Instruments Corporation...
  • Page 38: 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 98/95...
  • Page 39: 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 98/95 © National Instruments Corporation...
  • Page 40: Serial Communication Issues

    Thus, half-duplex communication is often referred to as two-wire communications. 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 98/95...
  • Page 41: 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 98/95 © National Instruments Corporation...
  • Page 42: 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 43: Figure B-4. Straight-Through Cabling In A Dte-To-Dce Interface

    Figure B-5 shows null-modem cabling in a DTE-to-DTE 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-DTE Interface PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 44: Uninstalling The Serial Hardware And Software

    Double-click on the System icon under Start»Settings»Control Panel. The System Properties dialog box appears. Select the Device Manager tab. Click on the View devices by type button. Double-click on the Ports (COM & LPT) icon. © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 45: 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 on 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 46: 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 98/95...
  • Page 47: 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 98/95 © National Instruments Corporation...
  • Page 48: Troubleshooting And Common Questions

    OK. 11. Restart Windows 98/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 98/95...
  • Page 49: Selecting Conflict-Free Resources

    In some versions of Windows 95 or Windows 98, the Driver tab in the Device Manager gives you the information about the driver installed. Verify that the National Instruments serial driver is installed for the port. If either the serial hardware or file is missing, niserial.vxd...
  • Page 50: Resolving Resource Conflicts With Legacy Boards

    In some versions of Windows 95 or Windows 98, the Driver tab in the Device Manager gives you the information about the driver installed. Verify that the National Instruments serial driver is installed for the port. Check the hardware installation to make sure the correct number of boards/ports are installed.
  • Page 51: Figure D-1. Port Selected In Device Manager

    Remove button. 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).
  • Page 52: Common Questions

    Determine Which Physical Port Is Associated with COMx, in Chapter 2, Installation and Verification. How can I name National Instruments serial ports COM1, COM2, COM3, or COM4? Table D-1 lists standard DOS-base addresses for serial ports. Table D-1. Standard DOS-Based Addresses...
  • Page 53: Figure D-2. Multi-Function Adapter Class In The Device Manager

    Device Manager, you must open the Multi-function adapters class and 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.
  • Page 54 Read Me under Start»Programs»National Instruments Serial. 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 55: 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 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 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 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 98/95...
  • Page 60: Glossary

    D connector (where xx is the number of pins) data carrier detect data communications equipment or data circuit-terminating equipment dynamic link library direct memory access data set ready data terminal equipment © National Instruments Corporation PCMCIA Serial for Windows 98/95...
  • Page 61 Industry Standard Architecture Kbaud kilobits per second meters megabytes of memory personal computer Peripheral Components Interconnect random-access memory ring indicator request to send receive receive data seconds SCSI Small Computer Systems Interface PCMCIA Serial for Windows 98/95 © National Instruments Corporation...
  • Page 62 Glossary transmit transmit data TXRDY transmit ready (where the overscore denotes that the signal is active low) UART universal asynchronous receiver/transmitter volts volts direct current VME eXtensions for Instrumentation © National Instruments Corporation PCMCIA Serial for Windows 98/95...

Table of Contents