Home
        Serial Hardware and Software for Windows User Manual
         Contents
1.                               AnA AnA nanan E  8 8  9              9 89                                           Figure 6 2  Device Manager for AT Serial Board Ports    NI Serial Hardware and Software for Windows 6 4 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Verify the hardware resources  as follows     a  Inthe Device Manager under Multi function adapters   double click a serial board     b  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     c  Repeat steps 5a and 5b until you have verified the resources for  each board      Optional  To determine which physical port is associated with COMx   note the Port 1  Port 2  etc  entries next to the COM numbers  For all  serial hardware  PORT refers to the top port  PORT  refers to the next  port down  and so on     To run the diagnostic utility  select Start  Programs  National  Instruments  NI Serial  Diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and s
2.                   a  e        Action View      gt        2                              My Computer      Computer   amp  Disk drives        Display adapters  23  DYD CD ROM drives     Floppy disk controllers   amp  Floppy disk drives        IDE ATA ATAPI controllers      Keyboards  a Mice and other pointing devices   amp   88  Monitors       gt  Multifunction adapters  EWAN I  AT 232 4 Multi function Parent     Network adapters Disable  5 9 Ports  COM  amp  LPT      Communications Port  COM3                                                   amp   55 8   9 8      FE  2 9                       Scan for hardware changes          Properties       5 m  F N I  AT 232 4  Shared IRQ  Comm    F N I  AT 232 4  Shared IRQ  Communications Port  COM25   F N I  AT 232 4  Shared IRQ  Communications Port  COM26   oy Printer Port  LPT1     qp Sound  video and game controllers                  Figure C 10  Selecting an Interface to Uninstall        National Instruments Corporation C 19 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software    Windows Me 9x    5  Choose the Uninstall option     6  Inthe Confirm Device Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  
3.            Hardware Platform Maximum Baud Rate  PCI PXI AT 232  PCMCIA  232 4 115 2 kbits s  All other PCMCIA 921 6 kbits s  AT 485 115 2 kbits s  USB 232 230 4 kbits s  PCI PXI USB 485 460 8 kbits s                Older versions of the serial hardware may support lower maximum baud  rates  The NI Serial software also includes a configuration utility  which is  fully integrated into the Windows 2000 XP Me 9x Device Manager and  Windows NT Control Panel  Its port Settings view indicates the maximum  baud rate your hardware supports  For more information about software  specifications  refer to Appendix E  Specifications         National Instruments Corporation 1 9 NI Serial Hardware and Software for Windows    Chapter 1 Introduction    The NI Serial software includes the following components   e Device driver   e Diagnostic utility   e Configuration utility      Product manual    Time Saving Development Tools       Your kit includes either the NI Serial software for   Windows 2000 NT XP Me 9x or NI Serial  USB  software for   Windows 2000 XP  In addition  you can order the Measurement Studio or  LabVIEW software from National Instruments to speed your application  development time and make it easier to communicate with your  instruments     LabVIEW is an easy to use  graphical programming environment you can  use to acquire data from thousands of different instruments  including  IEEE 488 2 devices  VXI devices  serial devices  PLCs  and plug in data  acquisition boards  After
4.           Close Cancel      Figure 0 2  Ports List in Device Manager       Click the Remove button    Click the OK button to remove the serial hardware information   Repeat steps 5 through 7 until you have removed all serial interfaces   Click the Refresh button       Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  Your  operating system  Windows Me 9x  may show the Windows Default  Driver option  If so  make sure the Windows Default Driver is  selected and click the OK button  If the Windows Default Driver  option is not shown  the installation continues automatically     D 10 ni com    Appendix D Troubleshooting and Common Questions    AT and PCMCIA Hardware    If Windows does not detect your serial hardware correctly  or you have been  using your serial hardware with the default Windows Me 9x serial driver or  an older version of the NI Serial software  Windows      9   does not  display the New Hardware Found dialog box  To fix this problem   complete the following steps     1     2  3  4   5    Select Start  Settings  Control Panel   Double click the System icon    Select the Device Manager tab    Click the View devices by type button     Double click the Ports  COM  amp  LPT  icon to display a list of all  ports that Windows Me 9x recognizes     If you have already installed the hardware  double click Other  Devices to display where Windows Me 9x lists the ports it does not  recognize    Select a National
5.         National Instruments Corporation A 9 NI Serial Hardware and Software for Windows       Serial Port Information    RS 232       This appendix describes the RS 232  RS 422  and RS 485 standards  and explains some of the issues involved with these types of serial    communication     Table B 1 lists the features of the RS 232  RS 422  and RS 485 standards     Table B 1  RS 232  RS 422  and RS 485 Features                                              Feature RS 232 RS 422 RS 485  Type of Single ended   Differential Differential  transmission lines  Maximum number 1 1 32  of drivers  Maximum number 1 10 32   of receivers  Maximum cable 50 ft 4 000 ft 4 000 ft  length  Maximum data rate 20 kbytes s 10 Mbytes s   10 Mbytes s  Maximum CMV  25     7     12 to  7 V  Driver output 5 to 25 V 2to6V 1 5to6 V  Driver load 23      100 Q 60 Q                   National Instruments Corporation    1    As specified in      ANSI EIA 232 D Standard  Interface Between Data  Terminal Equipment and Data Circuit Terminating Equipment Employing  Serial Binary Data Interchange  RS 232 standardizes serial  communication between computers  and between computer terminals   and modems  Many applications use the RS 232 standard to interface    peripherals to personal computers  RS 232 uses transmission lines in which  the state of each signal is represented by referencing the voltage level of a  single line to ground  RS 232 was designed for serial communication up to    NI Serial Hardware and Softw
6.       FIFO Enabled       Receive FIFO size         1    Low  8  High  60   Transmit FIFO size    i      Low  8  High  56              Cancel   Resouces            Figure 3 11  General Port Settings Dialog Box    COM Port Number    You can use the COM Port Number control to change the logical COMx  name of the selected port     Transceiver Mode    The Transceiver Mode list box shows the transceiver mode in use  and  applies only to RS 485 boards  For more information about transceiver  modes  refer to Chapter 7  Using Your Serial Hardware     FIFO Enabled    You can use the FIFO Enabled checkbox to enable or disable the  FIFO buffers on the selected port  FIFO buffers are present on the  16550 compatible UARTs   one for the transmitter and one for the  receiver     NI Serial Hardware and Software for Windows 3 20 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    FIFO Buffer Size    The Receive FIFO size control sets the number of characters received in  the FIFO before the PC is interrupted to read the data  The Transmit FIFO  size control sets the maximum number of bytes written to the FIFO in a  block when the PC is interrupted to write the data  When you configure  FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e   ftransfer rates are high  you can lower the Receive FIFO size value  to prevent over
7.       National Instruments Corporation 6 23 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    FIFO Buffer Size    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The receiver FIFO trigger denotes the  number of characters received in the FIFO before the PC is interrupted to  read the data  The transmit FIFO trigger denotes the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  Consider the following points when selecting FIFO settings     e  Youcan select larger FIFO settings to reduce the number of interrupts  and therefore minimize system overhead     e   ftransferrates are high  you can lower receive FIFO settings to reduce  the number of interrupts and therefore prevent overrun errors due to  interrupt latency     e   fdata transfer sizes are small  selecting receive FIFO settings just  above data sizes can reduce efficiency  so select lower settings     Resources    Click the Resources button to display the resource configuration dialog  box for the port  For more information on resource configuration  refer to  the next section  Resource Settings     Resource Settings    The following sections explain the resource configuration options for each  serial interface     NI Serial Hardware and Software for Windows 6 24 ni com    Chapter 6    AT Boards  Shared IRQ     AT Serial Hardware Insta
8.       ps   amp       me                                           J              Figure B 1  Typical Full Duplex System    Half Duplex    A typical half duplex multidrop bus architecture also involves a  master slave protocol  However  in a half duplex system  all transmitters  and receivers are connected to the same transmission line  A half duplex  system is often referred to as a two wire system  Figure B 2 shows a typical  half duplex system        Y    Slave 1 Slave 2 Slave n    Rx Pis   N                                                    MASTER    A                 Figure B 2  Typical Half Duplex System    RS 485 Termination    Because each differential pair of wires is a transmission line  you must  properly terminate the line to prevent reflections  A common method of  terminating a two wire multidrop RS 485 network is to install terminating  resistors at each end of the multidrop network  If you daisy chained  multiple instruments together  you need a terminating resistor at only   the first and last instruments  The terminating resistor should match the  characteristic impedance of the transmission line  typically 100 to 120       You can order an optional DB 9 RS 485 termination connector that    NI Serial Hardware and Software for Windows B 4 ni com    Appendix B Serial Port Information    contains embedded terminating resistors for easy termination from  National Instruments  For ordering information  contact National  Instruments     Figure B 3 shows a multidro
9.      z Delete                 Add a New PCMCIA card      PCMCIA 485 E   Add                     Figure C 12  Selecting an Interface to Uninstall    3  Click the Delete button          Note For shared IRQ AT boards  all ports on the interface are removed     Uninstall the Software    Before uninstalling the software  remove all serial port information from  the Windows NT Control Panel  as described in the previous section  You  do not need to shut down Windows NT before uninstalling the software     Complete the following steps to remove the NI Serial software   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon in the Control Panel  to launch the Add Remove Programs applet  The Add Remove  Programs Properties dialog box appears  This dialog box lists the  software available for removal     3  Select the serial software you want to remove  and click the  Add Remove button  The uninstall program runs and removes all  folders  utilities  and registry entries associated with the NI Serial  software     4  Shutdown Windows NT  power off your computer  and remove your  serial interfaces     To reinstall the hardware and software  refer to Chapter 5  PCMCIA Serial  Hardware Installation  Verification  and Configuration         National Instruments Corporation C 23 NI Serial Hardware and Software for Windows       Troubleshooting and  Common Questions    This appendix describes how to troubleshoot problems and answers some  common questions    
10.     3       retrieve the current RS 232 transceiver mode  you can use   NISERIAL GET RS232 MODE and DeviceloControl with the  following code     ULONG bytecount    TRANSCEIVER MODE transceiver mode    DeviceIloControl   comhandle   NISERIAL GET RS232 MODE    PVOID  NULL  0    PVOID   amp transceiver mode   sizeof  transceiver mode     amp bytecount   NULL         Retrieving the RS 232 Transceiver State with DeviceloControl    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for retrieving the current RS 232  transceiver state  The function returns which mode the RS 232 transceivers  are currently operating in  for example  if in Auto232 mode  and DTE  mode was automatically selected  the transceiver state will be reported as  DTE   and whether the serial connection is valid  To retrieve the current  RS 232 transceiver state  complete the following steps          Note You can use the header file NISerial h  included on your CD  to integrate this  code into your program easily         National Instruments Corporation 7 13 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    8 Note Tranceiver mode refers to the programmed mode  Transceiver state refers to the  physical state of the transceivers  actual operating mode and whether valid or invalid      1  Add the following lines to your source code      include  lt winioctl h gt     define RS232 MODE DTE 0x00   define RS232 MODE DCE 0  01  typedef UL
11.     d  Check the hardware resources  If they are in conflict  refer to the  Resolving Resource Conflicts section     NI Serial Hardware and Software for Windows D 14 ni com    Appendix D Troubleshooting and Common Questions    2  Make sure that the National Instruments serial driver is installed   as follows     a  Locate the serial  sys file in the WinNT system32 drivers  directory     b  Ifthe serial sys file is missing  reinstall the hardware and  software  For instructions on how to do so  refer to the installation  and verification chapter for your hardware platform     Right click the serial   sys file and select Properties     d  Click the Version tab  If the Company Name is Microsoft   the National Instruments serial driver is not installed properly   To solve this problem  reinstall the NI Serial software   For instructions on how to do so  refer to the installation and  verification chapter for your hardware platform     Diagnostic Utility Does Not Show All Installed Ports    If the diagnostic utility does not show all the ports you installed  complete  the following steps     1  Verify the hardware resources  as follows     a  Select Start  Settings  Control Panel and double click the  niports icon     b  In the Ports list  select a port and click the Settings button     If the serial port is missing from the Ports list  reinstall the  hardware and software  For instructions on how to do so  refer  to the installation and verification chapter for your hardware  pla
12.     save your changes  click the OK button  To exit without saving the  changes  click the Cancel button          Note RS 232 transceiver modes apply to USB 232 two  or four port hardware only  and  RS 485 transceiver modes and RS 485 bias resistor control applies to USB 485 hardware  only     Port Settings Tab    In the Port Settings tab  you can change any of the settings by clicking  the arrow button to the right of a field  When you click the arrow button   a list of valid values for that field appears and you can select the desired  setting from the list  Figure 4 2 shows the Port Settings tab     NI Serial Hardware and Software for Windows 4 4 ni com    Advanced Settings    Chapter 4 USB Serial Hardware Installation  Verification  and Configuration       N I  USB 485 4 SN CECCO6  Communications Port 1  COM14  Prona 2  4       General Part Settings   Driver         Bits per second     Data bits  fe     sr  Parity             rl  Stop bits  hn  rl  Flow control        rl    Advanced      Restore Defaults                     Cancel            Figure 4 2  Port Settings Tab    To view or change the advanced settings  click the Advanced button   Figure 4 3 shows the Advanced Settings dialog box         National Instruments Corporation       Advanced Settings for COM14 BEN 71 xl     v        Buffers enabled  v Bias Resistors Enabled             COM Port Number  Transceiver Mode     COM14  w   4 Wire m               OK Cancel   Defaults            Figure 4 3  Advanced Settings 
13.    Advanced Features       In addition to supporting standard 16550 compatible UART functionality   some NI serial hardware supports additional advanced features     e  RS 485 transceiver control   e  RS 485 socketed bias resistors   e   RS 485 programmatically controlled bias resistors  e RS 232 DTE DCE transceiver control   e Status LEDs       National Instruments Corporation 7 1 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    To determine which features your product supports  refer to Table 7 1     Table 7 1  Serial Hardware Features                                                             25                 S5   5      3 m          8     9 2 a 8  amp S e   o on Ew UO         lt                  A 24        5        D A     E As is a E   5           o         82 82 32 z            Ta       E s     Hs ns Hs h E S S   Hardware    IZA eO e E     gt   USB 232 two port and four port X X 230 4  USB 2322 one port 230 4  USB 485 two port and four port X X X X 460 8  USB 485 one port X X 460 8  PCI PXI 485 eight port X 460 8  All other PCI PXI 485 x x 460 8  PCMCIA 485 x 921 6  PCI PXI AT 232  PCMCIA 232 4 115 2  All other PCMCIA 921 6  AT 485 x x 115 2   NI Serial Hardware and Software for Windows 7 2 ni com    Chapter 7 Using Your Serial Hardware    You can access some of these features through DeviceIOControl function  calls  the port settings dialog box  or both  To determine which function  calls your product supports  refer to Table 7
14.    Transceiver Mode    This field shows the transceiver mode in use  and applies only to PCI 485  boards  For more information about transceiver modes  refer to Chapter 7   Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e     If transfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes     NI Serial Hardware and Software for Windows 2 16 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows NT       Install the Software    Before you install your serial hardware  complete the following steps to  in
15.    installation  AT serial board installation  figure   6 3   6 11  6 20  determining port associated with COMx  Windows Me 9x  5 11  6 14  Windows NT  5 17  6 21  getting started  1 2  installing the PnP ISA Enabler  Driver  6 18        National Instruments Corporation l 5    Index    PCI serial board installation  figure   2 3   2 11  2 18  PCMCIA serial card installation  figure    5 3  5 9  5 17  PXI serial board installation  figure   3 3   3 10  3 17  running the diagnostic test  AT  Windows Me 9x  6 14  AT  Windows NT  6 21  PCMCIA  Windows Me 9x  5 11  PCMCIA  Windows NT  5 18  selecting resources for the PCMCIA  card  5 16  serial hardware  AT  Windows 2000  6 2  AT  Windows Me 9x  6 10  AT  Windows NT  6 19  PCI  Windows 2000  2 2  PCI  Windows Me 9x  2 10  PCI  Windows NT  2 17  PCMCIA  Windows 2000  5 2  PCMCIA  Windows Me 9x  5 8  PCMCIA  Windows NT  5 16  PXI  Windows 2000  3 2  PXI  Windows Me 9x  3 9  PXI  Windows NT  3 16  USB  Windows 2000  4 2  serial software  Windows 2000  2 1  3 1  4 1   5 1  6 1  Windows Me 9x  2 9  3 9  5 8  6 0  Windows NT  2 17  3 16  5 15  6 18  verification  AT  6 1  PCL 2 1  PCMCIA  5 1  PXI  3 1  USB  4 1  verifying hardware installation  5 9  AT  Windows 2000  6 3  AT  Windows Me 9x  6 11    NI Serial Hardware and Software for Windows    Index    AT  Windows NT  6 21  PCI  Windows 2000  2 3  PCI  Windows Me 9x  2 11  PCI  Windows NT  2 19  PCMCIA  Windows 2000  5 3  PCMCIA  Windows Me 9x  5 11  PCMCIA  Windows NT  5 17  PXI  Win
16.   7 10  Setting the RS 485 Programmically Controlled Bias Resistors  With DeviceloControl      5  tre e Roe                 7 10       National Instruments Corporation Vii NI Serial Hardware and Software for Windows    Contents    RS 232 DTE DCE Transceiver Control                        eese 7 11  Setting the RS 232 Transceiver Mode with DeviceloControl                          7 12  Retrieving the RS 232 Transceiver State with DeviceloControl                     7 13  Setting Ring Indicate and DCD with DeviceloControl                                    7 14   Status LEDS          e yet ee eb eet a ta e        7 17  Retrieving the Serial Interface Type                     sese 7 18    Appendix A  Connector Descriptions    Appendix B  Serial Port Information    Appendix C  Uninstalling the Hardware and Software    Appendix D  Troubleshooting and Common Questions    Appendix E  Specifications    Appendix F  Technical Support and Professional Services    Glossary    Index    NI Serial Hardware and Software for Windows viii ni com    About This Manual       Conventions    This manual contains instructions to help you install and configure the  NI Serial hardware and software for Windows 2000 NT XP Me 9x   This manual includes information about the following serial hardware     e  PCI 232 2  PCI 232 4  PCI 232 8  PCI 232 16  PCI 485 2   PCI 485 4  and PCI 485 8 boards in both isolated and nonisolated  versions    e  PXI 8420  two  four  eight  and 16 port   PXI 8421  two  four  a
17.   Install the SOft Warez inttr E RR EUER              6 9  Install the Hardware    ee eat et ett Rv e          6 10  Verify tbe                                eite ettet tee terr              6 12  Configure Communication Port Settings                   esee 6 14   Windows INT  oett iter P EP dea REUS Te EORR C NER ERE         6 18  Installing the Microsoft PnP ISA Enabler Driver                          eee 6 18  Install the NI Serial Software                        eese 6 18  Install the Serial Hardware                                              enne enne nne 6 19  Verify the Installation    ete aeree elite tee ite Chad 6 21  Configure Communication Port Settings                   esee 6 22    Chapter 7  Using Your Serial Hardware    General Programming Requirements                  eese eee 7 1  Advanced  Peatures  sim                          7 1  RS 485 Transceiver Control    cette e ei e Rr Se ESI D IU dederint 7 4         Wit   Mode  eee eerte irte celi ste ules Gate RO rene Kt dote        7 4  Two Wire Mode         Controlled with Echo                           eee 7 4  Two Wire Mode         Controlled                           eene 7 4  Two Wire Mode  Auto Control                     eese 7 5  Setting the RS 485 Transceiver Control Mode                           esse 7 5  Setting the RS 485 Transceiver Mode with DeviceloControl                          7 6  IJE EH CURIOUS 7 8  Setting the RS 485 Programmatically Controlled Bias Resistor Mode                        
18.   Multi Function Parent       Network adapters   E  PCMCIA adapters   E  Ports  COM  amp  LPT   RJ Communications Port  COM3   oy       PXI 8421    5 485  2 Ports  Port 1        161               PXI 8421  RS 485  2 Ports  Port 2  COMI60        Printer Port  LPT1        fi  Sound  video and game controllers       System devices   z Universal Serial Bus controllers                   Figure 3 2  Device Manager for PXI Serial Board Ports    NI Serial Hardware and Software for Windows 3 4 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Verify the hardware resources  as follows     a  Inthe Device Manager under Multi function adapters   double click a serial board     b  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     c  Repeat steps 5a and 5b until you have verified the resources for  each board      Optional  To determine which physical port is associated with COMx   note the Port 1  Port 2  etc  entries next to the COM numbers  For all  serial hardware  PORTI refers to the top port  PORT2 refers to the next  port down  and so on     To run the diagnostic utility  select Start  Programs  National  Instruments  NI Serial  Diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  com
19.   My Computer         Computer   amp  Disk drives        Display adapters  23  DVD CD ROM drives    3 Floppy disk controllers  9 Floppy disk drives  52  IDE ATA ATAPI controllers  gi Keyboards  TA Mice and other pointing devices  3 Monitors  RU Multifunction adapters   lt Q       PCI 232 8 Multi Function Parent    2 N I  PCI 485 4  Isolated  Multi Function Parent  88 Network adapters     PCMCIA adapters  AF Ports  COM  amp  LPT   RJ Communications Port  COM3   X i N I  PCI 232 8 Communications Port 1  COM2   F N I  PCI 232 8 Communications Port 2  COM3      N I  PCI 232 8 Communications Port 3  COM4   F N I  PCI 232 8 Communications Port 4  COMS   F N I  PCI 232 8 Communications Port 5        6   JJ N I  PCI 232 8 Communications Port 6  COM                    Figure 2 2  Device Manager for PCI Serial Board Ports    NI Serial Hardware and Software for Windows 2 4 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Verify the hardware resources  as follows     a  Inthe Device Manager under Multi function adapters   double click a serial board     b  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     c  Repeat steps 5a and 5b until you have verified the resources for  each board      Optional  To determine which physical port is associated with COMx   note the Port 1  Port 2  etc  entries next to the COM numbers  For all  serial hardware  PORTI refe
20.   Select the National Instruments port to remove from the list of ports   as shown in Figure C 11        System Properties   2  xl    General Device Manager   Hardware Profiles   Performance         View devices by type    View devices by connection             2  Hard disk controllers  E   Keyboard  2 Monitor  A Mouse  BI Network adapters    Ports  COM  amp  LPT   RJ Communications Port  COM1   J Communications Port  COM2   Communications Port  COM10   y N I  AT 232 4 Communications Port  COM    E N I  AT 232 4 Communications Port  COMS   RJ N I  AT 232 4 Communications Port  COMS   RI N I  AT 485 2 Communications Port  COM5   F N I  AT 485 2 Communications Port  COMB   3 Printer Port  LPT1    Bl  System devices    Properties   Refresh   Remove                                                                            Figure C 11  Selecting an Interface to Uninstall          6  Click the Remove button     3 Note To remove ports on shared IRQ AT boards from within the Device Manager  you  must open the Multi function adapters class  select the name of your interface  and click  the Remove button     7  Inthe Confirm Device Removal dialog box  click the OK button to  remove this interface or click Cancel to cancel your request        National Instruments Corporation C 21 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software    Windows NT    Uninstall the Software    Before uninstalling the software  remove all serial port information 
21.   Settings  Control Panel     Double click the Add Remove Programs icon in the Control Panel to  launch the Add Remove Programs applet  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the NI Serial Software for Windows  2000 NT XP Me 9x CD and click the Next button to proceed   The software installation wizard begins     The wizard guides you through the necessary steps to install  the NI Serial software  You can go back and change values where    NI Serial Hardware and Software for Windows 6 18 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    appropriate by clicking the Back button  You can exit the setup where  appropriate by clicking the Cancel button     RE Note This installation backs up the Microsoft Windows NT serial driver serial sys  to serial bak and then overwrites serial sys  You can find serial sys in the  Windows NT  system32 drivers directory     The software installation is complete     Install the Serial Hardware    This section describes how to install your AT serial board     iyi Note If you are installing an AT 485  you might need to adjust the value of the bias  resistors  depending on your application  For more information  refer to Chapter 7  Using  Your Serial Hardware     UN Caution Electrostatic discharge can damage several components on your board  To avoid  such damage in handling the board  touch the antistatic plastic package to a metal part of  your compute
22.   complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Select the Hardware tab and click the Device Manager button   Double click the Multi function adapters icon     4  Fromthe Multi function adapters list  right click the National  Instruments interface that you want to uninstall  as shown in  Figure C 4         National Instruments Corporation C 7 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software       8  Device Manager HE    al xl    Action           e  gt   Gi ES  t          LR      My Computer     Computer   amp  Disk drives     Display adapters  5 DVD CD ROM drives   amp 25 Floppy disk controllers  9 Floppy disk drives     IDE ATA ATAPI controllers      Keyboards  TA Mice and other pointing devices  3 Monitors  x Multifunction adapters  2 a ER Multi Function Paren  Bl  Network adapters Disable     PCMCIA adapters        Ports  COM  amp  LPT      Communications Port  COM3     1  e  DL                                                                   HAHAA  AE                   1 8   8 9                                     Scan for hardware changes       Properties       N I  PXI 8421  RS 485  2 Ports  Port 2  COM160         Printer Port  LPT1   i  Sound  video and game controllers    m  System devices  Universal Serial Bus controllers                            Figure C 4  Selecting an Interface to Uninstall    Choose the Uninstall option     6  Inthe Confirm De
23.   properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and software installation  connect  the serial cables to your devices  Refer to Appendix A  Connector  Descriptions  for information about cable connections     Configure Communication Port Settings       The serial configuration utility is fully integrated into the  Windows 2000 XP Device Manager  You can use it to view or change  the configuration of your serial ports     To configure a serial port  complete the following steps     1        National Instruments Corporation    Select Start  Settings  Control Panel and double click the  System icon     Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon     4 3 NI Serial Hardware and Software for Windows    Chapter 4 USB Serial Hardware Installation  Verification  and Configuration    4  Double click the port you want to configure and refer to the following  instructions     e      view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab              change the COM port number  the RS 485 transceiver mode   or RS 232 transceiver mode  or enable disable the RS 485 bias  resistors  in the Port Settings tab  click the Advanced button   For more information about the settings  refer to the next section   Port Settings Tab     5   
24.   refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete         National Instruments Corporation 3 8 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Verify the Installation    To verify the hardware and software installation  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon   2  Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double click the Multi function adapters icon     The PXI serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child device  is listed as a port under the Ports  COM  amp  LPT  icon     Figure 3 2 shows the Device Manager tab for serial hardware that is  installed properly         2     Em View            1             My Computer  9 88  Computer   H E Disk drives      Display adapters    5 43  DYD CD ROM drives   H 6 Floppy disk controllers   91 9 Floppy disk drives   2  IDE ATA ATAPI controllers   gi Keyboards   3 Mice and other pointing devices    evice Manager          li c                                 4          Monitors    I Multifunction adapters      N I  PXI 8421  RS 485  2 Ports
25.   restart Windows 2000 XP         National Instruments Corporation 6 1 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    9  Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish  When you complete  the wizard  continue to the Verify the Installation section     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     Install the Hardware         Note If you are installing    AT 485  you might need to adjust the value of the bias  resistors  depending on your application  For more information  refer to Chapter 7  Using  Your Serial Hardware     UN Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     To install your AT serial board  complete the following steps     1  Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the AT serial board     2  Remove the top or side cover of the computer   Find an unused AT expansion slot in your computer     4  Remove the corresponding expansion slot cover on the back panel of  the computer     Touch a metal part on your ch
26.   wo N I  PCI 232 8 Communications Port 6  COM10   R   N I  PCI 232 8 Communications Port 7  COM6         N I  PCI 232 8 Communications Port 8        5   K    N I  PCI 485 4  Isolated  Communications Port 1  COM159   E N I  PCI 485 4  Isolated  Communications Port 2  COM158         N I  PCI 485 4  Isolated  Communications Port 3  COM157   F N I  PCI 485 4  Isolated  Communications Port 4  COM156        Printer Port  LPT1       Sound  video and game controllers   a System devices    3 Mice and other pointing devices       Scan For hardware changes                Figure C 1  Selecting an Interface to Uninstall    NI Serial Hardware and Software for Windows C 2 ni com    Windows Me 9x    Appendix C Uninstalling the Hardware and Software    5  Choose the Uninstall option     6  Inthe Confirm Device Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps    1  Select Start  Settings  Control Panel    2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall    3  Select NI Serial and click the Change Remove button  The  uninstallation program removes all folders  utilities  and regi
27.  2  For more information about  using DeviceIOControl  refer to the appropriate section in this chapter     Table 7 2  Function Call Product Support                                                                              EU OE 3  AE  E  S    in  2  8    a a uv 5  e e oc     Mn c Y 5  Programmatic e e e    Feature Control Code  gt   gt   gt   lt   RS 232 Transceiver Control  Set Transceiver Mode SET_RS232_MODE X  Get Transceiver Mode GET_RS232_MODE X X  Get Transceiver State GET_RS232_STATE X X  Set DCD SET_DCD X  Clear DCD CLR_DCD X  Get DCD State  DCE  GET_DCD X X  Set RI SET_RI X  Clear RI CLR_RI X  Get RI State  DCE  GET_RI X X  RS 485 Bias Resistors  Set Bias Mode SET_RS485_BIAS X  Get Bias Mode GET_RS485_BIAS X  RS 485 Transceiver Control  Set Transceiver Mode SET_RS485_MODE X X  Get Transceiver Mode GET_RS485_MODE X                            National Instruments Corporation    7 3    NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    RS 485 Transceiver Control       The RS 485 hardware supports four modes of hardware transceiver control   You can use hardware transceiver control to enable and disable your  transmitters and receivers so that they function on different bus topologies     Table 7 3 lists the status of the transmitters and receivers under each  transceiver control mode     Table 7 3  RS 485 Transceiver Control Modes                      Mode Transmitter Receiver  Four wire mode Always enabled Always enabled  Two wir
28.  25Q    A            Rx 100 Q    Termination Resistor  250 i  B NW  AN on USB 485 two and four port   Programmatic  Control             Figure 7 2  USB 485 Transmission Line Using Bias Resistors    The values of the programmatically controlled bias resistors have been  calculated such that there is a voltage of at least 200 mV between the  differential pair  Rather than using the programmatically controlled bias  resistors  you can load custom values of resistors into the sockets in front  of each connector or use external bias resistors  If these resistors are  installed  make sure the programmatically controlled bias resistors are  disabled          Note The series 25 Q resistors in Figure 7 2 are for short circuit protection and do not  impact serial communication        National Instruments Corporation 7 9 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    Setting the RS 485 Programmatically Controlled Bias  Resistor Mode       The USB 485 hardware can programmatically control the onboard   nonsocketed  bias resistors  By default  these resistors are enabled during  normal device operation and disabled during USB suspend  There are two  ways to control these resistors     e Use the Advanced Settings tab in the control panel  If the Enable  Dynamic Bias Resistors box is checked  the resistors are enabled  automatically whenever a serial port is open during normal operation   If the box is not checked  the resistors are disabled     e You
29.  5 13  PXI  Windows 2000  3 6  PXI  Windows Me 9x  3 14  restore defaults button  2 9  2 17  3 9   3 16  4 6  5 8  5 15  6 9  USB  Windows 2000  4 4  ports list in Device Manager  figure    D 10  D 12  professional services  F 1  programming examples  F 1  PXI serial board installation  figure   3 3   3 10  3 17  PXI serial board names and descriptions   table   1 6    R    related documentation  x  removing information about serial boards  from Device Manager  Windows 2000  D 21  resolving resource conflicts  D 14    NI Serial Hardware and Software for Windows    Index    resolving resource conflicts with legacy  boards  Windows 2000  D 4  Windows Me 9x  D 9  resource configuration dialog box for the  PCMCIA 485  figure   5 22  resource configuration dialog box for the  PCMCIA 485 2  figure   5 23  resource settings  5 22  6 24  AT boards  non shared IRQ   6 26  AT boards  shared IRQ   6 25  PCMCIA 232  PCMCIA 485   PCMCIA 2324  5 22  PCMCIA 232 2  PCMCIA 485 2  5 23  restoring defaults  2 9  2 17  3 9  3 16  4 6   5 8  5 15  6 9  retrieving RS 232 transceiver control mode  retrieving with DeviceloControl  7 13  RS 232  DTE DCE transceiver control  7 11  RS 232 DCE vs  DTE  B 6  RS 232 DTE vs  DCE  B 6  RS 232 standard  B 1  features  table   B 1  RS 232 transceiver mode  retrieving with DeviceloControl  7 13  setting with DeviceloControl  7 12  RS 422 standard  B 2  features  table   B 1  RS 485  programmatic bias resistor control  7 10  RS 485 control  setting transceiver 
30.  9  Ports  COM  amp  LPT    I Communications Port  COM1                                         E N I  PCMCIA 232 2 Communications Port        5      N I  PCMCIA 232 2 Communications         COME         Printer Port  LPT2   A Sound  video and game controllers  YAMAHA OPL3 SAx GamePort                                 he          Figure 5 6  Device Manager Ports List for PCMCIA Serial Card Correctly Installed    NI Serial Hardware and Software for Windows 5 10 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Verify the Hardware Resources    For every port of the newly installed serial interface  double click the name  of the serial port in the Device Manager  Then  click the Resources tab   If the resources were assigned correctly  the Resources page shows which  resources are assigned to your serial ports     If Windows Me 9x did not assign any resources to the port  the Resources  page shows only a Set Configuration Manually button  Click the Set  Configuration Manually button and try to assign conflict free resources  to your serial hardware  For instructions  refer to the Selecting  Conflict Free Resources section of Appendix D  Troubleshooting and  Common Questions  You might have to free an interrupt request level so  that one can be assigned to your serial hardware  For instructions  refer to  the Freeing an Interrupt Request Level section of Appendix D   Troubleshooting and Common Questions     When you have finished verifying
31.  A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL  INSTRUMENTS  THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING  THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE  INCORPORATED IN A SYSTEM OR APPLICATION  INCLUDING  WITHOUT LIMITATION  THE APPROPRIATE DESIGN   PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION     Compliance       FCC Canada Radio Frequency Interference Compliance    Determining FCC Class    The Federal Communications Commission  FCC  has rules to protect wireless communications from interference  The FCC  places digital electronics into two classes  These classes are known as Class A  for use in industrial commercial locations only   or Class B  for use in residential or commercial locations   All NI products are FCC Class A products     Depending on where it is operated  this Class A product could be subject to restrictions in the FCC rules   In Canada  the  Department of Communications  DOC   of Industry Canada  regulates wireless interference in much the same way   Digital  electronics emit weak signals during normal operation that can affect radio  television  or other wireless products     All Class A products display a simple warning statement of one paragraph in length regarding interference and undesired  operation  The FCC rules have restrictions regarding the locations where FCC Class A products can be operated     Consult the FCC Web site at www  fcc   gov for 
32.  B 4  full duplex network using terminating  resistors  figure   B 5    G    general port settings  AT  6 23  dialog box  figure   6 23  transceiver mode  6 23  COM port number  2 21  3 20  5 20  6 23  FIFO enabled  2 21  3 20  5 21  6 23  PCI  2 21  dialog box  figure   2 21  transceiver mode  2 21  PCMCIA  5 20  dialog box  figure   5 20  transceiver mode  5 20  PXI  3 20  dialog box  figure   3 20  transceiver mode  3 20  resources  2 22  3 21  5 21  6 24  general programming requirements  7 1  getting started  1 2  glossary  G 1    H    half duplex  B 4  half duplex system  figure   B 4  hardware installation  AT  Windows 2000  6 2  AT  Windows Me 9x  6 10  AT  Windows NT  6 19  getting started  1 2  PCI  Windows 2000  2 2  PCI  Windows Me 9x  2 10  PCI  Windows NT  2 17  PCMCIA  Windows 2000  5 2  PCMCIA  Windows Me 9x  5 8    ni com    PCMCIA  Windows NT  5 16  PXI  Windows 2000  3 2  PXI  Windows Me 9x  3 9  PXI  Windows NT  3 16  USB  Windows 2000  4 2  verification  AT  Windows 2000  6 3  AT  Windows Me 9x  6 11  AT  Windows NT  6 21  PCI  Windows 2000  2 3  PCI  Windows Me 9x  2 11  PCI  Windows NT  2 19  PCMCIA  Windows 2000  5 3  PCMCIA  Windows Me 9x  5 9  PCMCIA  Windows NT  5 17  PXI  Windows 2000  3 4  PXI  Windows Me 9x  3 11  PXI  Windows NT  3 18  USB  Windows 2000  4 2  hardware specifications  PCI  E 1  PCMCIA  E 9  PXI  E 4  USB  E 7  help  professional services  F 1  technical support  F 1  high speed USB networks  using USB serial  hardware with  D 24 
33.  Corporation    Click the Scan for Hardware Changes icon at the top of the  Device Manager window     After Windows automatically detects your hardware  run the  diagnostics utility to confirm proper serial port installation     If all your serial ports still are not visible  disconnect and  reconnect the USB serial hardware to a different USB port and try  step 2 again     D 17 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    Troubleshooting Diagnostic Messages    This section lists the possible error messages and test results that the  diagnostic utility returns  along with the solutions     No Serial Ports Found or Diagnostic Utility Does Not Show All  Installed Ports    Ifthe No Serial  USB  ports detected error message appears or the  diagnostic utility does not show all the ports you installed  complete all  steps in the Forcing Windows to Detect Your Hardware section     System Files Can Not Be Found    If the One or more   dat files are missingorThe file x is  missing error messages appear  reinstall the NI Serial  USB  software to  replace the missing file     Serial Port Could Not Be Opened    Ifthe port could not be opened error message appears  verify that  no other applications have the port open and rerun the diagnostic utilities   If this message continues to appear  reboot your system and try the  diagnostic program again  If this does not resolve the problem  and no other  applications are using this port  c
34.  Corporation    The PXI serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child device  is listed as a port under the Ports  COM  amp  LPT  icon     Figure 3 6 shows the Device Manager tab for serial hardware that is  installed properly     3 11 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration       System Properties L2 x     General Device Manager   Hardware Profiles   Performance                  View devices by type C View devices by connection                         x   Multifunction adapters   gt  FX1 8422  Isolated RS 232  4 Ports  Multi function Parent  SY Network adapters  9 Other devices     PCMCIA socket        Ports  COM  amp  LPT      Communications Port  COM1      F1 8422  Isolated R5 232  4 Ports        5   E F1 8422  Isolated R5 232  4 Ports  COME   aF PXI 8422  Isolated RS 232  4 Ports               F1 8422  Isolated R5 232  4 Ports        8   928  Sound  video and game controllers  IB  System devices    Properties   Refresh   Remove   Print                                 TF                                             Figure 3 6  Device Manager for PXI Serial Board Ports    5  Verify the hardware resources  as follows     a  Inthe Device Manager tab  under Multi function adapters   double click a serial board     b  Click the Resources tab  If the resource
35.  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 D 3 shows the Ports list in the Device Manager  with a port selected   This example shows an AT interface          Note      remove ports      shared IRQ cards  you must open the Multifunction adapter  class  select the name of the interface  and click the Remove button        National Instruments Corporation    D 11 NI Serial Hardware and Software for Windows    Appendix D Troubleshooting and Common Questions       System Properties L2   x     General Device Manager   Hardware Profiles   Performance         View devices by type    View devices by connection              52  Hard disk controllers   F   Keyboard     Monitor   A Mouse   B9 Network adapters      9 Ports  COM  amp  LPT      Communications Port  COM1      Communications Port  COM2   J N I  AT 232 4 Communications Port  COM10      N I  AT 232 4 Communications Port  COM       N I  AT 232 4 Communications Port        8         N I  AT 232 4 Communications Port        9      N I  AT 485 2 Communications Port        5      N I  AT 485 2 Communications         COMB   Printer Port  LPT1       System devices    m  Properties   Refresh   Remove   Print                              A 9  9   E                            Figure D 3  Ports List in Device Manager    7  Click the Remove button  and click OK to confirm the removal of the  serial hardware information     Repeat steps 6 and 7 until 
36.  NT XP Me 9x installed on your computer for  PCI PXI PCMCIA AT kits or Windows 2000 XP installed on  your computer for USB kits   One of the following hardware kits    PCI Kits        PCI 222  two  four  eight  or 16 port              485  two  four  or eight port               232 isolated  two or four port         PCI 485 isolated  two or four port   PXI Kits              8420  two  four  eight  or 16 port        PXI 8421  two  four  or eight port               8422  two or four port               8423  two or four port    USB Kits        USB 232  one  two  or four port        USB 485  one  two  or four port   PCMCIA Kits        PCMCIA 222  one  two  or four port        PCMCIA 485  one or two port    AT Kits        AT 232  two or four port         AT 485  two or four port             232  two or four port  isolated        AT 485  two or four port  isolated    One of the following CDs        NI Serial Software for Windows 2000 NT XP Me 9x  which is  included in your kit       NI Serial Software  USB  for Windows 2000 XP  which is  included in your kit    NI Serial Hardware and Software for Windows 1 2 ni com    Chapter 1 Introduction    Optional Equipment       For more information about ordering the following optional equipment   contact National Instruments     e DB 9 RS 485 termination connector  PCI 485  USB 485   PCMCIA 485  PXI 8421  PXI 8423  and AT 485 only     e  10 position modular jack to DB 9 cable  PCI  PXI  and AT four port  boards only     e   O position modul
37.  Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab          Note    Transceiver modes apply to RS 485 interfaces only  For more information about  transceiver modes  refer to Chapter 7  Using Your Serial Hardware     5       save your changes  click the OK button  To exit without saving  the changes  click the Cancel button     Port Settings Tab    In the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 3 3 shows the Port Settings tab     NI Serial Hardware and Software for Windows 3 6 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    N I  PXI 8421  RS 485  2 Ports  Port 1  COM161  Properties  2  x      Driver   Resouces                              Figure 3 3  Port Settings Tab  Advanced Settings    To view or change the advanced settings  click the Advanced button   Figure 3 4 shows the Advanced Settings dialog box        National Instruments Corporation 3 7 NI Serial Hardware and Software for Windows    Chapter 3    PXI Serial Hardware Installation  Verification  and Configuration             Advanced Settings for COM159 iS 21 xl     Y Use FIFO buffers  requires 16550 compatible UART     Select lower settings to correct connection problems     Select hig
38.  SERIAL DCD ON true   define SERIAL DCD OFF false     define NISERIAL SET RI   CTL CODE FILE DEVICE SERIAL PORT   4062 METHOD BUFFERED FILE ANY ACCESS   define NISERIAL CLR RI  CTL CODE FILE DEVICE SERIAL PORT   4061 METHOD BUFFERED FILE ANY ACCESS   define NISERIAL GET RI  CTL CODE FILE DEVICE SERIAL PORT   4060 METHOD BUFFERED FILE ANY ACCESS   define NISERIAL SET DCD  CTL CODE FILE DEVICE SERIAL PORT   4072 METHOD BUFFERED FILE ANY ACCESS   define NISERIAL CLR DCD  CTL CODE FILE DEVICE SERIAL PORT   4071 METHOD BUFFERED FILE ANY ACCESS   define NISERIAL GET DCD  CTL CODE FILE DEVICE SERIAL PORT   4070 METHOD BUFFERED FILE ANY ACCESS                                                                               To set the RS 232 signal RI when the transceiver is in DCE mode  use  the following code     ULONG bytecount    DeviceloControl    comhandle   NISERIAL SET RI    PVOID  NULL  0    PVOID  NULL  0    amp bytecount   NULL        To clear the RS 232 signal RI when the transceiver is in DCE mode    use the following code     ULONG bytecount    DeviceloControl      7 15 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    comhandle   NISERIAL CLR RI    PVOID  NULL  0    PVOID  NULL  0    amp bytecount   NULL         4       retrieve the current state of the RS 232 signal RI when the  transceiver is in DCE mode  use the following code        SERIAL RI OUT serial ri out   ULONG bytecount   DeviceloControli    comhandle   NISERIAL GET RI    PV
39.  Settings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 5 3 shows the Port Settings tab           N I  PCMCIA 232 4 Communications Port 1  COM14    Propertiesisrs Id        General Port Settings   Driver   Resources            Data bits   8 7   Parity   None     Stop bits  hh  s    Flow control    None       Bits per second              Advanced      Restore Defauts            Cancel         Figure 5 3  Port Settings Tab    Advanced Settings    To view or change the advanced settings  click the Advanced button   Figure 5 4 shows the Advanced Settings dialog box     NI Serial Hardware and Software for Windows 5 6 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration                  Advanced Settings for       159 E             1          Use FIFO buffers  requires 16550 compatible UART     Select lower settings to correct connection problems  ancl    Select higher settings for faster performance   Defaults    Receive Buffer  Low  8  J High  60   60   1      L  Transmit Buffer  Low  8               High  56   56   L             COM Port Number   comis9    Transceiver Mode   4 wire       4 Wire  2 Wire        Controlled With Echo  2 Wire        Controlled   2 Wire T  Ridy Auto                         Figure 5 4  Advanced Settings Dialog Box    The followin
40.  To find the information you are looking for  see the section of this appendix  for your operating system     PCUPXUPCMGIAJ AT      n pu ODER PR um EIS D 2  Windows 2000    2 e e Idee ede bete D 2  Forcing Windows to Detect Your Hardware         D 2  Troubleshooting Diagnostic Messages                  D 3  Resolving Resource Conflicts with  Legacy Boards eee eremi D 4  Windows              D 4  Freeing an Interrupt Request Level                        D 4  Selecting Conflict Free Resources                         D 5  Troubleshooting Diagnostic Messages                  D 7  Resolving Resource Conflicts with  Legacy Boards ie  sci ees sarc Gh          D 9  Forcing Windows to Detect Your Hardware         D 9  Windows N Praeter ta a tente ee en D 12  Missing Serial Port in the niports List                   D 12  Resolving Resource Conflicts                                D 14  Troubleshooting Diagnostic Messages                  D 14                  E mee ideis    16  Windows  2000 XP ir                                  D 16  Resolving Power Conflicts                           sss D 16  Forcing Windows to Detect Your Hardware         D 17  Troubleshooting Diagnostic Messages                  D 18  Common Questiohs   us ee repe eee reci idet ee veste des D 19        National Instruments Corporation D 1 NI Serial Hardware and Software for Windows    Appendix D Troubleshooting and Common Questions    PCI PXI PCMCIA AT    Windows 2000       Forcing Windows to Detect Your Hardwar
41.  Windows 2000  C 3  C 8  C 14  C 20  Windows Me 9x  C 5  C 10   C 17   22  Windows NT  C 6  C 12  C 18  C 23  setting RS 232 transceiver control mode  setting with DeviceloControl  7 12  setting RS 485 transceiver control mode  7 5  setting with DeviceloControl  7 6  software characteristics  AT  E 12  PCI  E 4  E 8    NI Serial Hardware and Software for Windows    Index    PCMCIA  E 10  PXI  E 7  software drivers  F 1  software installation  getting started  1 2  Windows 2000  2 1  3 1  4 1  5 1  6 1  Windows Me 9x  2 9  3 9  5 8  6 9  Windows NT  2 17  3 16  5 15  6 18  specifications  E 1  16 port boards  PCI  E 3  PXI  E 6  AT  E 10  eight port boards  PCI E 3  PXI  E 5  environmental characteristics  AT  E 12  PCI  E 4  E 8  PXI  E 6  four port boards  AT  E 11  PCI E 2  PXI  E 5  USB  E 7  isolated four port boards  AT  E 12  PCI E 2  isolated two port boards  AT  E 10  PCI E 1  PCI E 1  E 7  PCMCIA  E 9  PXI  E 4  software characteristics  AT  E 12  PCI  E 4  E 8  PCMCIA  E 10  PXI  E 7    NI Serial Hardware and Software for Windows I 10    two port boards  AT  E 10  PCI  E 1  PXI  E 4  USB  E 7  standard DOS based addresses  table   D 20  status LEDs  USB Serial hardware  7 17  straight through cabling in a DTE to DCE  interface  figure   B 6  support  technical  F 1  system integration services  F 1    T    technical support  F 1  telephone technical support  F 2  termination  full duplex network using terminating  resistors  figure   B 5  multidrop network using ter
42.  Windows G 4 ni com    UART    VDC    VXI    Winl6    Win32    Glossary    Universal Asynchronous Receiver Transmitter    volts  volts direct current    VME eXtensions for Instrumentation    describes a 16 bit Windows application    describes a 32 bit Windows application        National Instruments Corporation G 5 NI Serial Hardware and Software for Windows    Index       Numerics    100 pin connector  A 8  pin descriptions  table   A 9  pin locations  figure   A 8  10 position modular jack  A 3  pin descriptions  table   A 3  pin locations  figure   A 3  16 port boards specifications  PCI  E 3  PXI  E 6  68 pin connector  A 6  pin descriptions  table   A 7  pin locations  figure   A 6  9 data bit framing  D 25    A    advanced features  7 1  advanced port settings  AT  Windows Me 9x  6 16  dialog box  figure   AT  Windows Me 9x  6 17  PCI  Windows Me 9x  2 16  PCMCIA  Windows Me 9x  5 14  PXI  Windows Me 9x  3 15  PCI  Windows Me 9x  2 16  PCMCIA  Windows Me 9x  5 14  PXI  Windows Me 9x  3 15  transceiver mode  AT  Windows Me 9x  6 17  PCI  Windows Me 9x  2 16  PCMCIA  Windows Me 9x  5 14  PXI  Windows Me 9x  3 15  advanced settings  AT  Windows 2000  6 7  bias resistors  USB  Windows 2000  4 6       National Instruments Corporation    dialog box  figure   AT  Windows 2000  6 8  PCI  Windows 2000  2 8  PCMCIA  Windows 2000  5 7  PXI  Windows 2000  3 8  USB  Windows 2000  4 5  PCI  Windows 2000  2 7  PCMCIA  Windows 2000  5 6  PXI  Windows 2000  3 7  transceiver mode  AT  Win
43.  Your Serial Hardware     5       save your changes  click the OK button  To exit without saving the  changes  click the Cancel button     Port Settings Tab    In the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 6 3 shows the Port Settings tab     NI Serial Hardware and Software for Windows 6 6 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration               Data bits   B     H  Parity   Nowe e        Flow control   Noe i e     Advanced      Restore Defaults                  Cancel      Figure 6 3  Port Settings Tab       Advanced Settings    To view or change the advanced settings  click the Advanced button   Figure 6 4 shows the Advanced Settings dialog box        National Instruments Corporation 6 7 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration          Advanced Settings for COM159 E 324 xl                       1       v Use FIFO buffers  requires 16550 compatible UART  OK    Select lower settings to correct connection problems     dd    Cancel  Select higher settings for faster performance   Defaults  Receive Buffer  Low  8  J High  60   60   Transmit Buffer  Low  8                    High  56   56              COM Port Number   comis9    Transceiver Mode   4 w
44.  a DTE to DTE   interface  figure   B 7  number of interrupts required for a serial  interface  D 21    ni com    0    online technical support  F 1  optional equipment  1 3  overview of serial hardware  AT  1 8  PCI  1 3  PCMCIA  1 7  PXI  1 4  USB  1 6  overview of serial software  1 9    P    PCI serial board installation  figure   2 3   2 11  2 18  PCMCIA card installation  figure   5 3   5 9  5 17  phone technical support  F 2  pin descriptions  100 pin connector pin descriptions   figure   A 8  100 pin connector pin descriptions   table   A 9  68 pin connector pin descriptions   figure   A 6  68 pin connector pin descriptions   table   A 7  DB 25  connector  A 4  connector pin descriptions   table   A 4  connector pin locations  figure   A 4  DB 9  100 pin description  table   A 9  68 pin description  table   A 7  connector  A 2  connector pin descriptions   table   A 2  connector pin locations  figure   A 2    PnP port configuration dialog box for the  AT 232 4  figure   6 25       National Instruments Corporation l 7    Index    port settings tab  AT  Windows 2000  6 6  AT  Windows Me 9x  6 16  options  advanced port settings  AT  Windows Me 9x  6 16  PCI  Windows Me 9x  2 16  PCMCIA  Windows  Me 9x  5 14  PXI  Windows Me 9x  3 15  advanced settings  AT  Windows 2000  6 7  PCI  Windows 2000  2 7  PCMCIA  Windows 2000  5 6  PXI  Windows 2000  3 7  USB  Windows 2000  4 5  PCI  Windows 2000  2 6  PCI  Windows Me 9x  2 15  PCMCIA  Windows 2000  5 6  PCMCIA  Windows Me 9x 
45.  and click the OK button   When you finish  continue to the Verify the Installation section     If no New Hardware Found dialog box appears  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     UN Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board        National Instruments Corporation    3 9 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    To install your PXI serial board  complete the following steps     1     Qus               Turn off your PXI or CompactPCI chassis  Keep the chassis plugged  in so that it remains grounded while you install the PXI serial board     Find an unused PXI or CompactPCI 5 V peripheral slot   Remove the corresponding filler panel   Touch a metal part on your chassis to discharge any static electricity     Insert the PXI serial board into the 5 V slot  Use the injector ejector  handle to fully inject the device into place  Figure 3 5 shows how to  install the PXI serial board into a PXI or CompactPCI chassis                                   Injector Ejector Handle  In Down Position            Chassis  PXI Serial Board 4 Injector Ejector Rail          Figure 3 5  Installing the PXI Serial Board    Screw the PXI serial board front panel
46.  base  addresses assigned to your legacy boards and refer to the Resolving  Resource Conflicts with Legacy Boards section     Interrupt Test Failed    Ifthe Interrupt test failed error message appears  you might have  an IRQ conflict with legacy boards in your system  To solve this problem   change the IRQ level assigned to your legacy boards and refer to the next  section  Resolving Resource Conflicts with Legacy Boards        National Instruments Corporation D 3 NI Serial Hardware and Software for Windows    Appendix D Troubleshooting and Common Questions    Windows Me 9x    Resolving Resource Conflicts with Legacy Boards    Resource conflicts typically occur if your system contains legacy boards  that use resources that are not reserved properly  If a resource conflict  exists  write down the resource that caused the conflict and refer to the  Microsoft Windows 2000 user guide for instructions on how to use the  Device Manager to reserve I O and IRQ resources for legacy boards     Freeing an Interrupt Request Level    To free an interrupt request level for your serial port  you must disable the  device that is using the interrupt request level  To view the system wide  allocation of interrupt request resources and remove a device  complete the  following steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Click the Device Manager tab   3  Double click the Computer icon and click the View Resources tab     4  Click the Interrupt Reque
47.  configuration utility  which is  fully integrated into the Windows 2000 XP Me 9x Device Manager and  Windows NT Control Panel  Its Port Settings view indicates the maximum  baud rate your hardware supports     How do I remove information about serial boards from the Device  Manager or NI Ports Utility     Refer to the uninstallation section for your hardware platform in  Appendix C  Uninstalling the Hardware and Software   How many interrupts are required for my serial interface     If you have a shared IRQ board or an isolated board  you need one interrupt  per board     If you have an older non shared IRQ board  you need as many interrupts as  there are ports on the board     The USB serial hardware does not require interrupts   How do I change the resources assigned to the serial interface        Windows Me 9x Only  PCI and PXI Boards    The PCI and PXI serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is listed        National Instruments Corporation D 21 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    under the Multi function adapters icon  and each child device is listed as  a port under the Ports  COM  amp  LPT  icon     To change the resources of serial ports  complete the following steps     1  Inthe Device Manager tab  under Multi function adapters   double click a serial interface     2  Click the Resources tab to change the resources  Your 
48.  difference between USB 2 0 and USB 1 1     The USB 2 0 specification replaces the USB 1 1 specification and adds   a high speed mode of operation  480 Mbit s  to the previously existing  full speed  12 Mbit s  and low speed  1 5 Mbit s  modes of operation   Because USB 2 0 expands on the features of USB 1 1 while preserving  backward device compatibility  you can use most full speed and low speed  devices with either USB 2 0 high speed networks or USB 1 1 full speed  networks     Can I use the USB serial hardware in high speed  2 0  USB networks     Yes  Because the USB 232 485 devices are USB 2 0 full speed compliant   you can use them in either high speed  USB 2 0 hubs  or full speed   USB 1 1 hubs  networks     What happens to data sent to a closed serial port     Because serial communication ports are active only when the port is open   for example  by using CreateFile   data may be received and made  available only when the port is open  Assume that any data received by   a closed com port may be lost or corrupted     Why do loopback tests of large data transfers sometimes have  problems     In a typical loopback test  an external wrap plug is used to loop back  transmit signals to receive signals  In this configuration  data transmitted is  read back on the same serial port to test port communication  Loopback  programs often perform this data transfer using a single write followed by  a single read  and thus rely on driver software and serial hardware buffering  to ho
49.  disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab     5  Note If you use two wire Auto mode  FIFOs must be enabled  Transceiver modes apply  to RS 485 interfaces only  For more information about transceiver modes  refer to  Chapter 7  Using Your Serial Hardware     5        National Instruments Corporation    To save your changes  click the OK button  To exit without saving the  changes  click the Cancel button     6 15 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Port Settings Tab    On the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of the setting  When you click the arrow button   a list of valid values for that setting appears  Select the desired setting from  the list  Figure 6 7 shows the Port Settings tab        N I  AT 485 2 Communications Port  COM6  Properties K                            Figure 6 7  Port Settings Tab    Advanced Port Settings    You can view or change the advanced port settings by clicking the  Advanced button on the Port Settings tab  Figure 6 8 shows the  Advanced Port Settings dialog box     NI Serial Hardware and Software for Windows 6 16 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration       Advanced Port Settings   x      Transceiver Mode   wir
50.  installation  connect the cables   Refer to Appendix A  Connector Descriptions  for information about cable  connections     Configure Communication Port Settings    The serial configuration utility is fully integrated with the Windows Me 9x  Device Manager  You can use it to examine or modify the configuration of  the serial port     Complete the following steps to configure the serial port  Repeat the  configuration procedure for each serial port in your system     1     4     Select Start  Settings   Control Panel and double click the System  icon  The System Properties window appears     Select the Device Manager tab  and click the View devices by type  button at the top of the page     Double click the Ports  COM  amp  LPT  icon     Double click the name of the port you want to configure     You can now view or change information about your serial port in the  following ways     Click the Resources tab to view information about the hardware  resources assigned to the serial port     Click the Port Settings tab to view information about the software  configuration for the serial port  Refer to the next section  Port Settings  Tab  for more information     On the Port Settings tab  click the Advanced button to change the  RS 485 transceiver mode and to enable or disable the FIFOs on the  serial hardware  Refer to the next section  Port Settings Tab  for more  information     3 Note If you use two wire Auto mode  FIFOs must be enabled  Transceiver modes apply  to RS 485 in
51.  port       National Instruments Corporation 1 3 NI Serial Hardware and Software for Windows    Chapter 1 Introduction    version uses a breakout box to convert the 100 pin connector on the board  to 16 DB 9 connectors  Throughout this manual  PCI serial boards refers  to all versions of the PCI serial boards     The isolated PCI 232 and PCI 485 boards are designed for applications  in harsh environments  Isolated ports provide reliable communication in  situations involving ground loops from different ground levels or high  common mode voltage induced on the lines in noisy environments   Nonisolated ports may not provide reliable communication in those  situations  The isolation between each communication port and the host PC  ensures the safe operation of the PC and the devices connected to other  ports on the same board  in case of accidental high voltages on  communication lines     The PCI 485 boards support four hardware transceiver control modes  for reliable communication with two  and four wire devices  For more  information about transceiver control modes  refer to Chapter 7  Using  Your Serial Hardware     All serial hardware uses standard 16550 compatible UARTs  Universal  Asynchronous Receiver Transmitters  for complete compatibility   with standard PC COM ports  The serial hardware contains FIFOs   First In First Out  buffers to reduce susceptibility to interrupt latency  for faster transmission rates  Full Plug and Play compatibility allows  switchless configur
52.  problem  complete the  following steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Click the Device Manager tab and then click the View devices by  type button     3  Double click the Other Devices icon  Windows Me 9x lists the boards  it does not recognize under Other Devices     4  Double click the Multi function adapters icon  where  Windows Me 9x lists the parent devices of the PCI or PXI ports        National Instruments Corporation D 9 NI Serial Hardware and Software for Windows    Appendix D    NI Serial Hardware and Software for Windows    Troubleshooting and Common Questions    5     Select the interface that Windows      9   did not detect  as shown in  Figure D 2   This example shows a PCI interface            System Properties   21 x     General Device Manager   Hardware Profiles   Performance        View devices by type C View devices by connection        9 8 Keyboard      m Modem  E Monitor        HA Mouse       gt  Multi function adapters   gt  N I  PCI 232 4 Multi function Parent   BY Network adapters   2 Dther devices      PCMCIA socket   oy Ports  COM  amp  LPT      9 Communications Port  COM1      N I  PCI 232 4 Communications Port  COM10      N I  PCI 232 4 Communications Port  COM       N I  PCI 232 4 Communications Port  COM8      N I  PCI 232 4 Communications Port                Printer Pot  PT2     AMA cnd Fe ees             Properties   Refresh   Remove   Print                                       9         
53.  refer to Chapter 7  Using Your Serial Hardware     UN Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     To install your PCI serial board  complete the following steps     1     Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the PCI serial board     Remove the top or side cover of the computer   Find an unused PCI expansion slot in your computer     Remove the corresponding expansion slot cover on the back panel of  the computer     Touch a metal part on your chassis to discharge any static electricity     Insert the PCI serial board into the slot with the serial connectors  toward the opening on the back panel  Make sure that you insert the  board all the way into the slot  The board might seem to click firmly  into place  even though it is only part of the way in  Figure 2 1 shows  how to install the PCI serial board into an expansion slot     NI Serial Hardware and Software for Windows 2 2 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration                      1 PC 2 PCI Serial Board 3 PCI Slot             Figure 2 1  PCI Serial Board Installation    7  Screw the PCI serial board mounting bracket to the back panel  mounting rail of the computer     8  Replace the cover   9  Turn on your computer and start Windo
54.  terminates in a  standard DB 9 D Sub connector  Throughout this manual  references to  PCMCIA serial interfaces generally refer to all versions of the interfaces     The PCMCIA 485 interfaces support four hardware transceiver control  modes for reliable communication with two wire and four wire devices   Refer to Chapter 7  Using Your Serial Hardware  for more information  about transceiver control modes     All of the serial hardware uses standard 16550 compatible UARTs   Universal Asynchronous Receiver Transmitters  for 100 percent  compatibility with standard PC COM ports  The serial hardware contains  FIFOs  First In First Out buffers  for reduced susceptibility to interrupt  latency and faster transmission rates  Full Plug and Play compatibility gives  you the convenience of switchless configuration and installation  Refer to  Appendix E  Specifications  for more information about the serial hardware  specifications and operating conditions        National Instruments Corporation 1 7 NI Serial Hardware and Software for Windows    Chapter 1    AT Kits    Introduction    The serial hardware gives you a variety of solutions for serial  communications  The AT 232 boards work with the RS 232 protocols  and  the AT 485 boards work with the RS 422 and RS 485 protocols  You can  use the AT 232 hardware for serial communication up to distances of 50 ft   You can connect the AT 485 hardware with up to 31 devices using serial  cable lengths up to 4 000 ft     The AT boards are ava
55.  the hardware information  To do so  complete the following    steps    1  Select Start  Settings  Control Panel and double click the  System icon    2  Select the Device Manager tab and click the View devices by type  button    3  Double click the Multi function adapters icon    4  Fromthe Multi function adapters list  select the National        National Instruments Corporation    Instruments interface that you want to uninstall  as shown in  Figure C 5     C 9 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software       System Properties 21x     General Device Manager   Hardware Profiles   Performance        View devices by type    View devices by connection     amp  Hard disk controllers   2 Keyboard  Modem      Monitor  A Mouse    Multi  function adapters                                      DF  R8  89 8           32  4 Ports  Multi function Parent          B3 Network ee   4 Other devices      PCMCIA socket         Ports  COM  amp  LPT      Communications Port  COM1         F1 8422  Isolated      232  4 Ports        5   F F1 8422  Isolated      232  4 Ports  COME   K     1 8422  Isolated      232  4 Ports  COM    F PXI 8422  Isolated      232  4 Ports        8                              RS    Properties   Refresh   Remove   Print                        1           Cancel      Figure C 5  Selecting an Interface to Uninstall          Click the Remove button     6  Inthe Confirm Device Removal dialog box  click the OK button to  re
56.  the hardware resources  proceed to the  next section  Determine Which Physical Port Is Associated with COMx     Determine Which Physical Port Is Associated  with COMx    For every port of the newly installed serial interface  double click the name  of the serial port in the Device Manager  Then  click the Port Settings tab   The top of this page displays the serial number of the serial hardware  and  the physical port number starting at 1     When you have finished verifying the driver installation and physical port   proceed to the next section  Run the Diagnostic Test     Run the Diagnostic Test    To verify and test the installation  run the diagnostic program that came  with your NI Serial software  The diagnostic program verifies that your  serial driver is installed properly  that the configuration of your hardware  does not conflict with anything else in your system  and that the serial  driver can communicate with your hardware correctly     To run the test  select the diagnostics item under Start  Programs    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 5 11 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    After you verify the hardware and software
57.  to the front panel mounting rail  of the PXI or CompactPCI chassis     Turn on your PXI or CompactPCI chassis and start Windows Me 9x     NI Serial Hardware and Software for Windows 3 10 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  Make sure  that Windows Default Driver is selected and click the OK button     If no New Hardware Found dialog box appears  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete     Verify the Installation    Before you verify the installation  keep in mind that the serial ports   built into your computer are typically named from COMI to COM4   Windows Me 9x typically issues port names to the ports on NI Serial  hardware starting with COM5  COM6  and so on  If not enough resources  are available to assign to all the NI serial ports  the port with the higher           name is not configured     To verify the hardware and software installation  complete the following    steps   1  Select Start  Settings   Control Panel and double click the  System icon   2  Click the Device Manager tab and then click the View devices by  type button   3  Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double click the Multi function adapters icon         National Instruments
58.  you have acquired raw data  you can convert it  into meaningful results using the powerful data analysis routines in  LabVIEW  LabVIEW also comes with hundreds of instrument drivers   which dramatically reduce software development time  because you do not  have to spend time programming the low level control of each instrument     Measurement Studio bundles LabWindows   CVI   for C programmers   ComponentWorks for Microsoft Visual C   programmers  and  ComponentWorks   for Microsoft Visual C   programmers   Measurement Studio is designed for building measurement and automation  applications with the programming environment of your choice     e  LabWindows CVlIis an interactive ANSI C programming environment  designed for building virtual instrument applications   LabWindows CVI delivers a drag and drop editor for building user  interfaces  a complete ANSI C environment for building your test  program logic  and a collection of automated code generation tools   as well as utilities for building automated test systems  monitoring  applications  or laboratory experiments     e  ComponentWorks for Visual Basic is a collection of ActiveX controls  designed for building virtual instrumentation systems  Based on  ActiveX technology  ComponentWorks controls are configured  through simple property pages  You can use the ComponentWorks    NI Serial Hardware and Software for Windows 1 10 ni com    Chapter 1 Introduction    GPIB  Serial  and VISA I O controls and property pages to set u
59. 00           ccccccsssscccecsesscceecceesssseeeeeeseseeeseecesseeeee C 19  Windows Me Ox              C 20  Windows NT                                 a vetet ove C 22        National Instruments Corporation C 1 NI Serial Hardware and Software for Windows    Appendix C    Uninstalling the Hardware and Software    PCI Hardware       Windows 2000    Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Select the Hardware tab and click the Device Manager button   Double click the Multi function adapters icon     4  From the Multi function adapters list  right click the National  Instruments interface that you want to uninstall  as shown in  Figure C 1            Device Manager B    ni x             Action View            Pu                                                                                       Monitors       Multifunction adapters  x         PCI 232 8 Multi Function Parent   PENI  PCI 485 4  Isolated  Multi Function Parent   Big Network adapters Disable         Ports  COM  amp  LPT      Communications Port  COM3   mf N I  PCI 232 8 Communications Port 1  COM36 Properties  x  N I  PCI 232 8 Communications Port 2  COM3  x N I  PCI 232 8 Communications Port 3  COM33   F N I  PCI 232 8 Communications Port 4  COM32   wo N I  PCI 232 8 Communications Port 5  COM11 
60. 00  C 2  PCI  Windows Me 9x  C 3  PCI  Windows NT  C 5  PCMCIA  Windows 2000  C 13  PCMCIA  Windows Me 9x  C 15  PCMCIA  Windows NT  C 17  PXI  Windows 2000  C 7  PXI  Windows Me 9x  C 9  PXI  Windows NT  C 11  uninstalling serial software  Windows 2000  C 3  C 8  C 14  C 20  Windows Me 9x  C 5  C 10  C 17  C 22  Windows NT  C 6  C 12  C 18  C 23  USB  common questions  D 16  versions  differences between  D 24  USB Serial hardware status LEDs  7 17  using FIFO buffers  2 8  2 16  3 8  3 15  4 6   5 7  5 14  6 8  6 17  using serial hardware  7 1  using this manual  1 1    V    verifying hardware installation  AT  Windows 2000  6 3  AT  Windows Me 9x  6 11  AT  Windows NT  6 21  PCI  Windows 2000  2 3  PCI  Windows Me 9x  2 11  PCI  Windows NT  2 19  PCMCIA  Windows 2000  5 3  PCMCIA  Windows Me 9x  5 9  PCMCIA  Windows NT  5 17  PXI  Windows 2000  3 4  PXI  Windows Me 9x  3 11  PXI  Windows NT  3 18  USB  Windows 2000  4 2  verifying hardware resources  AT  Windows Me 9x  6 13  PCMCIA  Windows Me 9x  5 11    NI Serial Hardware and Software for Windows    Index    viewing or changing communication port  settings  Windows 2000  2 5  3 5  4 3  5 5  6 5  Windows Me 9x  2 14  3 13  5 12  6 14  Windows NT  2 20  3 19  5 18  6 22  VISA  See NI VISA    NI Serial Hardware and Software for Windows    I 12    W    Web   professional services  F 1   technical support  F 1  Win32 Overviews and Win32 Reference  7 1  Win32 Software Development Kit  7 1  worldwide technical support  F 2    n
61. 1     Select Start  Settings  Control Panel and double click the niports  icon  A list of installed National Instruments ports appears  as shown  in Figure 3 10        National Instruments   Ports Ea    Settings       Zi Delete                   P1 8422  Isolated RS 232  4 Ports  COME  P51 8422  Isolated RS 232  4 Ports  COM   P  1 8422  Isolated RS 232  4 Ports  COMS  PxI 8422  Isolated RS 232  4 Ports              Add a New PCMCIA card      PCMCIA 485 he   Add                  Figure 3 10  niports Configuration Utility    2  Select the port that you want to configure and refer to the following  instructions         National Instruments Corporation    To remove hardware information about the port from  Windows NT  click the Delete button  You should do this before  you remove your hardware     To view or change the port settings  click the Settings button   For more information about the settings  refer to the next section   General Port Settings     In the General Port Settings dialog box  click the Resources  button to view the resources for the port     3 19 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    General Port Settings    The following sections describe the options you can set in the General  Port Settings dialog box  shown in Figure 3 11        General Port Settings Ea      PXI 8422  Isolated RS 232  4 Ports    Serial Number  345762 PORT   1  COM Port Number  E  Transceiver Mode   v    
62. 232 4 Communications Port  COME      N I  PCMCIA 232 4 Communications Port  COM    R   N I  PCMCIA 232 4 Communications Port  COM8      Printer Port  LPT2                    Lr           operties   Refresh   Remove   5                      HI oo ee                   Ed                                         tees      Figure C 8  Selecting an Interface to Uninstall          6  Click the Remove button          Note To remove ports on two         four port              cards from within the Device  Manager  you must open the Multi function adapters class  select the name of your  interface  and click the Remove button     7  Inthe Confirm Device Removal dialog box  click the OK button to  remove this interface or click Cancel to cancel your request     NI Serial Hardware and Software for Windows C 16 ni com    Appendix C Uninstalling the Hardware and Software    Uninstall the Software    Before uninstalling the software  remove all serial port information from  the Windows Me 9x Device Manager  as described in the previous section   You do not need to shut down Windows Me 9x before uninstalling the  software     Complete the following steps to remove the NI Serial software   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon in the Control Panel  to launch the Add Remove Programs applet  The Add Remove  Programs Properties dialog box appears  This dialog box lists the  software available for removal     3  Select the serial software you wa
63. 485 two  and four port serial cards  PXI RS 485 two  and  four port serial cards  and AT RS 485 two  and four port serial cards  there  are four user configurable bias resistors in front of each connector  These  resistors are socketed and pre loaded with 620    resistors  They are  connected to the receive signals of each port to maintain a known state  when the bus is idle  The connections are made as follows     e RXD  and CTS  are pulled up to  5 V  e  RXD  and CTS  are pulled down to GND    Rather than using two 620 Q resistors at one node  you can increase the  value of the resistors and put them at every node  For instance  if there are    NI Serial Hardware and Software for Windows 7 8 ni com    Chapter 7 Using Your Serial Hardware    eight nodes in a system  you can use 4 7 kQ resistors at each node to  effectively achieve the same result     On the USB 485 hardware  there are programatically controlled onboard  bias resistors  In addition  the USB 485 two and four port hardware has  user configurable socketed bias resistors  By default  the USB 485  hardware uses the programatically controlled bias resistors  which are  connected to the receive signals of each port to maintain a known state  when the bus is idle  The connections are made as follows     e RXD   and CTS  are pulled up to  3 3 V  e RXD and CTS  are pulled down to GND    Figure 7 2 shows a USB transmission line using bias resistors                  3  MN  MES  Control  id  on USB 485 two and four port  
64. 5 6 by 54 0 by 0 5 cm   3 370 by 2 126 by 0 197 in           connector                      eene Adapter cable with DB 9 Dsub  connector and converter for  PC card    Power requirement   from PCMCIA expansion slot     PCMCIA 232  X5                   40 mA typical   150 mA maximum  PCMCIA 485           110 mA typical     225 mA maximum    FS VDU riora hte 60 mA typical   250 mA maximum  PCMCIA 485 2  15 VDGi su eU 150 mA typical   400 mA maximum  PCMCIA  232 A4  T3 DG  acts 60 mA typical   200 mA maximum    Operating environment  Ambient temperature                        0 to 55         Relative humidity                              10 to 9096  noncondensing    Storage environment    Ambient temperature                           40 to 120       Relative humidity                              5 to 9596  noncondensing  EM i ee EEUU ee FCC Class A verified       National Instruments Corporation E 9 NI Serial Hardware and Software for Windows    Appendix E Specifications    Software Specifications    Maximum serial transfer rate     AT Serial Hardware    Your software port Settings view  indicates the maximum rate   typically 921 6 k  for your    hardware       Nonisolated Two Port Boards    DIMENSIONS eerte tete tix         connector                               Power requirement   from PC AT I O channel     AT 485 2    Isolated Two Port Boards    Dimensions                                       connector                                  10 67 by 16 51 cm   4 2 by 6 5 in      D
65. 50 41 33 24 16 7 TXD  9 RI 9                                            National Instruments Corporation A 7 NI Serial Hardware and Software for Windows    Appendix A Connector Descriptions    100 Pin Connector       Figure A 6 and Table A 5 give the pin locations and descriptions of the  100 pin connector        9    PIN 100          l pfa                 PIN 50          PIN 51           u e PIN 1                         Figure    6  100 Pin Connector Pin Locations    NI Serial Hardware and Software for Windows A 8 ni com    Appendix A Connector Descriptions    Table A 5  100 Pin Connector Pin Descriptions                                                                                                       100 Pin Connector Port 232  232 D Sub 9   1 2 3 4 5 6 7 8 9   10   11   12   13 14 15 16   Signal   Connector  2   46   6   42   10  38   14   34 DCD  1      147   7   43   11   39   15   35   18   32   20   30   22 28 24 26 RXD 2   4   48   8   44   12   40   16   36   19   33   21   31 23 29 25 27 TXD 3   5   49    9   45   13 41   17   37 DTR  4   1 1 1 1 50   50   50   50   51   51   51   51   100   100   100   100   GND 3  52   96   56   92   60   88   64   84 DSR  6  53   97   57   93   61   89   65   85   68   82   70   80   72 78 74 76 RTS 7  54   98   58   94   62   90   66   86   69   83   71   81   73 79 75 TA  CTS 8  55   99   59   95   63   91   67   87 RI  9     These signals are not supported on ports 9   16 of the 16 port PCI and PXI serial boards          
66. A respecte toutes les exigences du R  glement sur le mat  riel brouilleur du Canada     Compliance to EU Directives    Readers in the European Union  EU  must refer to the Manufacturer s Declaration of Conformity  DoC  for information   pertaining to the CE Marking compliance scheme  The Manufacturer includes a DoC for most every hardware product except  for those bought for OEMs  if also available from an original manufacturer that also markets in the EU  or where compliance is  not required as for electrically benign apparatus or cables     To obtain the DoC for this product  click Declaration of Conformity at ni com hardref nsf   This Web site lists the DoCs  by product family  Select the appropriate product family  followed by your product  and a link to the DoC appears in Adobe  Acrobat format  Click the Acrobat icon to download or read the DoC       The CE Marking Declaration of Conformity contains important supplementary information and instructions for the user or  installer     Contents       About This Manual    ConventIOnS  eiie a OR AA e OE ix  Related Documentatlon                en aede teo        ES aE RNE x  Chapter 1  Introduction  How to Use this  Manual    eer ee tee E AE a EA 1 1  What You Need to Get Started                    sse    1 2  Optional Equipment            ii t eet erre e eee pale E 1 3  Serial Hardware                                                               1 3  PCLEKits 25 2  I de dnte enm edi ee eee eio ede esed 1 3             7 ean 
67. B 9    390 mA  510 mA    260 mA  340 mA    140 mA  180 mA    70 mA  100 mA    typical  maximum    typical  maximum    typical  maximum    typical  maximum    10 67 by 18 70 cm   4 2 by 7 4 in      1 Actual speed may vary considerably from speed shown due to system and instrumentation capabilities     NI Serial Hardware and Software for Windows E 10    Isolation voltage    From Port to Port                       From Any Port to Host    Computer    tee    Power requirement   from PC AT I O channel     AT 485 2 Isolated    Nonisolated Four Port Boards    Dimensions                 eem                                                                Power requirement   from PC AT I O channel     AT 485 4       Appendix E Specifications    3 000 Vyins 60 s    2 000 V m 60 s    220 mA typical  260 mA maximum    160 mA typical  200 mA maximum    10 67 by 16 51 cm   4 2 by 6 5 in      10 position modular jack    160 mA typical  200 mA maximum    110 mA typical  150 mA maximum    160 mA typical  200 mA maximum    110 mA typical  150 mA maximum    1 The four port AT serial board requires a cable to convert the 10 position modular jack to either DB 9 or DB 25 connectors        National Instruments Corporation E 11    NI Serial Hardware and Software for Windows    Appendix E Specifications    Isolated Four Port Boards    Dimensions                          10 67 by 25 40 cm   4 2 by 10 0 in      I O connector                     sese 10 position modular jack    Isolation voltage    From P
68. CI serial boards require a breakout box  which is included in your kit  to separate the 100 position connector to  16 DB 9 connectors        National Instruments Corporation E 8 NI Serial Hardware and Software for Windows    Appendix E Specifications    Environmental Characteristics    Operating environment  Ambient temperature                         0 to 55   C  Relative humidity                              10 to 90   noncondensing    Storage environment    Ambient temperature                            40 to 85   C  Relative humidity                              5 to 9596  noncondensing  EMI  eu eb eres FCC Class A Verified    Software Characteristics  Maximum serial transfer rate   RS 4895      reed 460 800 bps  RS2232   5 hacen eni 115 200 bps    PXI Serial Hardware       Two Port Boards    Dimensions   ence 100 by 160 mm   3 94 by 6 37 in           connector                                        DB 9    Power requirement  from PXI channel     PXI 8420 2  45  VDO c ae a 100 mA typical  150 mA maximum  x12           20 mA typical  200 mA maximum  PXI 8421 2   9 VDC x  2i es aed 350 mA typical  750 mA maximum  PXI 8422 2       VDC i  icis ient 400 mA typical    650 mA maximum       1 Actual speed may vary considerably from speed shown due to system and instrumentation capabilities     NI Serial Hardware and Software for Windows E 4 ni com    Appendix E Specifications    PXI 8423 2  FS VDGic  seed 800 mA typical  1 300 mA maximum  Four Port Boards  Dimensions  ie Re 100 b
69. Dialog Box    4 5 NI Serial Hardware and Software for Windows    Chapter 4 USB Serial Hardware Installation  Verification  and Configuration    The following sections describe the advanced settings options     Transceiver Mode    This field shows the transceiver mode in use  For more information about  transceiver modes  refer to Chapter 7  Using Your Serial Hardware     Bias Resistors Enabled    To enable the programmatically controlled bias resistors  check this box   This checkbox applies only to USB 485 hardware  For more information  about bias resistors  refer to Chapter 7  Using Your Serial Hardware     FIFO Buffers Enabled    The FIFO buffers for USB serial hardware are always enabled and cannot  be adjusted     COM Port Number    Use this field to select the COM port number for your device     Restore Defaults    To reset the fields to their default values at any time  click the Defaults  button     NI Serial Hardware and Software for Windows 4 6 ni com       PCMCIA Serial Hardware  Installation  Verification   and Configuration    This chapter describes how to install the NI Serial software and PCMCIA  serial hardware and how to verify the installation  It also describes how to  view or change the communication port settings     To begin your installation  see the section of this chapter containing  instructions for your operating system  Windows 2000 XP   Windows Me 9x  or Windows NT      Windows 2000 XP       Install the Software   Before you install your serial h
70. ERIAL GET INTERFACE TYPE  CTL CODE FILE DEVICE SERIAL PORT   4050 METHOD BUFFERED FILE ANY ACCESS        To retrieve the serial interface type  use  NISERIAL GET INTERFACE TYPE and DeviceloControl with  the following code     SERIAL INTERFACE serial interface  ULONG bytecount   DeviceloControli    comhandle   NISERIAL GET INTERFACE TYPE     NI Serial Hardware and Software for Windows 7 18 ni com    Chapter 7 Using Your Serial Hardware     PVOID  NULL  0    PVOID   amp serial interface     Sizeof serial interface     amp bytecount   NULL       National Instruments Corporation 7 19 NI Serial Hardware and Software for Windows          Connector Descriptions    Connecting Cables       For the PCMCIA and USB hardware and two port PCI  PXI  and AT serial  hardware  you can use the standard DB 9 connector found on most serial  cables  To use the DB 9 connector with the four port PCI  PXI  and AT  serial hardware  you need the 10 position modular jack to DB 9 cable   which is available from National Instruments  You can also use a DB 25  connector with the four port serial boards by ordering the 10 position  modular jack to DB 25 converter cable from National Instruments    The eight port serial boards include a pig tail cable adapter  providing eight  standard DB 9 connectors  The 16 port boards include a breakout box   providing 16 standard DB 9 connectors     Note      achieve the specified isolation voltage for four port isolated PCI  PXI  or  AT serial boards  use only the 10 po
71. F   Keyboard    Monitor  A Mouse  BY Network adapters    Ports  COM  amp  LPT   J Communications Port  COM1      Communications Port  COM2   E N I  AT 232 4 Communications Port  COM10   F N I  AT 232 4 Communications Port  COM    R   N I  AT 232 4 Communications Port  COM8   E       AT 232 4 Communications Port  COMS   E N I  AT 485 2 Communications Port  COM5   R         AT 485 2 Communications Port  COMB   A Printer Port  LPT1      System devices    Properties   Refresh   Remove   Print                        OG  EHE                     Figure 6 6  Device Manager Ports List for AT Serial Board Correctly Installed       Verify the Hardware Resources    For every port of the newly installed serial interface  double click the name  of the serial port in the Device Manager  Then  click the Resources tab   If the resources were assigned correctly  the Resources page shows which  resources are assigned to your serial ports     If Windows Me 9x did not assign any resources to the port  the Resources  page shows only a Set Configuration Manually button  Click the Set  Configuration Manually button and try to assign conflict free resources  to your serial hardware  For instructions  refer to the Selecting  Conflict Free Resources section of Appendix D  Troubleshooting and  Common Questions  You may have to free an interrupt request level so that  one can be assigned to your serial hardware  For instructions  refer to the  Freeing an Interrupt Request Level section of Appendix D   Tr
72. FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT  INJURY TO A HUMAN      2  IN ANY APPLICATION  INCLUDING THE ABOVE  RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE  IMPAIRED BY ADVERSE FACTORS  INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY   COMPUTER HARDWARE MALFUNCTIONS  COMPUTER OPERATING SYSTEM SOFTWARE FITNESS  FITNESS OF COMPILERS  AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION  INSTALLATION ERRORS  SOFTWARE AND  HARDWARE COMPATIBILITY PROBLEMS  MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL  DEVICES  TRANSIENT FAILURES OF ELECTRONIC SYSTEMS  HARDWARE AND OR SOFTWARE   UNANTICIPATED USES OR  MISUSES  OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER  ADVERSE FACTORS SUCH AS THESE ARE  HEREAFTER COLLECTIVELY TERMED    SYSTEM FAILURES      ANY APPLICATION WHERE A SYSTEM FAILURE WOULD  CREATE A RISK OF HARM TO PROPERTY OR PERSONS  INCLUDING THE RISK OF BODILY INJURY AND DEATH  SHOULD  NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE  TO AVOID  DAMAGE  INJURY  OR DEATH  THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO  PROTECT AGAINST SYSTEM FAILURES  INCLUDING BUT NOT LIMITED TO BACK UP OR SHUT DOWN MECHANISMS   BECAUSE EACH END USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS  TESTING  PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN  COMBINATION WITH OTHER PRODUCTS IN
73. For instructions on how to use the Device Manager  refer to  chapter with installation instructions for your hardware platform  The mode  you select in the Device Manager is automatically configured when you  open a port on a serial interface     For PCI PXI PCMCIA AT  you can also set the hardware transceiver  control mode from within a DOS application  For each port you want to  control  write the control byte for the mode you want to select to the scratch  register of the UART  Table 7 4 shows the control bytes for each mode        National Instruments Corporation 7 5 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    Table 7 4  Transceiver Mode Control Bytes                      Transceiver Mode Control Byte  Four wire mode 0x00  Two wire mode  DTR controlled with echo 0x01  Two wire mode  DTR controlled with echo 0x02  Two wire mode  Auto Control 0x03                The scratch register is located at offset 7 from the base address of the port   For example  if         were located at base address Ox3F8  and you want  to set the board to two wire mode with DTR control  you would write a  0x02 to address Ox3FF  The board would immediately switch to the  two wire mode with DTR control     Windows NT    To set the transceiver control mode  use the serial configuration utility   For instructions on how to use the utility  refer to chapter with installation  instructions for your hardware platform  The mode you select in the  configuration u
74. I  Windows NT  2 17  PCMCIA  Windows 2000  5 2  PCMCIA  Windows Me 9x  5 8  PCMCIA  Windows NT  5 16  PXI  Windows 2000  3 2  PXI  Windows Me 9x  3 9  PXI  Windows NT  3 16  USB  Windows 2000  4 2  overview  AT  1 8  PCI  1 3  PCMCIA  1 7  PXI  1 4  USB  1 6    selecting an interface to uninstall  figure     AT  Windows 2000  C 19   AT  Windows Me 9x  C 21   AT  Windows NT  C 23   PCI  Windows 2000  C 2  D 2   PCI  Windows Me 9x  C 4   PCI  Windows NT  C 6   PCMCIA  Windows 2000  C 14   PCMCIA  Windows Me 9x  C 16   PCMCIA  Windows NT  C 18   PXI  Windows 2000  C 8   PXI  Windows Me 9x  C 10   PXI  Windows NT  C 11  support for SDLC and ModBus   protocols  D 24        National Instruments Corporation    Index    uninstalling  AT  Windows 2000  C 19  AT  Windows Me 9x  C 20  AT  Windows NT  C 22  PCI  Windows 2000  C 2  PCI  Windows Me 9x  C 3  PCL  Windows NT  C 5  PCMCIA  Windows 2000  C 13  PCMCIA  Windows Me 9x  C 15  PCMCIA  Windows NT  C 17  PXL  Windows 2000  C 7  PXI  Windows Me 9x  C 9  PXI  Windows NT  C 11  using  7 1  using USB  Ethernet  and plug in  hardware on same machine  D 26  using USB  Ethernet  and plug in  hardware simultaneously  D 26  serial hardware features  table   7 2  serial port information  B 1  serial ports  maximum number  D 26  serial ports  sending data to when closed  D 24  serial software  installation  Windows 2000  2 1  3 1  4 1   5 1  6 1  Windows Me 9x  2 9  3 9  5 8  6 9  Windows NT  2 17  3 16  5 15  6 18  overview  1 9  uninstalling 
75. Instruments Corporation 2 19 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Configure Communication Port Settings    The serial configuration utility is fully integrated into the Windows NT  Control Panel  You can use it to view or change the configuration of your  serial ports     To configure a serial port  complete the following steps     1  Select Start  Settings   Control Panel and double click the niports  icon  A list of installed National Instruments ports appears  as shown  in Figure 2 10        National Instruments   Ports EG    Ports            NI PC 232 4           COMS              COMS  N I  PCI  Em    COME  N I  PCI 232 4 Seling      g Delete            Add a New PCMCIA card      PCMCIA 485 bd   Add                        Figure 2 10  niports Configuration Utility    2  Select the port that you want to configure and refer to the following  instructions     e To remove hardware information about the port from  Windows NT  click the Delete button  You should do this before  you remove your hardware     e To view or change the port settings  click the Settings button   For more information about the settings  refer to the next section   General Port Settings       In the General Port Settings dialog box  click the Resources  button to view the resources for the port     NI Serial Hardware and Software for Windows 2 20 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  a
76. NI Serial    Serial Hardware and Software for  Windows User Manual    PCI  PXI  USB  PCMCIA  and AT  Serial Hardware    Wy NATIONAL January 2003 Edition   gt  INSTRUMENTS Part Number 370447B 01    Worldwide Technical Support and Product Information    ni com    National Instruments Corporate Headquarters  11500 North Mopac Expressway Austin  Texas 78759 3504 USA        512 683 0100    Worldwide Offices    Australia 61 2 9672 8846  Austria 43 0 662 45 79 90 0  Belgium 32 0 2 757 00 20  Brazil 55 11 3262 3599   Canada  Calgary  403 274 9391  Canada  Montreal  514 288 5722  Canada  Ottawa  613 233 5949    Canada  Qu  bec  514 694 8521  Canada  Toronto  905 785 0085  Canada  Vancouver  514 685 7530    China 86 21 6555 7838  Czech Republic 42 02 2423 5774  Denmark 45 45 76 26 00    Finland 385 0 9 725 725 11  France 33 0 1 48 14 24 24  Germany 49 0 89 741 31 30  Greece 30 2 10 42 96 427   Hong Kong 2645 3186  India 91 80 4190000  Israel 972 0 3 6393737  Italy 39 02 413091    Japan 81 3 5472 2970  Korea 82 02 3451 3400  Malaysia 603 9059 6711  Mexico 001 800 010 0793   Netherlands 31 0 348 433 466  New Zealand 64 09 914 0488  Norway 47 0 32 27 73 00    Poland 48 0 22 3390 150  Portugal 351 210 311 210  Russia 7 095 238 7139  Singapore 65 6 226 5886   Slovenia 386 3 425 4200  South Africa 27 0 11 805 8197  Spain 34 91 640 0085  Sweden 46 0 8 587 895 00   Switzerland 41 56 200 51 51  Taiwan 886 2 2528 7227  United Kingdom 44 0 1635 523545    For further support information  see the T
77. OID  NULL  0    PVOID   amp serial ri out  sizeof serial ri out     amp bytecount   NULL  ys    5  To set the RS 232 signal DCD when the transceiver is in DCE mode   use the following code     ULONG bytecount     DeviceloControli    comhandle   NISERIAL SET DCD    PVOID  NULL  0    PVOID  NULL  0    amp bytecount   NULL        g    6  Toclearthe RS 232 signal DCD when the transceiver is in DCE mode   use the following code     ULONG bytecount    DeviceloControli    comhandle   NISERIAL CLR DCD    PVOID  NULL  0    PVOID  NULL  0    amp bytecount   NULL       E    NI Serial Hardware and Software for Windows 7 16 ni com    Chapter 7 Using Your Serial Hardware    7       retrieve the current state of the RS 232 signal DCD when  the transceiver is in DCE mode  use the following code     SERIAL DCD OUT serial        out   ULONG bytecount   DeviceloControl    comhandle   NISERIAL GET DCD    PVOID  NULL  0    PVOID   amp serial        out   Sizeof serial        out     amp bytecount   NULL    Status LEDs       The USB Serial two  and four port hardware uses bicolor LEDs to indicate  device and port status  Table 7 6 describes these LEDs  Figure 7 3 shows  their location     Table 7 6  USB Serial LEDs       LED Description          Ready Dim Red    Powered  but not connected to USB   USB 485 4 only     Red    Powered and connected to USB  but not fully  configured    Yellow    Device is ready  normal operation     Blinking Red or Red Yellow    Device error  Contact NI        Port x S
78. OMI  COM2  COM3                 change the  base address of the port  To do so  refer to the Troubleshooting Diagnostic  Messages section     When you change the base address  Windows Me 9x automatically  converts it to the corresponding COM name listed in Table D 1  You do not  need to change the IRQ setting for Windows Me 9x to change the name   USB ports do not have base addresses and thus cannot be renamed to  COMI        2  CONG                    Table 0 1  Standard DOS Based Addresses                         COM Port Base Address  COMI 3f8  COM2 2f8  COM3 3e8  COM4 2e8             All Other Operating Systems    Refer to the general port settings section in the installation and verification  chapter for your hardware platform     NI Serial Hardware and Software for Windows D 20 ni com    Appendix D Troubleshooting and Common Questions    What is the maximum baud rate supported and how can I set it     The maximum baud rates supported are listed in Table D 2  To set the baud  rate  use the SetCommState Win32 function and pass the actual value of  the baud rate in the BaudRate field of the DCB structure     Table D 2  Maximum Baud Rate                         Hardware Platform Maximum Baud Rate  PCI PXI AT 232  PCMCIA 232 4 115 2 kbits s  All other PCMCIA 921 6 kbits s  AT 485 115 2 kbits s  USB 232 230 4 kbits s  PCI PXI USB 485 460 8 kbits s                Older versions of the serial hardware may support lower maximum baud  rates  The NI Serial software also includes a
79. ONG SERIAL CONNECTION    define SERIAL CONNECTION INVALID 0x00   define SERIAL CONNECTION VALID 0x01    typedef struct SERIAL RS232 STATE    TRANSCEIVER MODE PortMode   SERIAL CONNECTION Connection      SERIAL RS232 STATE  PSERIAL RS232 STATE         define NISERIAL GET RS232 STATE  CTL CODE FILE DEVICE SERIAL PORT   4082 METHOD BUFFERED FILE ANY ACCESS        2  To retrieve the current RS 232 transceiver state  use  NISERIAL GET RS232 STATE and DeviceloControl with  the following code     ULONG bytecount    SERIAL RS232 STATE serial rs232 state    DeviceloControl   comhandle   NISERIAL GET RS232 STATE    PVOID  NULL  0O    PVOID   amp serial rs232 state   sizeof serial rs232 state     amp bytecount   NULL         Setting Ring Indicate and DCD with DeviceloControl    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for programming the RS 232 signals  Ring Indicate  RI  and Data Carrier Detect  DCD   To set and retrieve these  RS 232 signals  complete the following steps          Note You        use the header file NISerial h  included on your CD  to integrate this  code into your program easily     NI Serial Hardware and Software for Windows 7 14 ni com       National Instruments Corporation    Chapter 7 Using Your Serial Hardware    Add the following lines to your source code      include   winioctl h    typedef bool SERIAL RI OUT      define SERIAL RI ON true   define SERIAL RI OFF false  typedef bool SERIAL DCD OUT     define
80. P       23    2v Ett rp etie cet a e pd REED A      3 1  Install the Softw  te        iiie teet evite ret resi ei          3 1  Install the Hardware             retener eerie 3 2  Verify the Installation                 na naa                   3 4  Configure Communication Port Settings                     essen 3 5  Windows Me 9x     43 36 sedi c destin silence                   EE e dt es 3 9  Install the Softwa  re      2 ient ter ree tei eet etes 3 9  Install the Hardwate              2 eite tete etr                    3 9  Verify the Installation                            etg edes t tne 3 11  Configure Communication Port Settings                      esse 3 13  Windows NT  iion titii tert e e B i e preste deed 3 16  Install the SoftWare o e ed ne eee ente e IIR erts 3 16  Install the Hardware    etae ete er e ete Rd dee 3 16  Verify the Installation    ei de v e e ER E EAR 3 18  Configure Communication Port Settings                      eene 3 19  Chapter 4  USB Serial Hardware Installation  Verification  and Configuration  Install the Software                           ane rre REN Pe E 4 1  Install the Hardware    nei ce ag e de reb ettet g ees 4 2  Verity the  Installation a  5 5 0 5 tei aro dr ere n Rete dern rne RE 4 2  Configure Communication Port Settings                    seen 4 3  Port Settings  Tab    eR teet t eA es ree  4 4  Advanced  Settings    e et ee at e wt eet 4 5  Restore  Defaults    eere ted ate Rit 4 6  Chapter 5  PCMCIA Serial Hardware Installatio
81. PCI serial port that  you want to uninstall     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     3  Select the NI Serial software you want to uninstall  and click the  Add Remove button  The uninstallation program removes all folders   utilities  and registry entries associated with the NI Serial software     4  Shutdown Windows NT  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     NI Serial Hardware and Software for Windows C 6 ni com    Appendix C Uninstalling the Hardware and Software    To reinstall the hardware and software  refer to Chapter 2  PCI Serial  Hardware Installation  Verification  and Configuration     PXI Hardware    Windows 2000       Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so
82. PXI or  CompactPCI chassis plugged in so that it remains grounded while  you install the PXI serial board     Find an unused PXI or CompactPCI 5 V peripheral slot   Remove the corresponding filler panel     Touch a metal part on your chassis to discharge any static electricity     aN a      po    Insert the PXI serial board into the 5 V slot  Use the injector ejector  handle to fully inject the device into place  Figure 3 9 shows how to  install the PXI serial board into a PXI or CompactPCI chassis                                1 Injector Ejector Handle  In Down Position  3 PXI Chassis  2 PXI Serial Board 4 Injector Ejector Rail             Figure 3 9  Installing the PXI Serial Board        National Instruments Corporation 3 17 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    6  Screw the PXI serial board front panel to the front panel mounting rail  of the PXI or CompactPCI chassis     7   Turn on your PXI or CompactPCI chassis and start Windows NT     The serial hardware installation is complete     Verify the Installation    To verify the hardware and software installation  complete the following  steps     1  Determine which physical port is associated with COMx  as follows     a  Select Start  Settings  Control Panel and double click the  niports icon     A list of installed National Instruments ports with their logical           names appears  If your interface is not on this list  refer to  A
83. Port  COM10     d N I  AT 232 4  Shared IRQ  Communications Port  COM    E N I  AT 232 4  Shared IRQ  Communications Port  COM8   wv N I  AT 232 4  Shared IRQ  Communications Port  COMS   R   N I  AT 485 2 Communications Port        5      N I  AT 485 2 Communications Port  COME          Mane moa             reu IU    Properties   Refresh   Remove   Print                                                  Figure D 4  Multi Function Adapter Class in the Device Manager          What is the relationship between bits per second  throughput  and bus  utilization     The term bits per second  bps  refers to the bit rate of data transfer  with  1 bps being the length of time required to transmit one bit     Throughput is the actual data transfer measured by    amount of data transmitted  time required to transmit    Bus utilization is the percentage of time that the serial bus is actively  transmitting data  Because a wide range of factors such as flow control   processor latency  and device architecture can affect serial performance   bus utilization often is not 100   In addition  there is overhead associated  with serial communication in the form of start bits  stop bits  and parity bits   This overhead reduces the throughput by 20 30   Thus  the actual data  throughput can be considerably less than the bits per second setting        National Instruments Corporation D 23 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    What is the
84. SET RS485 MODE 15      define SERIAL IOCTL SET TRANSCEIVER MODE CTL CODE   FILE DEVICE SERIAL PORT 37 METHOD BUFFERED FILE ANY ACCESS            National Instruments Corporation    To retrieve the current RS 485 transceiver control mode  you can  use NISERIAL GET RS485 MODE and DeviceloControl with the  following code     ULONG bytecount   TRANSCEIVER MODE transceiver mode   DeviceloControl    comhandle   NISERIAL GET RS485 MODE    PVOID  NULL  0    PVOID   amp transceiver mode   sizeof  transceiver mode     amp bytecount   NULL    7 7 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    Bias Resistors       An RS 485 transmission line enters an indeterminate state if no nodes are  transmitting on it  This indeterminate state can cause the receivers to  receive invalid data bits from noise picked up on the cable  To prevent a line  from receiving these data bits  the transmission line can be forced into a  known state by installing two bias resistors at one node on the transmission  line  Doing so creates a voltage divider that forces the voltage between the  differential pair to be greater than 200 mV  the threshold voltage for the  receiver  You should install these resistors on only one node     Figure 7 1 shows a transmission line using bias resistors         5    E 620 Q  Bias Resistor       Bx E 100 Q  Termination Resistor       620 Q  Bias Resistor    V                Figure 7 1  Transmission Line Using Bias Resistors    On the PCI RS 
85. Shutdown Windows Me 9x  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 2  PCI Serial  Hardware Installation  Verification  and Configuration     Windows NT  Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so  complete the following  steps     l  Loginas Administrator oras a user who has Administrator  privileges    2  Select Start  Settings   Control Panel and double click the  niports icon     3  From the Ports list  select the port of the board you want to uninstall   as shown in Figure C 3         National Instruments Corporation C 5 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software       National Instruments   Ports xi    Ports           7  N L PCI 232 4                        8  N I  PCI 232 4  COMS  N I  PCI 232 4    COME  N I  PCI 232 4 Settings          Delete               Add a New PCMCIA card      PCMCIA 485      Add                     Figure C 3  Selecting an Interface to Uninstall    4  Click the Delete button     5  Repeat steps 3 and 4 until you have removed every 
86. _Defauts    Receive Buffer  Low 1        J     High  14     Transmit Buffer Low 1               High  16                       Figure 5 8  Advanced Port Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    This field shows the transceiver mode in use  and applies only to  PCMCIA 485 boards  For more information about transceiver modes   refer to Chapter 7  Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e If transfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes     NI Serial Hardware and Software for Windows 5 14 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configura
87. al Hardware     All serial hardware uses standard 16550 compatible UARTs  Universal  Asynchronous Receiver Transmitters  for complete compatibility   with standard PC COM ports  The serial hardware contains FIFOs   First In First Out  buffers to reduce susceptibility to interrupt latency  for faster transmission rates  Full Plug and Play compatibility allows  switchless configuration and installation  For more information about  the serial hardware specifications and operating conditions  refer to  Appendix E  Specifications     NI Serial Hardware and Software for Windows 1 8 ni com    Chapter 1 Introduction    NI Serial Software Overview    The NI Serial software for Windows 2000 NT XP Me 9x includes either a  native Windows 2000 XP Me 9x device driver and Windows NT kernel  driver that provide full interrupt driven  buffered I O for multiple plug in  COM ports  or a native Windows 2000 XP device driver that provides  buffered I O for multiple USB COM ports  The maximum baud rates and  maximum number of COM ports vary between hardware and operating  systems  as shown in Table 1 2 and Table 1 3        Table 1 2  Maximum Number of COM Ports                         Operating Maximum Number of Maximum Number  System COM Ports  Plug In  of COM Ports  USB   Windows 95 99      Windows 98 99      Windows Me 99      Windows NT 99      Windows 256 256  2000 XP                   If you require additional ports  contact National Instruments     Table 1 3  Maximum Baud Rate              
88. all serial board entries are removed  Then click  Refresh to force Windows Me 9x to detect the serial hardware and display  the New Hardware Found dialog box     Windows NT  Missing Serial Port in the niports List  PCI and PXI Boards    The serial configuration utility contains configuration information for  serial hardware that is installed in your system     To start the configuration utility  select Start  Settings   Control Panel  and double click the niports icon     NI Serial Hardware and Software for Windows D 12 ni com    Appendix D Troubleshooting and Common Questions    If your PCI or PXI serial hardware is missing from this list  complete the  following steps     1  Physically make sure that your board is installed properly     2  Make sure that the National Instruments serial driver is installed   as follows     a  Locate serial sys in the WinNT system32 drivers  directory     b  Right click serial  sys and select Properties     c  Click the Version tab  If the Company Name is Microsoft   the National Instruments serial driver is not installed properly   To solve this problem  reinstall the NI Serial software   For instructions on how to do so  refer to the installation and  verification chapter for your hardware platform     AT Boards    The serial configuration utility niports contains configuration information  for serial hardware it is aware of that is installed in your system     To start the configuration utility  select Start  Settings  Control Panel   and 
89. alled properly  If it fails  refer to Appendix D   Troubleshooting and Common Questions  for troubleshooting instructions     After you verify the hardware and software installation  connect the cables   Refer to Appendix A  Connector Descriptions  for information about cable  connections     Configure Communication Port Settings    The serial configuration utility is fully integrated into the Windows Me 9x  Device Manager  You can use it to view or change the configuration of  your serial ports     Complete the following steps to configure the serial port  Repeat the  configuration procedure for each serial port in your system     1  Select Start  Settings  Control Panel and double click the  System icon  The System Properties window appears     2  Select the Device Manager tab  and click the View devices by type  button at the top of the page     NI Serial Hardware and Software for Windows 6 14 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Double click the Ports  COM  amp  LPT  icon   Double click the name of the port you want to configure     You can now view or change information about your serial port in the  following ways     e To view the hardware resources assigned to the serial port  click  the Resources tab     e To view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e To change the RS 485 transceiver mode  or to enable or
90. anel and double click the  System icon  Click the Hardware tab and then click the Device  Manager button or select the Device Manager tab     Double click the Ports  COM  amp  LPT  icon to display all ports  Verify  that all installed ports are visible     NI Serial Hardware and Software for Windows 4 2 ni com    Chapter 4 USB Serial Hardware Installation  Verification  and Configuration       REE    Action View je                 E   Network adapters        Ports  COM  amp  LPT      Communications Port  COM1      Communications Port  COM2        ECP Printer Port  LPT1   F N I  USB 485 4 SN CECCO6  Communications Port 1  COM14      N I  USB 485 4 SN CECCO6  Communications Port 2  COM15   E N I  USB 485 4 SN CECCO6  Communications Port 3  COM16      N I  USB 485 4 SN CECCO6  Communications Port 4  COM17        SCSI and RAID controllers    Sound  video and game controllers  m System devices                                0 4    8 8       E     Le             Figure 4 1  Device Manager for USB Serial Board Ports     Optional  To determine which physical port is associated with COMx   note the Port 1  Port 2  etc  entries next to the COM numbers     To run the diagnostic utility  select Start  Programs  National  Instruments  NI Serial   USB  Diagnostics     The diagnostic utility verifies that your software is installed properly  and that the serial driver can communicate with your hardware  correctly     If the test is successful  your serial hardware and software are installed
91. ar jack to DB 25 cable  PCI  PXI  and AT four port  boards only     e  68 pin to DB 9 adapter cable  PCI and PXI eight port boards only   e   RS 232 9 pin to 9 pin null modem cable   e  RS 232 9 pin to 9 pin straight through cable   e RS 232 9 pin to 25 pin null modem cable   e RS 485 9 pin to 9 pin null modem cable   e Breakout box  PCI PXI 232 16 port board only    e External power supply  USB 485 4 only    e USB cable  USB only     Serial Hardware Overview       PCI Kits    The serial hardware gives you a variety of solutions for serial  communication  The PCI 232 boards work with the RS 232 protocols  and  the PCI 485 boards work with the RS 422 and RS 485 protocols  You can  use the PCI 232 boards for serial communication up to distances of 50 ft   You can connect the PCI 485 boards to up to 31 devices using serial cable  lengths up to 4 000 ft     Additionally  the PCI serial boards are available in a two port version   PCI 232 2 and PCI 485 2   a four port version  PCI 232 4 and  PCI 485 4   an eight port version  PCI 232 8 and PCI 485 8   and a  16 port version  PCI 232 16   The two port versions use DB 9 connectors   The four port versions use 10 position modular jacks to provide all four  connections on a single back panel  Optional cable accessories convert  the 10 position modular jacks to either DB 9 or DB 25 connectors with  standard pinouts  The eight port versions use adapter cables to convert  the 68 pin connector on the board to eight DB 9 connectors  The 16
92. ards are designed for applications in harsh  environments  Isolated ports provide reliable communication in situations  involving ground loops from different ground levels or high common mode  voltage induced on the lines in noisy environments  Nonisolated ports may  not provide reliable communication in those situations  The isolation  between each communication port and the host PC ensures the safe  operation of the PC and the devices connected to other ports on the same  board  in case of accidental high voltages on communication lines     The RS 485 boards  PXI 8421 and PXI 8423  support four hardware  transceiver control modes for reliable communication with two  and  four wire devices  For more information about transceiver control modes   refer to Chapter 7  Using Your Serial Hardware     All serial hardware uses standard 16550 compatible UARTs  Universal  Asynchronous Receiver Transmitters  for complete compatibility   with standard PC COM ports  The serial hardware contains FIFOs   First In First Out  buffers to reduce susceptibility to interrupt latency  for faster transmission rates  Full Plug and Play compatibility allows  switchless configuration and installation  For more information about  the serial hardware specifications and operating conditions  refer to  Appendix E  Specifications         National Instruments Corporation 1 5 NI Serial Hardware and Software for Windows    Chapter 1 Introduction    Table 1 1 lists the PXI serial board numbers and correspondi
93. ardware  complete the following steps to   install the NI Serial software for Windows 2000 XP    1  Select Start  Settings  Control Panel    2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears    3  Click the Add New Programs button and then the CD or Floppy  button    4  When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button    5  When prompted  click the Finish button to install the program files  from the CD     6  The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     7  Ifyou need to install your hardware  or if this is your first time to install  the NI Serial software for Windows 2000 XP  skip to the next section   Install the Hardware  Otherwise  continue to step 8         National Instruments Corporation 5 1 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    8  Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish  When you complete  the wizard  continue to the Verify the Installation section     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     I
94. are for Windows    Appendix B Serial Port Information    RS 422    distances of 50 ft and with data rates up to 20 kbytes s  However  because  of improvements in line drivers and cabling  you can usually increase the  actual performance of the bus past the limitations on speed and distance  recommended in the specification        RS 485    As specified in the EIA RS 422 A Standard  Electrical Characteristics  of Balanced Voltage Digital Interface Circuits  RS 422 defines a serial  interface much like RS 232  However  RS 422 uses balanced    or differential  transmission lines  Balanced transmission lines use   two transmission lines for each signal  The state of each signal is  represented  not by a voltage level on one line referenced to ground as in  RS 232  but rather by the relative voltage of the two lines to each other   For example  the TX signal is carried on two wires  wire A and wire B    A logical 1 is represented by the voltage on line A being greater than the  voltage on line B  A logical 0 is represented by the voltage on line A being  less than the voltage on line B  Differential voltage transmission creates a  signal that is more immune to noise as well as voltage loss due to  transmission line effects  Thus  you can use RS 422 for longer distances   up to 4 000 ft  and greater transmission speeds  up to 10 Mbytes s    than RS 232        As specified in the EIA 485 Standard  Standard for Electrical  Characteristics of Generators and Receivers for Use in Balanc
95. assis to discharge any static electricity     Insert the AT serial board into the slot with the serial connectors toward  the opening on the back panel  Make sure that you insert the board all  the way into the slot  The board might seem to click firmly into place   even though it is only part of the way in  Figure 6 1 shows how to  install the AT serial board into an expansion slot     NI Serial Hardware and Software for Windows 6 2 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration            2   2    Z        P    1 PC 2 AT Socket 3 AT Serial Card                             Figure 6 1  AT Serial Board Installation    7  Screw the AT serial board mounting bracket to the back panel  mounting rail of the computer     Replace the cover   Turn on your computer and start Windows 2000 XP     10  Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete     Verify the Installation    To verify the hardware and software installation  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Click the Hardware tab and then click the Device Manager button        Natio
96. ated  Communications Port 4  COM156        Printer Port  LPT1     g  Sound  video and game controllers  n System devices                         Scan for hardware changes                               Figure D 1  Selecting an Interface to Uninstall    NI Serial Hardware and Software for Windows D 2 ni com    Appendix D Troubleshooting and Common Questions    5  Choose the Uninstall option     6  Inthe Confirm Device Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     7  Click the Scan for Hardware Changes icon at the top of the Device  Manager window     8  Windows 2000 should automatically detect your hardware and display  the Found New Hardware Wizard  Complete the wizard by clicking  Next in each window and then Finish     Troubleshooting Diagnostic Messages    This section lists possible error messages returned by the diagnostic utility   along with solutions     No National Instruments Serial Port Found or  Diagnostic Utility Does Not Show All Installed Ports    Ifthe No National Instruments serial port found error message  appears or the diagnostic utility does not show all the ports you installed   complete all the steps in the Forcing Windows to Detect Your Hardware  section     Address Test Failed    If the address test failed  Interrupt test cannot be  performed error message appears  you might have an address conflict  with legacy boards in your system  To solve this problem  change the
97. atic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     To install your PXI serial board  complete the following steps     1                            Turn off your PXI or CompactPCI chassis  Keep the chassis plugged  in so that it remains grounded while you install the PXI serial board     Find an unused PXI or CompactPCI 5 V peripheral slot   Remove the corresponding filler panel   Touch a metal part on your chassis to discharge any static electricity     Insert the PXI serial board into the 5 V slot  Use the injector ejector  handle to fully inject the device into place  Figure 3 1 shows how to  install the PXI serial board into a PXI or CompactPCI chassis     NI Serial Hardware and Software for Windows 3 2 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration                         1 Injector Ejector Handle  In Down Position  3 PXI Chassis  2 PXI Serial Board 4 Injector Ejector Rail             Figure 3 1  Installing the PXI Serial Board  6  Screw the PXI serial board front panel to the front panel mounting rail  of the PXI or CompactPCI chassis   7   Turn on your PXI or CompactPCI chassis and start Windows 2000 XP     Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish     If the Found New Hardware Wizard does not appear
98. ation about  transceiver modes  refer to Chapter 7  Using Your Serial Hardware     5       save your changes  click the OK button  To exit without saving the  changes  click the Cancel button     Port Settings Tab    In the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 3 7 shows the Port Settings tab        PXI 8422  Isolated RS 232  4 Ports  COM5  Properties  EJ E3      Driver   Resouces                          Figure 3 7  Port Settings Tab    NI Serial Hardware and Software for Windows 3 14 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Advanced Port Settings    To view or change the advanced port settings  click the Advanced button   Figure 3 8 shows the Advanced Port Settings dialog box           Advanced Port Settings   x    Transceiver Mode   wire     4 wire  2 wire DTR echo OK  2 wire        ctrl              Use FIFO buffers ae Tet      Cancel    Select lower settings to correct connection problems   Select higher settings for faster performance  __Defauits    Receive Buffer  Low  1          R   High  14   Transmit Buffer  Low  1                High  16                    Figure 3 8  Advanced Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    This field shows the tran
99. ation and installation  For more information about  the serial hardware specifications and operating conditions  refer to  Appendix E  Specifications     PXI Kits    The serial hardware gives you a variety of solutions for serial  communication  The RS 232 boards  PX1 8420 and PXI 8422  work with  the RS 232 protocols  The RS 485 boards  PXI 8421 and PXI 8423  work  with the RS 422 and RS 485 protocols  You can use the RS 232 boards for  serial communication up to distances of 50 ft  You can connect the RS 485  boards to up to 31 devices using serial cable lengths up to 4 000 ft     NI Serial Hardware and Software for Windows 1 4 ni com    Chapter 1 Introduction    Additionally  the PXI serial boards are available in a two port version  a  four port version  an eight port version  PXI 8420 and PXI 8421 only    and a 16 port version  PXI 8420 only   The two port versions use DB 9  connectors  The four port versions use 10 position modular jacks to  provide all four connections on a single front panel  Optional cable  accessories convert the 10 position modular jacks to either DB 9 or DB 25  connectors with standard pinouts  The eight port versions use two different  adapter cables to convert the 68 pin connector on the board to eight DB 9  connectors  The 16 port version uses a breakout box to convert the 100 pin  connector on the board to sixteen DB 9 connectors  Throughout this  manual  PXI serial boards refers to all versions of the PXI serial boards     The isolated PXI bo
100. bly from speed shown due to system and instrumentation capabilities        National Instruments Corporation E 7 NI Serial Hardware and Software for Windows    Appendix E Specifications         connector                                       9  USB                                                            USB series       Power requirement  from USB channel     USB 485 2   9  VDO iege 300 mA typical  500 mA maximum  USB 232 2   5        200 mA typical  500 mA maximum  USB 232 4  T5 MDC  eet terere 300 mA typical    500 mA maximum    Power requirement  from external supply   USB 485 4  9 V   30V     12 MDC ure 225 mA typical  500 mA maximum    Environmental Characteristics  Operating environment  Ambient temperature                         0 to 70   C  Relative humidity                              10 to 90   noncondensing    Storage environment    Ambient temperature    One pott    nete    40 to 80   C  Two and four port                         40 to 85       Relative humidity                              5 to 9596  noncondensing  EMIL  ie tiene eee us FCC Class A Verified    Software Characteristics  Maximum serial transfer rate                          eret 460 800 bps  RS32325 oM sept eto 230 400 bps       1 Actual speed may vary considerably from speed shown due to system and instrumentation capabilities     NI Serial Hardware and Software for Windows E 8 ni com    Appendix E Specifications    PCMCIA Serial Hardware       Hardware Specifications    DIMENSIONS As  genaue 8
101. board      Optional  To determine which physical port is associated with COMx   complete the following steps     a     In the Device Manager tab  under Ports  COM  amp  LPT    double click the serial port  COMx      Click the Port Settings tab to display the serial number of the  serial hardware and the physical port number starting at 1  For all  serial hardware  PORT refers to the top port  PORT2 refers to the  next port down  and so on     2 13 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    To run the diagnostic utility  select Start  Programs  National  Instruments Serial  Diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Communication Port Settings    The serial configuration utility is fully integrated into the Windows Me 9x  Device Manager  You can use it to view or change the configuration of  your serial port
102. board documentation     Interrupt Test Failed    Ifthe Interrupt test failed error message appears  you might have  an IRQ conflict with legacy boards in your system  To solve this problem   change the IRQ level assigned to your legacy boards  For instructions on  how to do so  refer to your legacy board documentation        Windows 2000 XP    Resolving Power Conflicts    The USB 232  USB 232 2  USB 232 4  USB 485  and USB 485 2 are  high power bus powered devices that require more than 100 mA during  normal operation  Thus  they must be plugged into an externally powered  hub that can deliver up to 500 mA per USB port  If the USB network does  not have enough power to support the USB serial hardware  and a system  dialog box informs you that there is not enough power for the device   reconnect the hardware to an externally powered hub     The USB 485 4 is a self powered device that requires external power  If the  device is plugged into a USB port  and the device does not have power    it will not enumerate and the ports will not show in the Device Manager   To ensure proper port enumeration  always make sure the USB 485 4 has  external power before connecting it to the USB network     NI Serial Hardware and Software for Windows D 16 ni com    Appendix D Troubleshooting and Common Questions    Forcing Windows to Detect Your Hardware    If the diagnostic utility does not properly show your serial ports  there may  have been a problem loading the NI Serial  USB  drivers  To so
103. button    4  When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button    5  When prompted  click the Finish button to install the program files  from the CD     6  The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     7  Ifyou need to install your hardware  or if this is your first time to install  the NI Serial software for Windows 2000 XP  skip to the next section   Install the Hardware  Otherwise  continue to step 8         National Instruments Corporation 2 1 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Install the Hardware    If your hardware is already installed  restart Windows 2000 XP     Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish  When you complete  the wizard  continue to the Verify the Installation section     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions         Note If you are installing a PCI 485  you might need to adjust the value of the bias  resistors  depending on your application  Bias resistors are not available on the eight port  PCI 485  For more information 
104. changes  are automatically reflected to the child devices under Ports   COM  amp  LPT       Windows Me 9x Only  AT and PCMCIA Boards    Because the shared IRQ boards are single physical devices that support  multiple ports  they are registered as multi function adapters in the Device  Manager  Each port is a child device listed under Ports  COM  amp  LPT    Windows Me 9x does not allow the resources of the multi function child  devices to be changed directly     To change the resources of ports on shared IRQ boards from within the  Device Manager  you must open the Multi function adapters class and  double click 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 4 shows the Multi function adapters class in the  Device Manager   This example shows an AT interface      NI Serial Hardware and Software for Windows D 22 ni com    Appendix D Troubleshooting and Common Questions       System Properties   21 x     General Device Manager   Hardware Profiles   Performance        View devices by type    View devices by connection    UB Monitor  4  Mouse                   x   Multifunction adapters   gt  N I AT 232 4 Multi function Parent   BY Network adapters      PCMCIA socket         Ports  COM  amp  LPT   I Communications Port  COM1   wv Communications Port  COM2      i N I  AT 232 4  Shared IRQ  Communications 
105. ck when the PC is interrupted to write the data  When you configure  FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e   ftransfer rates are high  you can lower the Receive FIFO size value  to prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive FIFO size value  is above your data sizes  your system is less efficient  Therefore  set the  Receive FIFO size value below your data sizes     Resources    To view the resource configuration dialog box for the selected port  click  the Resources button  You cannot change these resources  they are  automatically assigned     NI Serial Hardware and Software for Windows 2 22 ni com       PXI Serial Hardware  Installation  Verification  and  Configuration    This chapter describes how to install the NI Serial software and PXI serial  hardware and how to verify the installation  It also describes how to view  or change the communication port settings     To begin your installation  see the section of this chapter containing  instructions for your operating system  Windows 2000 XP   Windows Me 9x  or Windows NT      Windows 2000 XP       Install the Software   Before you install your serial hardware  complete the following steps to   install the NI Serial software for Windows 2000 XP    1  Select Start  Settings  Control Panel    2  Double click th
106. complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     3  Select NI Serial and click the Change Remove button  The  uninstallation program removes all folders  utilities  and registry  entries associated with the NI Serial software     4  Shutdown Windows 2000  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 5  PCMCIA Serial  Hardware Installation  Verification  and Configuration     Uninstall the Hardware    Before physically removing the serial hardware  you must remove the  hardware information from the Windows Me 9x Device Manager     Complete the following steps to uninstall the hardware     1  Double click the System icon under Start  Settings  Control Panel   The System Properties dialog box appears     2  Select the Device Manager tab   3  Click the View devices by type button   4  Double click the Ports  COM  amp  LPT  icon     NI Serial Hardware and Software for Windows C 20 ni com    Appendix C Uninstalling the Hardware and Software    5
107. connector pin descriptions   table   A 9  68 pin connector pin descriptions   figure   A 6  68 pin connector pin descriptions   table   A 7  connector  A 2  pin descriptions  table   A 2  pin locations  figure   A 2  Declaration of Conformity  F 1  default restoration  2 9  2 17  3 9  3 16  4 6   5 8  5 15  6 9  determining port associated with COMx  Windows 2000  D 19  Windows Me 9x  5 11  6 14  Windows NT  5 17  6 21  determining type of serial hardware installed  Windows 2000  D 19  determining version of NI Serial software  installed  Windows 2000  D 19  development tools for saving time  1 10  Device Manager for AT serial board ports   figure   6 4  6 13  Device Manager for PCI serial board ports   figure   2 4  2 13  Device Manager for PCMCIA serial card ports   figure   5 4  5 10  Device Manager for PXI serial board ports   figure   3 4  3 12  Device Manager for USB serial board ports   figure   4 3  Device Manager ports list  figure   D 10  D 12  DeviceloControl  7 6  7 10  7 12  7 13  enabling disabling bias resistors  with  7 10  retrieving RS 232 transceiver mode  with  7 13          National Instruments Corporation    Index    setting RS 232 transceiver mode  with  7 12  setting RS 485 transceiver mode with  7 6  diagnostic messages  address test failed  Windows 2000  D 3  Windows Me 9x  D 8  Windows NT  D 16  diagnostic utility does not show all  installed ports  Windows Me 9x  D 8  Windows NT  D 15  interrupt test failed  Windows 2000  D 3  Windows Me 9x  D 8  W
108. control mode  7 5  RS 485 standard  B 2  features  table   B 1  RS 485 termination  B 4  RS 485 transceiver control  7 4  four wire mode  7 4  two wire mode  auto control  7 5    NI Serial Hardware and Software for Windows 1 8    two wire mode  DTR controlled  7 4  two wire mode  DTR with Echo  7 4  RS 485 transceiver control modes  table   7 4   RS 485 transceiver mode  setting with DeviceloControl  7 6  running the diagnostic test  AT  Windows Me 9x  6 14  AT  Windows NT  6 21  PCMCIA  Windows Me 9x  5 11  PCMCIA  Windows NT  5 18    S    SDLC protocol  serial support for  D 24  selecting an interface to uninstall  figure   AT  Windows 2000  C 19  AT  Windows Me 9x  C 21  AT  Windows NT  C 23  PCI  Windows 2000  C 2  D 2  PCL  Windows Me 9x  C 4  PCI  Windows NT  C 6  PCMCIA  Windows 2000  C 14  PCMCIA  Windows Me 9x  C 16  PCMCIA  Windows NT  C 18  PXI  Windows 2000  C 8  PXI  Windows Me 9x  C 10  PXI  Windows NT  C 11  selecting conflict free resources  D 5  selecting resources for the PCMCIA  card  5 16  serial communication issues  B 3  bias resistors  7 8  B 5  duplex architectures  B 3  RS 232 DTE vs  DCE  B 6  RS 485 termination  B 4  serial hardware  accessing from non Windows  platform  D 25  advanced features  7 1    ni com    forcing Windows to detect  Windows 2000  D 2  Windows Me 9x  D 9  general programming requirements  7 1  installation  AT  Windows 2000  6 2  AT  Windows Me 9x  6 10  AT  Windows NT  6 19  PCI  Windows 2000  2 2  PCI  Windows Me 9x  2 10  PC
109. ct     To resolve a resource conflict  complete the following steps     1  Select Start  Programs  Administrative Tools  Event Viewer to run  the Event Viewer and determine which resource is in conflict     2  Change the resources of the device that caused the conflict     To help you select conflict free resources  you can use the   Windows NT Diagnostics utility  This utility displays a list of the  T O port addresses  interrupt levels  and DMA channels that your  system is currently using  You can assign resources that are not listed  by this utility to your device     To run the Windows NT Diagnostics utility  select Start  Programs    Administrative Tools  Windows NT Diagnostics     Troubleshooting Diagnostic Messages    This section lists possible error messages returned by the diagnostic utility   along with solutions     No National Instruments Serial Port Found    Ifthe No National Instruments serial port found error message  appears  complete the following steps        Verify the hardware resources  as follows     a  Select Start  Settings  Control Panel and double click the  niports icon    b  In the Ports list  select a port and click the Settings button   If the serial port is missing from the Ports list  reinstall the  hardware and software  For instructions on how to do so  refer  to the installation and verification chapter for your hardware  platform     c  Inthe General Port Settings dialog box  click the Resources  button to view the resources for the port 
110. cted and click the OK button  If the Windows Default Driver  option is not shown  the installation continues automatically     If no New Hardware Found dialog box appears  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete         National Instruments Corporation    2 11 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Verify the Installation    Before you verify the installation  keep in mind that the serial ports   built into your computer are typically named from COM1 to COM4   Windows Me 9x typically issues port names to the ports on NI Serial  hardware starting with COM5  COM6  and so on  If not enough resources  are available to assign to all the NI serial ports  the port with the higher  COMXx name is not configured     To verify the hardware and software installation  complete the following    steps   1  Select Start  Settings   Control Panel and double click the  System icon   2  Click the Device Manager tab and then click the View devices by  type button   3  Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double click the Multi function adapters icon     The PCI serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child dev
111. double click the niports icon     If your AT serial board is missing from the list  complete the following   steps    1  Make sure the hardware is installed    2  Make sure you have installed the Microsoft PnP ISA Enabler driver   niports cannot recognize the AT boards without the Microsoft PnP  ISA Enabler driver  For more information  refer to the Installing the    Microsoft PnP ISA Enabler Driver section of Chapter 6  AT Serial  Hardware Installation  Verification  and Configuration     PCMCIA Boards    The serial configuration utility niports contains configuration information  for serial hardware it is aware of that is installed in your system     To start the configuration utility  select Start  Settings   Control Panel   and double click the niports icon     If serial ports are missing from this list  make sure you selected resources  for your PCMCIA card as described in the Select Resources for the  PCMCIA Card section of Chapter 5  PCMCIA Serial Hardware  Installation  Verification  and Configuration         National Instruments Corporation D 13 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    Resolving Resource Conflicts    Resource conflicts occur when your system contains hardware that is  configured to use the same resources as your serial interface  The serial  driver detects some resource conflicts when it loads  When the driver  detects conflicts as it loads  it records an error message describing the  confli
112. dows 2000  3 4  PXI  Windows Me 9x  3 11  PXI  Windows NT  3 18  USB  Windows 2000  4 2  verifying hardware resources  AT  Windows Me 9x  6 13  PCMCIA  Windows Me 9x  5 11  installing the PnP ISA Enabler Driver  6 18  instrument drivers  F 1  interrupt request level  D 4  freeing  D 4  introduction  1 1  isolated four port boards  AT  E 12  PCI  E 2  isolated two port boards  AT  E 10  PCI  E 1    K    KnowledgeBase  F 1    L    LabVIEW  1 10  LabWindows CVI  1 10  legacy boards  resolving resource conflicts with  Windows 2000  D 4  Windows Me 9x  D 9  loopback tests  problems with  D 24    NI Serial Hardware and Software for Windows 1 6    maximum supported baud rate  Windows NT  D 21  Measurement Studio  1 10  missing serial port in the niports list  D 12  ModBus protocol  serial support for  D 24  modular jack connector  A 3  pin descriptions  table   A 3  pin locations  figure   A 3  multidrop network using terminating resistors   figure   B 5  multi function adapter class in the Device  Manager  figure   D 23    naming National Instruments serial ports   standard DOS based addresses   table   D 20   Windows NT  D 20   National Instruments  calibration certificate  F 2  customer education  F 1  Declaration of Conformity  F 1  professional services  F 1  system integration services  F 1  technical support  F 1  worldwide offices  F 2   niports configuration utility  figure   AT  6 22  PCI  2 20  PCMCIA  5 19          3 19   NI VISA  definition  1 11   null modem cabling in
113. dows 2000  6 8  PCI  Windows 2000  2 8  PCMCIA  Windows 2000  5 7  PXI  Windows 2000  3 8  USB  Windows 2000  4 6  USB  Windows 2000  4 5  using FIFO buffers  2 8  2 16  3 8  3 15   4 6  5 7  5 14  6 8  6 17  advanced transceiver control  RS 485 transceiver mode control modes   table   7 4  transceiver mode control bytes  table   7 6  application development  NI VISA  1 11  AT serial board installation  figure   6 3   6 11  6 20    bias resistor control   RS 485 programmatic control  7 10  bias resistors  7 8  B 5   enabling disabling with   DeviceloControl  7 10   USB  Windows 2000  4 6   using in transmission line  figure   7 8  bits per second  definition  D 23  bus utilization  definition  D 23    NI Serial Hardware and Software for Windows    Index    C    cable connection  A 1  calibration certificate  F 2  changing communication port settings  Windows 2000  2 5  3 5  4 3  5 5  6 5  Windows NT  2 20  3 19  5 18  6 22  changing resources assigned to serial  interface  D 21  COM port number  2 21  3 20  5 20  6 23  common questions  9 data bit framing  D 25  accessing serial hardware from  non Windows platform  D 25  bits per second definition  D 23  bus utilization definition  D 23  changing resources assigned to serial  interface  D 21  determining number of interrupts required  for a serial interface  D 21  determining port associated with COMx  Windows 2000  D 19  determining type of serial hardware  installed  Windows 2000  D 19  determining version of NI Serial soft
114. e         4 wire  2 wire DTR echo    2 wire DTR cti       Use FIFO buffers pP       Cancel  Select lower settings to correct connection problems     Select higher settings for faster performance  Defaults    Receive Buffer Low 1               High  14     Transmit Buffer  Low  1           J High  16     di                   Figure 6 8  Advanced Port Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    The transceiver mode selection is available by clicking the Advanced  button on the Port Settings tab  It shows the transceiver mode in use and  applies only to AT 485 boards  For more information about transceiver  modes  refer to Chapter 7  Using Your Serial Hardware     Use FIFO Buffers    The FIFO buffer control is available by clicking the Advanced button on  the Port Settings tab  FIFO buffers are present on the 16550 compatible  UARTs   one for the transmitter and one for the receiver  The receiver  FIFO trigger denotes the number of characters received in the FIFO before  the PC is interrupted to read the data  The transmit FIFO trigger denotes the  maximum number of bytes written to the FIFO in a block when the PC is  interrupted to write the data  Consider the following points when selecting  FIFO settings     e You can select larger FIFO settings to reduce the number of interrupts  and therefore minimize system overhead     e If transfer rates are high  you can lower receive FIFO settings to  prevent overrun erro
115. e    If Windows 2000 did not display the Found New Hardware Wizard  it did  not detect your hardware  To solve this problem  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Selectthe Hardware tab and click the Device Manager button   Double click the Multi function adapters icon     4  From the Multi function adapters list  right click the National  Instruments interface that was not detected  as shown in Figure D 1    This example shows a PCI interface           i Device Manager      nl         Action               amp m  amp       2  3 Mice and other pointing devices                            Monitors   lt Y Multifunction adapters   lt        PCI 232 8 Multi function Parent                PCI 485 4  Isolated  Multi Function Parent  Big Network adapters Disable  EF Ports  COM  amp  LPT   RJ Communications Port  COM3   E N I  PCI 232 8 Communications Port 1  COM36 Properties  E N I  PCI 232 8 Communications Port 2  COM3       N I  PCI 232 8 Communications Port 3  COM33   wo N I  PCI 232 8 Communications Port 4  COM32   K d N I  PCI 232 8 Communications Port 5  COM11   E  N I  PCI 232 8 Communications Port 6  COM10   E N I  PCI 232 8 Communications Port 7  COM6   7 N I  PCI 232 8 Communications Port 8        5   wv N I         485 4  Isolated  Communications Port 1  COM159     PCI 485 4  Isolated  Communications Port 2  COM158            485 4  Isolated  Communications Port 3  COM157        1  PCI 485 4  Isol
116. e Add Remove Programs icon  The Add Remove  Programs dialog box appears    3  Click the Add New Programs button and then the CD or Floppy  button    4  When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button    5  When prompted  click the Finish button to install the program files  from the CD     6  The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     7  Ifyou need to install your hardware  or if this is your first time to install  the NI Serial software for Windows 2000 XP  skip to the next section   Install the Hardware  Otherwise  continue to step 8         National Instruments Corporation 3 1 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Install the Hardware    If your hardware is already installed  restart Windows 2000 XP     Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish  When you complete  the wizard  continue to the Verify the Installation section     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions      IN Caution Before you remove your board from the package  touch the antist
117. e Installation    To verify the hardware and software installation  complete the following  steps     1  Determine which physical port is associated with COM  as follows     a  Select Start  Settings   Control Panel and double click the  niports icon     A list of installed National Instruments ports with their logical  COMXx names appears  If your interface is not on this list  refer to  Appendix D  Troubleshooting and Common Questions     b  Selectthe COM port that you want to verify and click the Settings  button     The General Port Settings dialog box displays the serial number  of the serial hardware and the physical port number starting at 1   For all serial hardware  PORTI refers to the top port  PORT2  refers to the next port down  and so on     2  Torun the diagnostic utility  select Start  Programs  National  Instruments Serial  diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     3  After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections         National 
118. e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e If transfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes     NI Serial Hardware and Software for Windows 2 8 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows Me 9x       Install the Software    Before you install your serial hardware  complete the following steps  to install the NI Serial software for Windows Me 9x     1   2         National Instruments Corporation    Select Start  Settings  Control Panel     Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD  and click the Next button     When prompted  click the Finish button to install the program files  from floppy disks or CD ROM     The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     If you need 
119. e clicking on the  Input Output Range control  select a different Basic Configuration in the Setting based  on  control     AT Boards  Non Shared IRQ     Each port on the board requires one I O window and one IRQ     Input Output Range  The base I O address range assigned to  the port   IRQ  The IRQ assigned to the port     NI Serial Hardware and Software for Windows 6 26 ni com       Using Your Serial Hardware    This chapter describes how to use the advanced features of your NI Serial  hardware and lists some general programming requirements     General Programming Requirements       The NI Serial software is fully integrated into the standard Windows  communications software  NI serial ports are used like any other Windows  communications  COM  port  Windows has standard communication  functions for use within either Win16 or Win32 applications     When you develop your application  remember that you must use   the standard Windows serial communication functions or any API that uses  the standard Windows serial communication functions such as NI  VISA   For more information about NI VISA  see ni  com VISA  For information  about Microsoft Windows serial communication functions  refer to the  Win32 Software Development Kit and to the Win32 Overview and Win32  Reference online help     If you have LabVIEW or Measurement Studio and want to use it with your  serial hardware  refer to your LabVIEW or Measurement Studio  documentation for information about serial I O functions  
120. e mode  Enabled when Always enabled  DTR controlled DTR asserted  with echo  Two wire mode  Enabled when Enabled when  DTR controlled DTR asserted DTR unasserted  Two wire mode  Enabled when Enabled when not  Auto Control transmitting data transmitting data                   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     Two Wire Mode  DTR Controlled with Echo    You can use this mode in half duplex systems where you need to control  the transmitter programatically  In the DTR with echo mode  the  transmitter is tri stated when the DTR signal of the UART  Universal  Asynchronous Receiver Transmitter  is unasserted  To transmit  your  application first must enable the transmitter by asserting DTR  After the  data is fully transmitted  your application unasserts DTR to disable the  transmitter  Because the receiver is always enabled in this mode  you  receive packets not only from other devices  but also your transmitter   Thus  your receiver echoes all data you transmit     Two Wire Mode  DTR Controlled    This mode is similar to the two wire  DTR with echo mode  Although this  mode uses the same method as the DTR with echo mode to control the  transmitter  the hardware automatically disables the receiver whenever    NI Serial Hardware and Software for Windows 7 4 ni com    Chapter 7 Using Your Serial Hardware    the transmitter is enabled  Thus  you do not rece
121. e the niserial vxd file in the  Windows system  directory     b  Ifthe niserial vxd file is missing  reinstall the hardware and  software  For instructions on how to do so  refer to the installation  and verification chapter for your hardware platform         National Instruments Corporation D 7 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    Diagnostic Utility Does Not Show All Installed Ports    If the diagnostic utility does not show all the ports you installed  complete  the following steps     1  Verify the hardware resources  as follows     a  Inthe Device Manager tab  under Multi function adapters   double click a serial board     b  Ifa serial board is missing from the Multi function adapters list   reinstall the hardware and software  For instructions on how to do  so  refer to the installation and verification chapter for your  hardware platform     c  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports  If they are in conflict  refer to the Resolving Resource  Conflicts with Legacy Boards section     2  Insome versions of Windows Me 9x  in the Device Manager  the  Driver tab shows information about the installed driver  Make sure  that the National Instruments serial driver is installed for the port     If the serial driver is a Microsoft driver  reinstall the NI Serial  software  For instructions on how to do so  refer to t
122. echnical Support and Professional Services appendix  To comment on  the documentation  send email to techpubs ni   com        2002   2003 National Instruments Corporation  All rights reserved     Important Information       Warranty    The serial hardware is warranted against defects in materials and workmanship for a period of one year from the date of shipment  as evidenced  by receipts or other documentation  National Instruments will  at its option  repair or replace equipment that proves to be defective during the  warranty period  This warranty includes parts and labor     The media on which you receive National Instruments software are warranted not to fail to execute programming instructions  due to defects  in materials and workmanship  for a period of 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  National Instruments does not warrant that the operation of the software shall be  uninterrupted or error free     A Return Material Authorization  RMA  number must be obtained from the factory and clearly marked on the outside of the package before  any equipment will be accepted for warranty work  National Instruments will pay the shipping costs of returning to the owner parts which are  covered by warranty     National Instruments beli
123. ed Digital  Multipoint Systems  RS 485 expands on the RS 422 standard by increasing  the number of devices you can use from 10 to 32 and by working with  half duplex bus architectures  Unlike the RS 422 standard  RS 485  addresses the issue of using multiple transmitters on the same line  RS 485  defines the electrical characteristics necessary to ensure adequate signal  voltages under maximum load  short circuit protection  RS 485 can also  withstand multiple drivers driving conflicting signals at the same time     NI Serial Hardware and Software for Windows B 2 ni com    Appendix B Serial Port Information    Serial Communication Issues       This section explains some serial communication issues  including duplex  architectures  termination methods  bias resistors  and types of connecting  equipment     Duplex Architectures    Duplex refers to the means of bandwidth usage in a serial system  The  two common means of bi directional serial communication are full duplex  and half duplex  Half duplex communication involves a transmitter and a  receiver connected to each end of the same wire or pair of wires  Because  the same transmission line both sends and receives data  devices cannot  send data in both directions at the same time  First  one device transmits  over the wire s  to the receiver of the second device  When the first device  finishes transmitting  both devices switch the connections from their  transmitter to their receiver  or vice versa  The device that was rec
124. eiving  data can then transmit over the line     In full duplex communication  the devices use a separate wire  or pair of  wires  for simultaneous transmission in each direction  Thus  the devices  do not switch between transmitting and receiving     In a differential serial bus  such as RS 422 or RS 485   a half duplex  system transmits and receives over the same twisted pair of wires   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     Full Duplex    A typical full duplex multidrop bus architecture involves a master slave  protocol  Only one device  the master  can control access to the bus  All  other devices are slaves  Slave devices must wait for the master to give them  access to the bus  In a typical full duplex system  one transmission line  connects the bus master transmitter to all of the slave receivers  A second  transmission line connects all of the slave transmitters to the bus master  receiver  Because each transmission line has two separate wires  a  full duplex system is often referred to as a four wire system  Figure B 1  shows a typical full duplex system        National Instruments Corporation B 3 NI Serial Hardware and Software for Windows    Appendix B Serial Port Information          Slave 1 Slave 2 Slave n    Y A an AN          MASTER 
125. environment  Ambient temperature                         0 to 55   C  Relative humidity                              10 to 90   noncondensing    Storage environment    Ambient temperature                            40 to 85   C  Relative humidity                              5 to 9596  noncondensing  EMI  esee ee FCC Class A Verified       1 The 16 port PCI serial boards require a breakout box  which is included in your kit  to separate the 100 position connector to  16 DB 9 connectors     NI Serial Hardware and Software for Windows E 6 ni com    Appendix E Specifications    Software Characteristics  Maximum serial transfer rate   RS 485 italie        e 460 800 bps         232 dado IRE E 115 200 bps    USB Serial Hardware       One Port Hardware    Dimensions  uci tt teri 3 8 by 3 7 by 1 6 cm   1 49 by 1 44 by 0 61 in      Case material    eei PVC  Weight  USB 232   ceno i 121 g  0 27 Ib   USB 485 seni esee eee 118 g  0 26 Ib        connector                      eee DB 9  USB                                                           Captive cable with USB series  A plug    Power requirement  from USB channel     USB 485                  175 mA typical  500 mA maximum  USB 232    5                       100 mA typical  200 mA maximum    Two and Four Port Hardware    Dimensions    eee ie       21 0 by 12 4 by 3 7 cm   8 25 by 4 89 by 1 44 in      Case material  rece Hard plastic with metal baseplate    Weight    ete rete  375 g  0 83 Ib        1 Actual speed may vary considera
126. er to Chapter 7  Using  Your Serial Hardware        National Instruments Corporation B 7 NI Serial Hardware and Software for Windows    Appendix B Serial Port Information    Table B 2 lists the signals in DTE and DCE modes     Table B 2  USB 232 DTE and DCE Modes                                        Pin DTE Mode DCE Mode   1 DCD DCD  2 RXD TXD  3 TXD RXD  4 DTR DSR  5 GND GND  6 DSR DTR  7 RTS CTS  8 CTS RTS  9 RI RI                NI Serial Hardware and Software for Windows    B 8    ni com       Uninstalling the  Hardware and Software    This appendix describes how to uninstall your serial hardware and the  NI Serial software     To begin your uninstallation  see the section of this appendix containing  instructions for your hardware platform and operating system     PCP Hard Ware aite rte ree e cR ER C 2  Windows   2000          2 t red skated  ra eH E nde    C 2  Windows  Me   x   iic eite cette eren etg eret ee ea C 3  Windows                                   T SER EHI    5   PX Hard Ware  aic nere ie toe rb e e ds C 7  Windows 2000    ette ener eer ee RE C 7  Windows Me 9xX    eer ic tin tee eite                          C 9  Windows  NT  ee rrt ertt etae          ERR E EEUU ATE C 11   USB Ha  rdware  dieit terere teret bee n eine C 12   PCMCIA  Hardware                            a         13  Windows  2000          t ith                    vo    13  Windows Me Ox      iste tette irte xt OR EIER C 15  Mn Cp C 17   AT Hardware    Ree e RE ER EE GE ee C 19  Windows 20
127. erial Binary Data Interchange    e  BIA RS 422 A Standard  Electrical Characteristics of Balanced  Voltage Digital Interface Circuits    e  BEIA 485 Standard  Standard for Electrical Characteristics of  Generators and Receivers for Use in Balanced Digital  Multipoint Systems    e Microsoft Win32 Software Developer Kit  Online Documentation for  Win32 Overviews  Win32 Reference  Microsoft Programmer s Guide  to Windows 98 95  and Microsoft Windows NT System Guide   Microsoft Corporation    NI Serial Hardware and Software for Windows X ni com       Introduction    This chapter explains how to use this manual  lists what you need to get  started and optional equipment you can order  and briefly describes the  NI Serial hardware and software     How to Use this Manual             Chapter 1    Chapters  2  3  4   5  or 6          Gather What You Need  to Get Started    Install the NI Serial Software    Install the NI Serial Hardware                        Chapter 7 4            the Installation        Troubleshooting    Appendix D                the Serial Port          T About Advanced  Product Features       Review Programming  Requirements        Write Application Program                     National Instruments Corporation    1 1       NI Serial Hardware and Software for Windows    Chapter 1 Introduction    What You Need to Get Started       Before you install your serial hardware and the NI Serial software   make sure you have all of the following items           Windows 2000
128. ettings   Control Panel  and double click niports  A list  showing installed National Instruments ports with their logical COMx  names appears  If your interface is not on the list  refer to Appendix D   Troubleshooting and Common Questions     Select the COM port you want and click the Settings button to display the  General Port Settings dialog box for that port  This dialog box displays  the physical port number starting at 1     When you have finished verifying the driver installation and physical port   proceed to the next section  Run the Diagnostic Test         National Instruments Corporation 5 17 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Run the Diagnostic Test    To verify and test the installation  run the diagnostic program that came  with your NI Serial software  The diagnostic program verifies that your  serial driver is installed properly  that the configuration of your hardware  does not conflict with anything else in your system  and that the serial  driver can communicate with your hardware correctly     To run the test  select the diagnostics item under Start  Programs    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     After you verify the hardware and software installati
129. ettings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 2 7 shows the Port Settings tab     N I  PCI 232 4 Communications Port  COM7  Properties KJ       General Port Settings   Driver   Resources         Serial Number  AS846B                            1    Bits per second     Data bits   e     Parity   None x   Stop bits  hn  n  Elow control   Xon xot                    Advanced      Restore Defaults         Cancel            Figure 2 7  Port Settings Tab       National Instruments Corporation 2 15 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Advanced Port Settings    To view or change the advanced port settings  click the Advanced button   Figure 2 8 shows the Advanced Port Settings dialog box        Advanced Port Settings   x      Transceiver Mode    4 wire         4 wire  2 wire DTR echo    OK  2 wire        ctrl  4 Use FIFO buffers                     Cancel  Select lower settings to correct connection problems      t    Select higher settings for faster performance  Defaults    Receive Buffer Low 1               High  14     Transmit Buffer  Low  1               High  16                    Figure 2 8  Advanced Port Settings Dialog Box    The following sections describe the advanced port setting options  
130. eves that the information in this document is accurate  The document has been carefully reviewed for technical  accuracy  In the event that technical or typographical errors exist  National Instruments reserves the right to make changes to subsequent  editions of this document without prior notice to holders of this edition  The reader should consult National Instruments if errors are suspected   In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it     EXCEPT AS SPECIFIED HEREIN  NATIONAL INSTRUMENTS MAKES NO WARRANTIES  EXPRESS OR IMPLIED  AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF  MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE  CUSTOMER   S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF  NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER  NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR  DAMAGES RESULTING FROM LOSS OF DATA  PROFITS  USE OF PRODUCTS  OR INCIDENTAL OR CONSEQUENTIAL DAMAGES  EVEN IF ADVISED OF THE POSSIBILITY  THEREOF  This limitation of the liability of National Instruments will apply regardless of the form of action  whether in contract or tort  including  negligence  Any action against National Instruments must be brought within one year after the cause of action accrues  National Instruments  shall not be liable for any delay in performance due to causes beyond its reasonable control  The warranty provided here
131. fer to Table D 3 for operating system support for NI Serial hardware     Table D 3  NI Serial Hardware Operating System Support                                                                Operating System           E i 2  a z z   EX ER      5  s ES ES ES s E    m                     a EE  a 3 a   a a 5     gt     E B E 5 E BE E 25  Bus 2 2 2 2 2 2   A   ae  USB e  e   Ethernet                              PXI                           PCI                 PCMCIA    4               AT                             e NI VISA Support    Native OS Support  Win32 or Linux              National Instruments Corporation D 25 NI Serial Hardware and Software for Windows    Appendix D Troubleshooting and Common Questions    How many serial ports can I have on my machine     Refer to Table D 4 to determine how many serial ports are supported under  each operating system     Table D 4  Maximum Number of COM Ports                      Operating Maximum Number of Maximum Number  System COM Ports  Plug In  of COM Ports  USB   Windows 256 256  2000 XP  Windows NT 99      Windows Me 99      Windows 98 99      Windows 95 99                       Can I use USB serial hardware  Ethernet serial hardware  and plug in  serial hardware in the same computer at the same time     As long as your operating system supports all your NI Serial hardware  you  can mix types different serial interfaces in your computer  All NI Serial  hardware and software is designed and tested for interoperability     NI Ser
132. from  the Windows Me 9x Device Manager  as described in the previous section   You do not need to shut down Windows Me 9x before uninstalling the  software     Complete the following steps to remove the NI Serial software   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon in the Control Panel  to launch the Add Remove Programs applet  The Add Remove  Programs Properties dialog box appears  This dialog box lists the  software available for removal     3  Select the serial software you want to remove  and click the  Add Remove button  The uninstall program runs and removes all  folders  programs  VxDs  DLLs  and registry entries associated with  the NI Serial software     4  Shutdown Windows Me 9x  power off your computer  and physically  remove the serial interfaces from your system     To reinstall the hardware and software  refer to Chapter 5  PCMCIA Serial  Hardware Installation  Verification  and Configuration     Uninstall the Hardware   Before physically removing the serial hardware  you must remove   the hardware information from the Windows NT Control Panel   Complete the following steps to uninstall the hardware    1  Double click the niports icon under Start  Settings  Control Panel     2  Select the port to remove from the list of ports as shown in  Figure C 12     NI Serial Hardware and Software for Windows C 22 ni com    Appendix C Uninstalling the Hardware and Software       National Instruments   Ports   x      Settings  
133. g resources for your  port card  refer to the Resource Settings section     After you have selected the resources for all ports  choose to restart the  computer when the system prompts you     The serial hardware installation is now complete     NI Serial Hardware and Software for Windows 6 20 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Verify the Installation    Determine Which Physical Port Is Associated  with COMx    Select Start  Settings  Control Panel  and double click niports  A list  showing installed National Instruments ports with their logical COMx  names appears  If your interface is not on the list  refer to Appendix D   Troubleshooting and Common Questions     Select the COM port you want and click the Settings button to display the  General Port Settings dialog box for that port  This dialog box displays  the serial number of the serial hardware and the physical port number  starting at 1  On all serial hardware  PORT 1 refers to the top port  PORT2  refers to the next port down  and so on     When you have finished verifying the driver installation and physical port   proceed to the next section  Run the Diagnostic Test     Run the Diagnostic Test    To verify and test the installation  run the diagnostic program that came  with your NI Serial software  The diagnostic program verifies that your  serial driver is installed properly  that the configuration of your hardware  does not conflict with anything else in your 
134. g sections describe the advanced settings options     Transceiver Mode    This field shows the transceiver mode in use  and applies only to  PCMCIA 485 boards  For more information about transceiver modes   refer to Chapter 7  Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e   ftransfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes         National Instruments Corporation 5 7 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows Me 9x       Install the Sof
135. guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     4 1 NI Serial Hardware and Software for Windows    Chapter 4 USB Serial Hardware Installation  Verification  and Configuration    Install the Hardware            Note If you are installing a USB 485 2 or USB 485 4  you might need to adjust the value  of the bias resistors  depending on your application  For more information  refer to  Chapter 7  Using Your Serial Hardware     To install your USB serial hardware  complete the following steps     1   2   3     Install the software    If you are installing a USB 485 4  connect the external power supply   Connect the USB connector from the USB hardware to an available  USB port on your computer or USB hub     If your computer is not already on  turn it on and start  Windows 2000 XP     Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  If necessary  complete the  wizard by clicking Next in each window and then Finish     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete  Continue to the next section   Verify the Installation     Verify the Installation       To verify the hardware and software installation  complete the following  steps     1     Select Start  Settings  Control P
136. hapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Select Resources for the PCMCIA Card    Complete the following steps to select resources for your PCMCIA card     1   2   3     Select Start  Settings   Control Panel   Double click the niports icon     Select the PCMCIA card you just installed from the Add a New  PCMCIA Card list  and click the Add button  Follow any onscreen  instructions     In the Resource Configuration dialog box  select nonconflicting base  I O address and IRQ settings for your port card  and click OK     For more information on selecting resources for your port card  refer  to the Resource Settings section     Exit niports     Install the PCMCIA Serial Hardware    Complete the following steps to install the PCMCIA 232 or PCMCIA 485  in your computer     1   2     3     Shut down the computer     Insert the card 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     Power on the computer and start Windows NT     Figure 5 9 shows how to insert a PCMCIA serial card and how to connect  the cable     NI Serial Hardware and Software for Windows 5 16 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration                      1 PCMCIA Socket 2 PCMCIA Serial Cable  Figure 5 9  Inserting a PCMCIA Serial Card             Verify the Installation    Determine Which Physical Port Is Associated  with COMx    Select Start  S
137. he installation  and verification chapter for your hardware platform     3  Physically make sure the correct number of boards ports are installed     Address Test Failed    If the address test failed  Interrupt test cannot be  performed error message appears  you might have an address conflict  with legacy boards in your system  To solve this problem  change the base  addresses assigned to your legacy boards and refer to the Resolving  Resource Conflicts with Legacy Boards section     Interrupt Test Failed    Ifthe Interrupt test failed error message appears  you might have  an IRQ conflict with legacy boards in your system  To solve this problem   change the IRQ level assigned to your legacy boards and refer to the next  section  Resolving Resource Conflicts with Legacy Boards     NI Serial Hardware and Software for Windows D 8 ni com    Appendix D Troubleshooting and Common Questions    Resolving Resource Conflicts with Legacy Boards    Resource conflicts typically occur if your system contains legacy boards  that use resources that are not reserved properly  If a resource conflict  exists  write down the resource that caused the conflict and refer to the  Microsoft Windows Me 9x user guide for instructions on how to use the  Device Manager to reserve I O and IRQ resources for legacy boards     Forcing Windows to Detect Your Hardware    PCI and PXI Hardware    If Windows Me 9x did not display the New Hardware Found dialog box   it did not detect your hardware  To solve this
138. her settings for faster performance     Receive Buffer  Low  8     Transmit Buffer  Low  8               OK  Cancel    Defaults    Hr    J High  60   60       High  56   55                 COM Port Number   comis9 7  Transceiver Mode   4 Wire            4 Wire  2 Wire        Controlled With Echo  2 Wire        Controlled   2 Wire T  Ridy Auto       Figure 3 4  Advanced Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    This field shows the transceiver mode in use  and applies only to RS 485  boards  For more information about transceiver modes  refer to Chapter 7   Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e If transfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e   f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is 
139. i com    
140. ial Hardware and Software for Windows D 26 ni com       Specifications    This appendix describes the characteristics of the serial hardware  the  NI Serial software  along with the recommended operating conditions     PCI Serial Hardware       Nonisolated Two Port Boards    Dimensions    rece 10 67 by 14 22 cm   4 2 by 5 6 in           connector                    eee DB 9    Power requirement  from PCI channel     PCI 485 2  HSV DC actes 350 mA typical  750 mA maximum  PCI 232 2  35 VDGi secte 50 mA typical  100 mA maximum  x12 VDC vi bene 20 mA typical  200 mA maximum    Isolated Two Port Boards    Dimensions           10 67 by 14 22 cm   4 2 by 5 6 in                                                                       9    Isolation voltage  From port to                                       2 000 V   60 s  From any port to host computer       2 000 V   60 s        National Instruments Corporation E 1 NI Serial Hardware and Software for Windows    Appendix E Specifications    Power requirement  from PCI channel     PCI 485 2   O VBOC idees 800 mA typical  1 300 mA maximum  PCI 232 2  45          400 mA typical    650 mA maximum    Nonisolated Four Port Boards    Dimensions    erede 10 67 by 17 27 cm   4 2 by 6 8 in      I O connector                    sss 10 position modular jack    Power requirement  from PCI channel     PCI 485 4  15 VDC itii 700 mA typical  1 300 mA maximum  PCI 232 4  EDV DC a cree he 70 mA typical  150 mA maximum    12 VDC eg hee deae 40 mA typica
141. ication Port Settings    The serial configuration utility is fully integrated into the Windows Me 9x  Device Manager  You can use it to view or change the configuration of  your serial ports     To configure a serial port  complete the following steps     1     Select Start  Settings  Control Panel and double click the  System icon     Click the Device Manager tab and then click the View devices by  type button     Double click the Ports  COM  amp  LPT  icon     5  Note If you want your serial ports to use                 COM1  COM2  COM3                  refer to the Common Questions section of Appendix D  Troubleshooting and  Common Questions     4        National Instruments Corporation    Double click the port you want to configure and refer to the following  instructions     e      view the hardware resources assigned to the serial port  click  the Resources tab     e      view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e      change the RS 485 transceiver mode  or to enable or disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab     3 13 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    S Note    Transceiver modes apply to RS 485 interfaces only  For more inform
142. ice  is listed as a port under the Ports  COM  amp  LPT  icon     Figure 2 6 shows the Device Manager tab for serial hardware that is  installed properly     NI Serial Hardware and Software for Windows 2 12 ni com       National Instruments Corporation    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration       System Properties HEI    General Device Manager   Hardware Profiles   Performance        View devices by type    View devices by connection    F   Keyboard  Modem   UN Monitor   A Mouse   Exp Multifunction adapters   lt  gt  N I  PCI 232 4 Multifunction Parent   E   Network adapters   9 Other devices       PCMCIA socket      5  Ports  COM  amp  LPT   E Communications Port  COM1   wo N I  PCI 232 4 Communications Port  COM10   E N I  PCI 232 4 Communications Port  COM    R   N I  PCI 232 4 Communications Port  COM8   F N I  PCI 232 4 Communications Port             oy Printer Port  LPT2     c AB ee                      Properties   Refresh   Remove   Print              1  Ed E EH  EH       H A        m       Close Cancel      Figure 2 6  Device Manager Tab for PCI Serial Board Ports          Verify the hardware resources  as follows     a     In the Device Manager tab  under Multi function adapters   double click a serial board     Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     Repeat steps 5a and 5b until you have verified the resources for  each 
143. ick the Multi function adapters icon     The PCMCIA serial cards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child device  is listed as a port under the Ports  COM  amp  LPT  icon         National Instruments Corporation 5 8 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Figure 5 2 shows the Device Manager tab for serial hardware that is  installed properly        21015     Action View                1          E  My Computer      Computer    amp  Disk drives         Display adapters   431 DVD CD ROM drives   Sy Floppy disk controllers   9 9 Floppy disk drives   H S IDE ATA ATAPI controllers   591 8 Keyboards      a Mice and other pointing devices    e     Monitors     lt  Multifunction adapters  x        PCMCIA 232 4 Multi Function Parent   Bg Network adapters   E  PCMCIA adapters   oy Ports  COM  amp  LPT   J Communications Port  COM3   E d N I  PCMCIA 232 4 Communications Port 1  COMS   F N I  PCMCIA 232 4 Communications Port 2  COM6   E N I  PCMCIA 232 4 Communications Port 3  COM    E N I  PCMCIA 232 4 Communications Port 4  COM8   F Printer Port  LPT1    9    Sound  video and game controllers                                     H A                    Ej                                   Figure 5 2  Device Manager for PCMCIA Serial Card Ports    5  Verify the hardware 
144. ies window that appears  select the Device Manager tab  and click  the View devices by type button at the top of the page  If necessary   double click the Ports  COM  amp  LPT  icon to view all of the ports     The shared IRQ AT serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is listed  under the Multi function adapters icon  and each child device is listed as  a port under the Ports  COM  amp  LPT  icon  If you have installed one of  these interfaces  double click the Multi function adapters icon as well as  the Ports  COM  amp  LPT  icon to look at the ports resources  To modify the  hardware resources  double click the Multi Function adapters icon     If a circled exclamation point appears through the port icon  the serial port  is not installed properly  A problem with the port may have occurred  because Windows Me 9x could not acquire resources for the port    or because an interrupt request resource conflict exists  If no circled  exclamation point appears  the serial hardware is installed correctly   Figure 6 6 shows an example of NI Serial hardware that is installed    properly     NI Serial Hardware and Software for Windows 6 12 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration       System Properties   21 x     General Device Manager   Hardware Profiles   Performance         View devices by type    View devices by connection            Hard disk controllers  
145. ilable in two different versions   e Shared IRQ  All ports on the board share the same IRQ   e Isolated  All ports on the board are isolated and share the same IRQ     Additionally  the AT serial boards are available in a two port version   AT 232 2 and AT 485 2  or a four port version  AT 232 4 and AT 485 4    The two port versions use DB 9 connectors  The four port versions use  10 position modular jacks to provide all four connections on a single back  panel  Optional cable accessories convert the 10 position modular jacks to  either DB 9 or DB 25 connectors with standard pinouts  Throughout this  manual  references to AT serial boards generally refer to all versions of the  boards     The isolated AT 232 and AT 485 boards are designed for applications   in harsh environments  Isolated ports provide reliable communication in  situations involving ground loops from different ground levels or high  common mode voltage induced on the lines in noisy environments    The nonisolated ports may not provide reliable communication in those  situations  The isolation between each communication port and the host PC  ensures safe operation of the PC and the devices connected to other ports  on the same board in case of accidental high voltages on communication  lines     The AT 485 boards support four hardware transceiver control modes  for reliable communication with two  and four wire devices  For more  information about transceiver control modes  refer to Chapter 7  Using  Your Seri
146. in does not cover  damages  defects  malfunctions  or service failures caused by owner   s failure to follow the National Instruments installation  operation  or  maintenance instructions  owner   s modification of the product  owner   s abuse  misuse  or negligent acts  and power failure or surges  fire   flood  accident  actions of third parties  or other events outside reasonable control     Copyright    Under the copyright laws  this publication may not be reproduced or transmitted in any form  electronic or mechanical  including photocopying   recording  storing in an information retrieval system  or translating  in whole or in part  without the prior written consent of National  Instruments Corporation     Trademarks    ComponentWorks                LabVIEW     Measurement Studio     National Instruments              ni ccom     and NI VISA    are trademarks of  National Instruments Corporation     Product and company names mentioned herein are trademarks or trade names of their respective companies     Patents    For patents covering National Instruments products  refer to the appropriate location  Help  Patents in your software  the patents   txt file  on your CD  or ni  com patents     WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS     1  NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF  RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN  ANY LIFE SUPPORT SYSTEMS WHOSE 
147. indows NT  D 16  no National Instruments serial port found  Windows 2000  D 3  Windows Me 9x  D 7  Windows NT  D 14  troubleshooting  Windows 2000  D 3  Windows Me 9x  D 7  Windows NT  D 14  diagnostic resources  F 1  diagnostic test failure  Windows 2000  D 19  disabling bias resistors with  DeviceloControl  7 10  documentation  online library  F 1  DOS based addresses  table   D 20  drivers  instrument  F 1  software  F 1  DTE to DCE interface  B 6  straight through cabling in  figure   B 6  DTE to DTE interface  B 7  null modem cabling in  figure   B 7    NI Serial Hardware and Software for Windows    Index    duplex architectures  B 3  full duplex  B 3  half duplex  B 4    E    eight port boards specifications  PCI  E 3  PXI  E 5  enabling bias resistors with  DeviceloControl  7 10  environmental characteristics  AT  E 12  PCI  E 4  E 8  PXI  E 6  example code  F 1    F  FIFO buffer size  2 22  3 21  5 21  6 24  FIFO buffers  2 8  2 16  3 8  3 15  4 6  5 7   5 14  6 8  6 17  FIFO enabled  2 21  3 20  5 21  6 23  FIFO buffer size  2 22  3 21  5 21  6 24  forcing Windows to detect hardware  Windows 2000  D 2  Windows Me 9x  D 9  four port boards  connecting cables to  figure   A 5  isolated four port boards  AT  E 12  PCI  E 2  specifications  AT  E 11  PCI  E 2  PXI  E 5  USB  E 7  four wire mode  7 4  freeing an interrupt request level  D 4  frequently asked questions  F 1    NI Serial Hardware and Software for Windows l 4    full duplex  B 3  full duplex system  figure  
148. information  To do so  complete the following   steps    l  Loginas Administrator oras a user who has Administrator  privileges     2  Select Start  Settings   Control Panel and double click the niports  icon  From the Ports list  select the port of the board you want to  uninstall  as shown in Figure C 6        National Instruments   Ports   x      Settings          Delete                   PXI 8422  Isolated R5 232  4 Ports    PXI 8422  Isolated R5 232  4 Ports    P  q 8422  Isolated R5 232  4 Ports  COMS  P  4 8422  Isolated H5 232  4 Ports    r  Add a New PCMCIA card      PCMCIA 485     Add                           Figure C 6  Selecting an Interface to Uninstall    3  Click the Delete button         National Instruments Corporation C 11 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software    4  Repeat steps 2 and 3 until you have removed every PXI serial port that    you want to uninstall     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps     1   2     Select Start  Settings  Control Panel     Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall    Select the NI Serial software you want to uninstall  and click the    Add Remove button  The uninstal
149. interrupted to read the data  The transmit FIFO trigger denotes the  maximum number of bytes written to the FIFO in a block when the PC is  interrupted to write the data  Consider the following points when selecting  FIFO settings     e You can select larger FIFO settings to reduce the number of interrupts  and therefore minimize system overhead     e  Iftransfer rates are high  you can lower receive FIFO settings to reduce  the number of interrupts and therefore prevent overrun errors due to  interrupt latency     e  f data transfer sizes are small  selecting receive FIFO settings just  above data sizes can reduce efficiency  so select lower settings     Resources    Click the Resources button to display the resource configuration dialog  box for the port  For more information on resource configuration  refer to  the next section  Resource Settings         National Instruments Corporation 5 21 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Resource Settings    The following sections explain the resource configuration options for each  serial interface     PCMCIA 232  PCMCIA 485  PCMCIA 232 4    Figure 5 12 shows the resource configuration dialog box for a  PCMCIA 485  The PCMCIA 232 and PCMCIA 232 4 dialog boxes    are similar        PCMCIA Port   Resource Configuration   x             em  G2 N I  PCMCIA 485    Base 1 0 Address  100    Length of I 0 Window  8 Bytes    IRQ        Figure 5 12  Re
150. ion 5 23 NI Serial Hardware and Software for Windows       AT Serial Hardware Installation   Verification  and Configuration    This chapter describes how to install the NI Serial software and AT serial  hardware and how to verify the installation  It also describes how to view  or change the communication port settings     To begin your installation  see the section of this chapter containing  instructions for your operating system  Windows 2000 XP   Windows Me 9x  or Windows NT      Windows 2000 XP       Install the Software    Before you install your serial hardware  complete the following steps to   install the NI Serial software for Windows 2000 XP    1  Select Start  Settings  Control Panel    2  Double click the Add Remove Programs icon  The Add Remove  Programs appears    3  Click the Add New Programs button and then the CD or Floppy  button     4  When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button     5  When prompted  click the Finish button to install the program files  from the CD     6  The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     7  Ifyou need to install your hardware  or if this is your first time to install  the NI Serial software for Windows 2000 XP  skip to the next section   Install the Hardware  Otherwise  continue to step 8     8  Ifyour hardware is already installed
151. ion Modular Jack Pin Descriptions                                           10 Position   Modular Jack Pin 232 Signal 485 Signal  10 DCD  GND  9 RXD CTS   HSI    8 TXD RTS   HSO    7 DTR  RXD   6 GND RXD   5 DSR  CTS   HSI         National Instruments Corporation A 3    NI Serial Hardware and Software for Windows    Connector Descriptions    Table A 2  10 Position Modular Jack Pin Descriptions  Continued                                   10 Position  Modular Jack Pin 232 Signal 485 Signal  4 RTS RTS   HSO    3 CTS TXD   2 RI  TXD   1 No Connect No Connect    These signals are not supported by the isolated 232 ports           DB 25 Connector          Figure A 3 and Table A 3 give the pin locations and descriptions of the  DB 25 connector  which is on the optional 10 position modular jack    to DB 25 cable        PIN 13    PIN 1                            PIN 25    PIN 14          Figure A 3  DB 25 Connector Pin Locations    Table A 3  DB 25 Pin Descriptions                               DB 25 Pin 232 Signal 485 Signal  2 TXD RTS   HSO    3 RXD CTS   HSI    4 RTS RTS   HSO    ni com    NI Serial Hardware and Software for Windows A 4       Appendix A    Connector Descriptions    Table A 3  DB 25 Pin Descriptions  Continued                             DB 25 Pin 232 Signal 485 Signal  5 CTS TXD   6 DSR  CTS   HSI    7 GND RXD   8 DCD  GND  20 DTR  RXD   22 RI  TXD                 Pins not listed in this table are No Connect     These signals are not supported by the isolated 232 p
152. ion Parent  85  Network adapters  E  Dther devices           PCMCIA socket  oy Ports  COM  amp  LPT      Communications Port  COM1   E    N I  PCI 232 4 Communications Port  COM10      N I  PCI 232 4 Communications Port  COM       N I  PCI 232 4 Communications Port  COM8      N I  PCI 232 4 Communications Port             a Printer Port  LPT2                  ROT rrr TEN                 j           1                                             operties   Refresh   Remove   Print    E          Figure C 2  Selecting an Interface to Uninstall    Click the Remove button     6  Inthe Confirm Device Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     NI Serial Hardware and Software for Windows C 4 ni com    Appendix C Uninstalling the Hardware and Software    Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     3  Select the NI Serial software you want to uninstall  and click the  Add Remove button  The uninstallation program removes all folders   utilities  and registry entries associated with the NI Serial software     4  
153. ire       4 Wire  2 Wire        Controlled With Echo  2 Wire        Controlled   2 Wire T  Ridy Auto          Figure 6 4  Advanced Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    This field shows the transceiver mode in use  and applies only to AT 485  boards  For more information about transceiver modes  refer to Chapter 7   Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e If transfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes     NI Serial Hardware and Software for Windows 6 8 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To 
154. ive the packets sent from  your transmitter     Two Wire Mode  Auto Control    In this mode  the serial hardware transparently enables the transmitter and  receiver in a two wire system  Use this mode to remove the burden of  transceiver control from your application  The hardware automatically  enables the transmitter for each byte to be transmitted  Also  the hardware  disables the receiver whenever the transmitter is enabled  so you do not  receive the packets sent from your transmitter          Note When you are communicating with    two wire device  National Instruments  recommends that you use the two wire Auto Control mode  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     For more information about serial communication in two  or four wire modes  refer to the  Serial Communication Issues section of Appendix B  Serial Port Information     Setting the RS 485 Transceiver Control Mode  Windows 2000 XP    To set the transceiver control mode  use the Windows 2000 XP Device  Manager  For instructions on how to use the Device Manager  refer to the  chapter with installation instructions for your hardware platform  The mode  you select in the Device Manager is automatically configured when you  open a port on a serial interface     Windows Me 9x    To set the transceiver control mode  use the Windows Me 9x Device  Manager  
155. l    400 mA maximum    Isolated Four Port Boards  Dimensions                          10 67 by 17 27 cm   4 2 by 6 8 in      VO connector                   sees 10 position modular jack    Isolation voltage  From port to port                               2 000 V    60 s  From any port to host computer       2 000 V     60 s         The four port PCI serial boards require a cable to convert the 10 position modular jack to either DB 9 or DB 25 connectors     NI Serial Hardware and Software for Windows E 2 ni com    Appendix E Specifications    Power requirement  from PCI channel     PCI 485 4          asennad 1 000 mA typical  1 500 mA maximum  PCI 232 4  tS VDC ue 500 mA typical  750 mA maximum  Eight Port Boards  Dimensions    reta 10 67 by14 48 cm   4 2 by 5 7 in    I O connector                      sse 68 position  SCSI type connector    Power requirement  from PCI channel     PCI 485 8              1 100 mA typical  2 000 mA maximum  PCI 232 8  FS                               100 mA typical  180 mA maximum  x12 VDC vc iecur 80 mA typical  800 mA maximum  16 Port Boards  DIMENSIONS                  10 67 by17 52        4 2 by 6 9 in         connector                 sese 100 position  SCSI type  connector  Power requirement  from PCI channel   PCI 232 16  T3               250 mA typical  500 mA maximum       1 The eight port PCI serial boards require a cable  which is included in your kit  to convert the 68 position connector to  eight DB 9 connectors       The 16 port P
156. lation program removes all folders   utilities  and registry entries associated with the NI Serial software     Shut down Windows NT  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 3  PXI Serial  Hardware Installation  Verification  and Configuration     USB Hardware       To uninstall the USB serial hardware and NI Serial  USB  software   complete the following steps     1   2     Select Start  Settings   Control Panel    Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall    Select NI Serial  USB  and click the Change Remove or  Add Remove button  The uninstallation program removes all folders   utilities  and registry entries associated with the NI Serial software     Physically disconnect the USB serial hardware from your system     NI Serial Hardware and Software for Windows C 12 ni com    Appendix C Uninstalling the Hardware and Software    The uninstall program removes all hardware configuration information and  items that the setup wizard installed  If you added anything to a directory  that the setup wizard created  
157. ld the data between the two function calls  However  these buffers are  of finite size  and thus any data transfer that exceeds the buffer size either  times out  blocks  due to flow control   or drops data  This behavior is a  result of the test design and does not represent a hardware or driver error   Buffer sizes vary between operating systems and hardware  but typically  range from 4   8 KB in size     Does the serial hardware have built in support for protocols such as  SDLC and ModBus     Because the serial hardware uses UARTs for communication  protocols  such as SDLC and ModBus are not supported in hardware  However  these  protocols  or their derivatives  can be supported by software applications  that handle the protocol translation     NI Serial Hardware and Software for Windows D 24 ni com    Appendix D Troubleshooting and Common Questions    How do I use 9 data bit framing     While NI Serial software and hardware directly supports only 5  6  7  and  8 data bits  it may be possible to use the parity function to create a ninth data  bit  depending on your application  To create and control a ninth data bit   enable parity and set parity mark or parity space for a ninth bit of either   a 1 or 0  respectively  However  you must do this every time the ninth bit  changes state  and thus it may not work for high throughput applications     3 Note USB Serial hardware does not support 9 data bit framing     Can I use NI Serial hardware with a non Windows platform     Re
158. less efficient  Therefore  set the  Receive Buffer value below your data sizes     NI Serial Hardware and Software for Windows 3 8 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows Me 9x       Install the Software    Before you install your serial hardware  complete the following steps to  install the NI Serial software for Windows Me 9x     1   2     Install the Hardware    Select Start  Settings  Control Panel     Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the N  Serial Software for   Windows 2000 NT XP Me 9x CD and click the Next button  The setup  wizard begins  The setup wizard guides you through the necessary  steps to install the NI Serial software  To go back and change values  where appropriate  click the Back button  To exit the setup wizard at  any time  click the Cancel button     If you need to install your hardware  or if this is your first time to install  the NI Serial software for Windows Me 9x  skip to the next section   Install the Hardware  Otherwise  continue to step 6     If your hardware is already installed  restart Windows Me 9x     Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  Make sure  that Windows Default Driver is selected
159. llation  Verification  and Configuration    Figure 6 12 shows the PnP Port Configuration dialog box for an  AT 232 4 with shared IRQ  The dialog boxes for other shared IRQ AT    boards are similar        PnP Port Configuration    Resources      Za N I  AT 232 4    Resource settings              Resource type Setting     Input Output Range 0118   011F     nput Output Range 0120 0127           Interrupt Request 0  H  Setting based on   Basic configuration 0000     Change Setting          Use automate settras          Conflicting device list           Figure 6 12  PnP Port Configuration Dialog Box for the AT 232 4    Each shared IRQ AT board requires multiple base I O settings  one for each  port  and one IRQ that is shared between the ports     Input Output Range  Each Input Output Range listing  displays the I O address ranges assigned  to the corresponding port on the board    Interrupt Request  The IRQ shared between the ports on the  board         Note The niports utility informs you if your resources conflict with the resources of any    other interface in the system  It does not check for conflicts with ports on the same board   Make sure to assign base I O addresses that do not conflict with those assigned to another    port on the same board        National Instruments Corporation    NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    S Note If you are unable to change the base I O address by doubl
160. lve this  problem  complete the following steps     1  Disconnect and reconnect the USB serial hardware from the USB port     2  Verify the installed USB serial hardware     a     Select Start  Settings  Control Panel and double click the  System icon     Click the Hardware tab and the Device Manager button   Double click the Ports  COM  amp  LPT  icon to display a list of  installed ports     Verify that all USB serial communication ports are displayed  without exclamation marks      If some ports are missing or have  exclamation marks  proceed to step 3     Double click the Universal Serial Bus Controllers icon to  display a list of installed USB controllers     Verify that no USB Composite Devices have exclamation  marks      If some devices have exclamation marks  proceed to  step 3     Run the diagnostics utility to test the serial port communication   If no problems are found  you do not need to complete step 3     3  Force the driver reinstallation     a     In the list of installed ports  right click on each USB serial port   select Uninstall  and click OK     In the list of installed USB controllers  right click each USB  composite device  select Uninstall  and click OK     3 Note There may be USB devices other than NI USB serial hardware that use the USB  composite device driver  These devices may stop operation until then system scans for  hardware changes  There will be at least one USB composite driver for every two USB    serial ports        National Instruments
161. minating  resistors  figure   B 5  throughput  definition  D 23  time saving development tools  1 10  training  customer  F 1  transceiver control  RS 232 DTE DCE  7 11  transceiver mode  AT  Windows 2000  6 8  AT  Windows Me 9x  6 17  AT  Windows NT  6 23  PCI  Windows 2000  2 8  PCI  Windows Me 9x  2 16  PCI  Windows NT  2 21  PCMCIA  Windows 2000  5 7  PCMCIA  Windows Me 9x  5 14  PCMCIA  Windows NT  5 20  PXI  Windows 2000  3 8  PXI  Windows Me 9x  3 15    ni com    PXI  Windows NT  3 20  USB  Windows 2000  4 6  transceiver mode control bytes  table   7 6  transmission line using bias resistors   figure   7 8  troubleshooting  D 1  diagnostic messages  USB  D 18  Windows 2000  D 3  Windows Me 9x  D 7  Windows NT  D 14  forcing Windows to detect your hardware  Windows 2000  D 2  Windows Me 9x  D 9  freeing an interrupt request level  D 4  missing serial port in the niports list  D 12  resolving resource conflicts  D 14  resolving resource conflicts with legacy  boards  Windows 2000  D 4  Windows Me 9x  D 9  selecting conflict free resources  D 5  troubleshooting resources  F 1  two port boards specifications  AT  E 10  isolated two port boards  AT  E 10  PCI E 1  PCI  E 1  PXI  E 4  two wire devices  A 1  connecting  A 1  typical full duplex system  figure   B 4  typical half duplex system  figure   B 4    U   uninstalling serial hardware  AT Windows Me 9x  C 20  AT  Windows 2000  C 19  AT  Windows NT  C 22       National Instruments Corporation    Index    PCI  Windows 20
162. more information     FCC DOC Warnings    This equipment generates and uses radio frequency energy and  if not installed and used in strict accordance with the instructions  in this manual and the CE Marking Declaration of Conformity   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      Changes or modifications not expressly approved by National Instruments could void the user   s authority to operate the  equipment under the FCC Rules     Class A    Federal Communications Commission    This equipment has been tested and found to comply with the limits for a Class A digital device  pursuant to part 15 of the FCC  Rules  These limits are designed to provide reasonable protection against harmful interference when the equipment is operated  in a commercial environment  This equipment generates  uses  and can radiate radio frequency energy and  if not installed and  used in accordance with the instruction manual  may cause harmful interference to radio communications  Operation of this  equipment in a residential area is likely to cause harmful interference in which case the user is required to correct the interference  at his own expense     Canadian Department of Communications  This Class A digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations   Cet appareil num  rique de la classe 
163. move the hardware information  or click the Cancel button to cancel  your request     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     3  Select the NI Serial software you want to uninstall  and click the  Add Remove button  The uninstallation program removes all folders   utilities  and registry entries associated with the NI Serial software     NI Serial Hardware and Software for Windows C 10 ni com    Appendix C Uninstalling the Hardware and Software    4  Shut down Windows Me 9x  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 3  PXI Serial  Hardware Installation  Verification  and Configuration     Windows NT  Uninstall the Hardware    Before you physically remove the serial hardware from your system  you   must remove the hardware 
164. multiple interfaces need learn only one API     Another advantage of NI VISA is that it is an object oriented API that will  easily adapt to new instrumentation interfaces as they evolve  making  application migration to the new interfaces easy     VISA is the industry standard for developing instrument drivers  Most  current drivers written by National Instruments use NI VISA and support  Windows  Solaris 2  VxWorks  Linux  and Macintosh  as long as the  appropriate system level drivers are available for that platform  NI VISA  for VxWorks currently supports only the VXI and Serial interfaces        National Instruments Corporation 1 11 NI Serial Hardware and Software for Windows       PCI Serial Hardware  Installation  Verification  and  Configuration    This chapter describes how to install the NI Serial software and PCI serial  hardware and how to verify the installation  It also describes how to  configure the communication port settings     To begin your installation  see the section of this chapter containing  instructions for your operating system  Windows 2000 XP   Windows Me 9x  or Windows NT      Windows 2000 XP       Install the Software   Before you install your serial hardware  complete the following steps to   install the NI Serial software for Windows 2000 XP    1  Select Start  Settings  Control Panel    2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears    3  Click the Add New Programs button and then the CD or Floppy  
165. municate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Communication Port Settings    The serial configuration utility is fully integrated into the  Windows 2000 XP Device Manager  You can use it to view or change the  configuration of your serial ports     To configure a serial port  complete the following steps     I         National Instruments Corporation    Select Start  Settings  Control Panel and double click the  System icon     Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon     3 5 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    4  Double click the port you want to configure and refer to the following  instructions     e      view the hardware resources assigned to the serial port  click  the Resources tab     e      view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e To change the RS 485 transceiver mode  or to enable or disable  the FIFOs on the serial hardware  in the
166. n  Verification  and Configuration  Windows 2000 XPD         etae eee e eH e ep dull ean 5 1  Install the SOFBWAre    ente rer e NE eg e I rne e Tops 5 1  Install the Hardware    eterne erinnere entente rette ein 5 2  Verify the Install  ti  n     eee e ree eR ER RAE 5 3  Configure Communication Port Settings                   ssessseeeeeee 5 5  WindoWsMe Ox                    Rehd re e e pee ee testen pde 5 8  Install the SoftWare ivi  eo EROR e et epe 5 8  Installthe HardWwate    rotten b rs 5 8  Verify the Installation    the eia arp ere ere 5 9  Configure Communication Port Settings                sse 5 12    NI Serial Hardware and Software for Windows vi ni com    Contents    WAndOwsEN Tis seeds e ed reet sabes Oe etel ened catered sse tesis tee erae ahaa    5 15  Install the NI Serial Software                       eese enne 5 15  Install the PCMCIA Serial                                                       5 16  Verify the Installation    iecit er dete eite ea 5 17  Configure Communication Port Settings                     esee 5 18    Chapter 6  AT Serial Hardware Installation  Verification  and Configuration    Windows 2000 XD            eerte tertii tette ere re p i eet 6 1  Install the Software  a2 ete AEE e PRU RO VEA        6 1  Installithe Hardware s m i rnt               Per        6 2  Verify the Installation    nennen rennen nennen 6 3  Configure Communication Port Settings                   sese 6 5   Windows              RTT HY dete    eae or P e E es 6 9
167. nal Instruments Corporation 6 3 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double click the Multi function adapters icon     The AT serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child device  is listed as a port under the Ports  COM  amp  LPT  icon     Figure 6 2 shows the Device Manager tab for serial hardware that is  installed properly            SoewceMenager                  lis    Action                    12  1              Computer       Computer    amp  Disk drives         Display adapters   23  DVD CD ROM drives      Floppy disk controllers    amp  Floppy disk drives   Sy IDE ATA ATAPI controllers       Keyboards   TA Mice and other pointing devices   3 Monitors    lt Y Multifunction adapters   gt  N I  AT 232 4 Multi Function Parent   E   Network adapters      PCMCIA adapters        Ports  COM  amp  LPT   R   Communications Port  COM3   F N I  AT 232 4  Shared IRQ  Communications Port  COM20   F N I  AT 232 4  Shared IRQ  Communications Port  COM21   E N I  AT 232 4  Shared IRQ  Communications Port  COM25   E N I  AT 232 4  Shared IRQ  Communications Port  COM26        Printer Port  LPT1    i  Sound  video and game controllers      s                                           
168. nd  eight port   PXI 8422  two and four port   and PXI 8423  two and  four port     e  USB 232  USB 232 2  USB 232 4  USB 485  USB 485 2  and  USB 485 4    e  PCMCIA 222  PCMCIA 232 2  PCMCIA 232 4  PCMCIA 485  and  PCMCIA 485 2    e  AT 232 2  AT 232 4  AT 485 2  and AT 485 4 boards in both isolated  and nonisolated versions    This manual assumes that you are already familiar with  Windows 2000 NT XP Me 9x           5  AN    AT serial boards  bold    The following conventions appear in this manual     The    symbol leads you through nested menu items and dialog box options  to a final action  The sequence File  Page Setup  Options directs you to  pull down the File menu  select the Page Setup item  and select Options  from the last dialog box     The   symbol indicates that the following text applies only to a specific  product  a specific operating system  or a specific software version     This icon denotes a note  which alerts you to important information     This icon denotes a caution  which advises you of precautions to take to  avoid injury  data loss  or a system crash     AT serial boards refers to all port versions of the AT serial boards     Bold text denotes items that you must select or click on in the software   such as menu items and dialog box options  Bold text also denotes  parameter names         National Instruments Corporation ix NI Serial Hardware and Software for Windows    About This Manual    italic    monospace    monospace bold    PCI serial board
169. nd Configuration    General Port Settings    The following sections describe the options you can set in the General  Port Settings dialog box  shown in Figure 2 11     General Port Settings x     zA N I  PCI 232 4       Serial Number  41417D PORT   1    EOM Port Number   7     Transceiver Mode             FIFO Enabled    Receive FIFO size          Low  8  High  56   Transmit FIFO size           Low  8  High  60              Cancel Resources OK  med   Bee   _ox_           Figure 2 11  General Port Settings Dialog Box    COM Port Number    You can use the COM Port Number control to change the logical COMx  name of the selected port     Transceiver Mode    The Transceiver Mode list box shows the transceiver mode in use  and  applies only to PCI 485 boards  For more information about transceiver  modes  refer to Chapter 7  Using Your Serial Hardware     FIFO Enabled    You can use the FIFO Enabled checkbox to enable or disable the  FIFO buffers on the selected port  FIFO buffers are present on the  16550 compatible UARTs   one for the transmitter and one for  the receiver         National Instruments Corporation 2 21 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    FIFO Buffer Size    The Receive FIFO size control sets the number of characters received in  the FIFO before the PC is interrupted to read the data  The Transmit FIFO  size control sets the maximum number of bytes written to the FIFO in a  blo
170. ndows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     6 9 NI Serial Hardware and Software for Windows    Chapter 6    Install the Hardware    5    A    AT Serial Hardware Installation  Verification  and Configuration    This section describes how to install your AT serial hardware     Note Ifyou are installing an AT 485  you might need to adjust the value of the bias  resistors  depending on your application  For more information  refer to Chapter 7  Using  Your Serial Hardware     Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     To install your AT serial board  complete the following steps     1     Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the AT serial board     Remove the top or side cover of the computer   Find an unused AT expansion slot in your computer     Remove the corresponding expansion slot cover on the back panel of  the computer     Touch a metal part on your chassis to discharge any static electricity     Insert the AT serial board into the slot with the serial connectors toward  the opening on the back panel  Make sure that you insert the board all  the way into the slot  The board might seem to click firmly into place   even though it is only part of the way in  Figure 6 5 shows how t
171. ng board                      descriptions   Table 1 1         Board Names and Descriptions  PXI Board Name Description  PXI 8420 RS 232 two port  RS 232 four port  RS 232 eight port  RS 232 16 port  PXI 8421 RS 485 two port  RS 485 four port  RS 485 eight port  PXI 8422 RS 232 two port isolated  RS 232 four port isolated  PXI 8423 RS 485 two port isolated  RS 485 four port isolated             USB Kits    The serial hardware gives you a variety of solutions for serial  communication  The USB 232 hardware works with the RS 232 interface  standard  and the USB 485 hardware works with the RS 422 and RS 485  interface standards  You can use the USB 232 hardware for serial  communication up to distances of 50 ft  You can connect the USB 485  hardware to up to 31 devices using serial cable lengths up to 4 000 ft     Additionally  the USB serial hardware is available in one port versions   USB 232 and USB 485   two port versions  USB 232 2 and USB 485 2   and four port versions  USB 232 4 and USB 485 4   All versions use DB 9  connectors  Throughout this manual  USB serial hardware refers to all  versions of the USB serial hardware     The USB 232 two and four port hardware supports three hardware  transceiver modes supporting both DTE and DCE configurations  For more  information about transceiver control modes  refer to Chapter 7  Using  Your Serial Hardware     The USB 485 hardware supports four hardware transceiver control modes  for reliable communication with two  and four wi
172. nstall the Hardware    To install the PCMCIA 232 or PCMCIA 485 in your computer  first start  Windows 2000 XP  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     Windows 2000 XP should automatically detect your hardware and display  the Found New Hardware Wizard  Complete the wizard by clicking Next  in each window and then Finish     If the Found New Hardware Wizard does not appear  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     Figure 5 1 shows how to insert a PCMCIA serial card and how to connect  the cable     NI Serial Hardware and Software for Windows 5 2 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration                         1 PCMCIA Socket 2 PCMCIA Serial Cable  Figure 5 1  Inserting a PCMCIA Serial Card             The serial hardware installation is complete  Continue to the next section   Verify the Installation     Verify the Installation    To verify the hardware and software installation  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Click the Hardware tab and then click the Device Manager button   3  Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double cl
173. nt to remove  and click the  Add Remove button  The uninstall program runs and removes all  folders  programs  VxDs  DLLs  and registry entries associated with  the NI Serial software     4  Remove your PCMCIA card from your computer     To reinstall the hardware and software  refer to Chapter 4  USB Serial  Hardware Installation  Verification  and Configuration     Windows NT  Uninstall the Hardware    Before physically removing the serial hardware  you must remove the  hardware information from the Windows NT Control Panel     Complete the following steps to uninstall the hardware   1  Double click the niports icon under Start  Settings  Control Panel     2  Select the port to remove from the list of ports as shown in Figure C 9         National Instruments Corporation C 17 NI Serial Hardware and Software for Windows    Appendix C    5    Uninstalling the Hardware and Software    3        National Instruments   Ports   x    Ports           6        PCMCIA 232 2 ae Close      Settings           Delete               N I  PCMCIA 232 2       Add a New PCMCIA card      PCMCIA 485      Add                     Figure C 9  Selecting an Interface to Uninstall    Click the Delete button     Note For two  and four port PCMCIA cards  all ports on the interface are removed     Uninstall the Software    Before uninstalling the software  remove all serial port information from  the Windows NT Control Panel  as described in the previous section  You  do not need to shut down Windows NT bef
174. o  install the AT serial board into an expansion slot     NI Serial Hardware and Software for Windows 6 10 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration                         1 PC 2 AT Socket 3 AT Serial Card          Figure 6 5  AT Serial Board Installation  7  Screw the AT serial board mounting bracket to the back panel  mounting rail of the computer   Replace the cover   9  Turn on your computer and start Windows Me 9x     10  Watch for Windows Me 9x to display one or more New Hardware  Found dialog boxes  In the dialog box  select Windows Default  Driver and click OK     If no New Hardware Found dialog box appears  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete         National Instruments Corporation 6 11 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Verify the Installation    When you begin to verify the installation  keep in mind that the serial  ports built into the computer are typically named from COMI to COMA   Windows Me 9x typically issues port names to the ports on NI Serial  hardware starting with COM5  COM6  and so on  If not enough resources  are available to assign to all the NI serial ports  the port with the higher  COMXx name is left unconfigured     Double click the System icon in the Control Panel  In the System  Propert
175. o send    subminiature 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   data terminal ready   the overscore denotes that the signal is active low    the means of bandwidth usage in a serial system    Electronic Industries Association    electromagnetic interference    NI Serial Hardware and Software for Windows G 2 ni com    FCC  FIFO    ft    GND    HSI    HSO    I O    IEEE    IRQ    ISA    Kbaud        National Instruments Corporation G 3    Federal Communications Commission  First In First Out    feet    ground    handshake input  handshake output    Hertz    input output   Institute of Electrical and Electronic Engineers  inches   interrupt request    Industry Standard Architecture    kilobits per second    Glossary    NI Serial Hardware and Software for Windows    Glossary    MB    PC    PCI    RAM  RI    RTS    SCSI    TX  TXD    TXRDY    meters    megabytes of memory    personal computer    Peripheral Components Interconnect    random access memory  ring indicator   request to send   receive    receive data   the overscore denotes that the signal is active low    seconds    Small Computer Systems Interface    transmit  transmit data   the overscore denotes that the signal is active low    transmit ready   the overscore denotes that the signal is active low    NI Serial Hardware and Software for
176. oftware installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Communication Port Settings    The serial configuration utility is fully integrated into the Windows  2000 XP Device Manager  You can use it to view or change the  configuration of your serial ports     To configure a serial port  complete the following steps     I         National Instruments Corporation    Select Start  Settings  Control Panel and double click the  System icon     Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon     6 5 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    4  Double click the port you want to configure and refer to the following  instructions     e      view the hardware resources assigned to the serial port  click  the Resources tab     e      view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e To change the RS 485 transceiver mode  or to enable or disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab          Note    Transceiver modes apply to RS 485 interfaces only  For more information about  transceiver modes  refer to Chapter 7  Using
177. olid Red    Port is open  but no valid signals detected   USB 232 only     Solid Green    Port is open  Blinking Yellow   Port is transmitting  Blinking Green   Port is receiving    Alternated Blinking Green Yellow    Port is transmitting  and receiving    Blinking Red   Port error  framing error  FIFO overrun  or  parity error                    National Instruments Corporation 7 17 NI Serial Hardware and Software for Windows    Chapter 7    Using Your Serial Hardware       TESTER          a    y                                                                                                                                                                                                                         NATIONAL F     INSTRUMENTS READY PORTI PORT2  PORT3 PORT4 USB to RS 232               _3 232         _  1 READY LED 2 PORT LEDs          Figure 7 3  USB Serial Hardware LEDs    Retrieving the Serial Interface Type    5    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for retrieving the serial interface type  of a paticular serial communication port  To retrieve the serial interface  type  complete the following steps     Note You can use the header file NISerial h  included on your CD  to integrate this    code into your program easily     Add the following lines to your source code      include  lt winioctl h gt    typedef ULONG SERIAL INTERFACE    define RS485 INTERFACE 0x00   define RS232 INTERFACE 0x01     define NIS
178. on  connect the cables   Refer to Appendix A  Connector Descriptions  for information about cable  connections     Configure Communication Port Settings    The serial configuration utility is fully integrated with the Windows NT  Control Panel  You can use it to examine or modify the configuration of the  serial port     Complete the following steps to configure the serial port     1  Select Start  Settings  Control Panel and double click the niports  icon  A list of National Instruments ports appears  as shown in  Figure 5 10     NI Serial Hardware and Software for Windows 5 18 ni com       National Instruments Corporation    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    National Instruments   Ports    Parts     COME  N LPCMCIA 232 2     x    Close      COM  _N I  PCMCIA       Settings       ELM       Add a New PCMCIA card      PCMCIA 485 m   Add                  Figure 5 10  niports Configuration Utility    Select the port you are interested in     Click the Settings button to view or configure the port settings  Refer  to the next section  General Port Settings  for more information     Click the Resources button in the General Port Settings dialog box  to view or configure the resources for the port  Refer to the Resource  Settings section for more information     Click Delete to remove hardware information about the port from  Windows NT  You should do this before you physically remove your  PCMCIA card     Click Add to configure resou
179. onfiguration    Double click the System icon in the Control Panel  In the System  Properties window that appears  select the Device Manager tab  and click  the View devices by type button at the top of the page  If necessary   double click the Ports  COM  amp  LPT  icon to view all of the ports     The two port and four port PCMCIA cards are configured as devices  belonging to the multi function adapters class  The multi function parent  device is listed under the Multi function adapters icon  and each child  device is listed as a port under the Ports  COM  amp  LPT  icon  If you have  installed one of these interfaces  double click the Multi function adapters  icon as well as the Ports  COM  amp  LPT  icon     If a circled exclamation point appears through the port icon  the serial port  is not installed properly  A problem with the port could have occurred  because Windows Me 9x could not acquire resources for the port or  because an interrupt request resource conflict exists  If no circled  exclamation point appears  the serial hardware is installed correctly   Figure 5 6 shows an example of NI Serial hardware that is installed    properly        System Properties   21 x     General Device Manager   Hardware Profiles   Performance         View devices by type    View devices by connection    E   Keyboard  3 Modem         Monitor  H A Mouse   lt  Multifunction adapters    lt  gt  NI PCMCIA 232 Multifunction Parent  88 Network adapters  9 Other devices      PCMCIA socket    
180. ontact National Instruments     Device Configuration is Corrupted or Internal Loopback Failed    Ifthe device configuration may be corruptedorport failed  the internal Loop Back Test error message appears  an internal  device error has occurred  Uninstall and reinstall the NI Serial  USB   hardware and software  disconnect all serial cables  and try the diagnostic  program again  If this does not resolve the problem  contact National  Instruments     NI Serial Hardware and Software for Windows D 18 ni com    Appendix D Troubleshooting and Common Questions    Common Questions       How can I determine which type of NI Serial hardware I have   installed    Windows 2000 XP Me 9x   1  Select Start  Settings  Control Panel and double click the  System icon    2  Click the Hardware tab and then click the Device Manager button or  select the Device Manager tab    3  Double click the Ports  COM  amp  LPT  icon to display a list of  installed ports    Windows NT   1  Select Start  Settings  Control Panel and double click the  System icon     2  Double click the niports icon     How can I determine which version of the NI Serial software I have  installed     The Readme  txt file gives the version of the software  To open the file   select either Start  Programs  National Instruments  NI Serial     Read Me or Start  Programs  National Instruments  NI Serial   USB    Read Me     What do I do if the diagnostic test fails with an error     Refer to the Troubleshooting Diagnostic Messages 
181. ore uninstalling the software     Complete the following steps to remove the NI Serial software     1   2     Select Start  Settings   Control Panel     Double click the Add Remove Programs icon in the Control Panel  to launch the Add Remove Programs applet  The Add Remove  Programs Properties dialog box appears  This dialog box lists the  software available for removal     Select the serial software you want to remove  and click the  Add Remove button  The uninstall program runs and removes all  folders  utilities  and registry entries associated with the NI Serial  software     Shut down Windows NT  power off your computer  and remove your  serial interfaces     To reinstall the hardware and software  refer to Chapter 4  USB Serial  Hardware Installation  Verification  and Configuration     NI Serial Hardware and Software for Windows C 18 ni com    Appendix C Uninstalling the Hardware and Software    AT Hardware       Windows 2000    Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so  complete the following  steps   1  Select Start  Settings  Control Panel and double click the  System icon   2  Select the Hardware tab and click the Device Manager button   Double click the Multi function adapters icon     4  From the Multi function adapters list  right click the National  Instruments interface that you want to uninstall  as shown in  Figure C 10        8  Device Manager  s  3  1501 
182. ore you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     To install your PCI serial board  complete the following steps     1     Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the PCI serial board     Remove the top or side cover of the computer   Find an unused PCI expansion slot in your computer     Remove the corresponding expansion slot cover on the back panel of  the computer     Touch a metal part on your chassis to discharge any static electricity     Insert the PCI serial board into the slot with the serial connectors  toward the opening on the back panel  Make sure that you insert the  board all the way into the slot  The board might seem to click firmly  into place  even though it is only part of the way in  Figure 2 9 shows  how to install the PCI serial board into an expansion slot                             PC 2       Serial Board 3 PCI Slot          Figure 2 9  Installing the PCI Serial Board    NI Serial Hardware and Software for Windows 2 18 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    7  Screw the PCI serial board mounting bracket to the back panel  mounting rail of the computer     Replace the cover     9  Turn on your computer and start Windows NT     The hardware installation is complete     Verify th
183. ort to                                       3 000 V      60 s  From Any Port to Host                            2000       60 s  Power requirement   from PC AT I O channel   AT 485 4 Isolated  45 VDC  zai eene des 300 mA typical  360 mA maximum  AT 232 4 Isolated  AS        Bieta aes  280 mA typical    320 mA maximum    Environmental Characteristics    Operating environment  Ambient temperature                         0 to 70   C    Relative humidity                              10 to 90   noncondensing    Storage environment    Ambient temperature                            40 to 85   C   Relative humidity                              5 to 9596  noncondensing  EMI   AF sertal  utet FCC Class B verified   AT serial isolated                               FCC Class A verified    Software Characteristics    Maximum serial transfer rate                   115 200 bps          The four port isolated AT serial board requires cables  which are included in your kit  to convert the 10 position modular jack  to a DB 9 connector  Use only the type of cables provided in your kit       Actual speed may vary considerably from speed shown due to system and instrumentation capabilities     NI Serial Hardware and Software for Windows E 12 ni com       Technical Support and  Professional Services    Visit the following sections of the National Instruments Web site at  ni com for technical support and professional services        National Instruments Corporation    Support   Online technical su
184. orts        Figure A 4 shows how to connect the cables when you install a four port  PCI serial board                         10 Position Modular Jack    to DB 9 Cable                                                    m     lt t    Serial Board             o                lt i    NE    485 Terminator   485 Boards Only        Additional  Serial Cable    Toh                      10 Position Modular Jack    to DB 25 Cable    3  Additional  Serial Cable          National Instruments Corporation    Figure A 4  Connecting the Cables to Your Four Port PCI Serial Board       5    NI Serial Hardware and Software for Windows          Appendix A Connector Descriptions    68 Pin Connector       Figure A 5 and Table A 4 give the pin locations and descriptions of the    68 pin connector           PIN 68    PIN 35                      PIN 34    PIN 1          NI Serial Hardware and Software for Windows    Figure A 5  68 Pin Connector Pin Locations    A 6    ni com    Appendix A Connector Descriptions    Table A 4  68 Pin Connector Pin Descriptions                                           68 Pin Connector Port 485 232  485 D Sub 9 232 D Sub 9  1 2 3 4 5 6 7 8 Signal Connector Signal Connector  66 57 49 40 32 23 15 6 RXD  5 DCD 1  68 59 51 42 34 25 17 8 CTS  2 RXD 2  65 56 48 39 31 22 14 5 RTS  3 TXD 3  64 55 47 38 30 21 13 4 RXD  4 DTR 4  60 60 43 43 26 26 9 9 GND 1 GND 5  63 54 46 37 29 20 12 3 CTS  6 DSR 6  62 53 45 36 28 19 11 2 RTS  7 RTS 7  61 52 44 35 27 18 10 1 TXD  8 CTS 8  67 58 
185. ot allow you to change the settings   select the configuration that gives you a conflict free base address and  interrupt level from the Setting based on list box    7  Click the OK button to save your changes    PCMCIA Boards    When the Device Manager indicates a conflict with another device  you can  usually correct the problem by manually selecting conflict free resources   To do so  complete the following steps     1     Select Start  Settings  Control Panel and double click the  System icon     Click the Device Manager tab and then click the View devices by  type button     If you have a multiport card  double click the Multi function  adapters icon  Otherwise  double click the Ports  COM  amp  LPT   icon     From the expanded list  double click the serial interface that you want  to change     Click the Resources tab     Note To change the resources of ports on two port or four port PCMCIA cards from  within the Device Manager  you must open the Multi function adapters class and  double click the name of your interface  Use the Resources page to change the resources   Any resource changes are automatically reflected to the child devices     6     Uncheck the Use automatic settings checkbox and click the Change  Setting button  If the system does not allow you to change the settings   select the configuration that gives you a conflict free base address and  interrupt level from the Setting based on list box     Click the OK button to save your changes     NI Serial Hard
186. oubleshooting and Common Questions     When you have finished verifying the hardware resources  proceed to the  next section  Determine Which Physical Port Is Associated with COMx        National Instruments Corporation 6 13 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Determine Which Physical Port Is Associated  with COMx    For every port of the newly installed serial interface  double click the name  of the serial port in the Device Manager  Then  click the Port Settings tab   The top of this page displays the serial number of the serial hardware  and  the physical port number starting at 1  On all serial hardware  PORTI refers  to the top port  PORT2 refers to the next port down  and so on     When you have finished verifying the driver installation and physical port   proceed to the next section  Run the Diagnostic Test     Run the Diagnostic Test    To verify and test the installation  run the diagnostic program that came  with your NI Serial software  The diagnostic program verifies that your  serial driver is installed properly  that the configuration of your hardware  does not conflict with anything else in your system  and that the serial  driver can communicate with your hardware correctly     To run the test  select the diagnostics item under Start  Programs    National Instruments Serial     If the diagnostic test completes with no failures  your serial hardware  and software are inst
187. owing  instructions     e      view the hardware resources assigned to the serial port  click  the Resources tab     e      view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e To change the RS 485 transceiver mode  or to enable or disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab          Note    Transceiver modes apply to RS 485 interfaces only  For more information about  transceiver modes  refer to Chapter 7  Using Your Serial Hardware     5       save your changes  click the OK button  To exit without saving the  changes  click the Cancel button     Port Settings Tab    In the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of a field  When you click the arrow button  a list  of valid values for that field appears and you can select the desired setting  from the list  Figure 2 3 shows the Port Settings tab     NI Serial Hardware and Software for Windows 2 6 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    N I         232 8 Communications Port 1  COM36  Properties   x      Driver   Resowess                          Figure 2 3  Port Settings Tab    Advanced Settings    To view or change the advanced settings  click the Advanced button   Figure 2 4 show
188. p  communication with your instruments     e ComponentWorks   for Visual C   takes advantage of integrated  C   libraries and ActiveX to help you build measurement and  automation applications  With the ComponentWorks   instrument  classes  you can use the IEEE 488 2 library and VISA  an  industry standard I O library  to communicate with GPIB  VXI   or Serial devices using the same set of components     After you install your serial hardware and the NI Serial software  you can  use NI VISA in LabVIEW and Measurement Studio with your serial  interface  If you already have one or more of these applications and want to  use them with your serial interface  refer to your product documentation for  information about serial I O functions  For ordering information  contact  National Instruments     NI VISA is a standard I O application programming interface  API  for  instrumentation programming     In its full implementation  NI VISA can control VXI VME  PXI  GPIB   TCP IP  or Serial instruments  making the appropriate driver calls  depending on the type of instrument being used  NI VISA uses the same  operations to communicate with instruments regardless of the interface  type  For example  the NI VISA command to write an ASCII string to a  message based instrument is the same whether the instrument is Serial   GPIB  or VXI  As a result  NI VISA gives you interface independence   This makes it easier to switch bus interfaces and means that users who must  program instruments for 
189. p network using terminating resistors                                                                                                                                   Slave 1 Slave 2 Slave n  Rx Rx Rx        b        if   D 21000  1000  5           Rx  Figure B 3  Multidrop Network Using Terminating Resistors  Figure B 4 shows a full duplex network using terminating resistors   Slave 1 Slave 2 Slaven  Tx Tx  Y    aN AN      100 Q 100 Q    5 gt      i   ke  2      gt           100 Q 1000  E poe    VE                 Figure B 4  Full Duplex Network Using Terminating Resistors    Bias Resistors    An RS 485 transmission line enters an indeterminate state if no nodes are  transmitting on it  This indeterminate state can cause the receivers to  receive invalid data bits from noise picked up on the cable  To prevent a line  from receiving these data bits  the transmission line can be forced into a  known state by installing two bias resistors at one node on the transmission  line  Doing so creates a voltage divider that forces the voltage between the  differential pair to be greater than 200 mV  the threshold voltage for the  receiver  You should install these resistors on only one node  For more  information about RS 485 bias resistors  refer to Chapter 7  Using Your  Serial Hardware         National Instruments Corporation B 5 NI Serial Hardware and Software for Windows    Appendix B    Serial Port Information    RS 232 DTE versus DCE    In the RS 232 specification  DTE  Data Te
190. patibility  EMC  and product  safety  You can obtain the DoC for your product by visiting  ni com hardref  nsf     F 1 NI Serial Hardware and Software for Windows    Appendix F Technical Support and Professional Services    e Calibration Certificate   If your product supports calibration  you  can obtain the calibration certificate for your product at  ni com calibration     If you searched ni   com and could not find the answers you need  contact  your local office or NI corporate headquarters  Phone numbers for our  worldwide offices are listed at the front of this manual  You also can visit  the Worldwide Offices section of ni com niglobal to access the branch  office Web sites  which provide up to date contact information  support  phone numbers  email addresses  and current events     NI Serial Hardware and Software for Windows F 2 ni com    Glossary                                     Symbol Prefix Value  p pico 10 12   n nano 107    u micro 10 6   m milli 10 3   k kilo 103   M mega 106      giga 10     t tera 1022                   Symbols    5 degrees  Q ohms    percent    A amperes    ANSI American National Standards Institute    b bits    B bytes       National Instruments Corporation G 1 NI Serial Hardware and Software for Windows    Glossary    baud    bps    COM    CTS    DB xx  DCD  DCE  DLL  DMA  DSR  DTE  DTR    duplex    EIA    EMI    bits per second    bits per second    Celsius  Computer Output Microform  used in reference to a communication port    clear t
191. ppendix D  Troubleshooting and Common Questions     b  Selectthe COM port that you want to verify and click the Settings  button     The General Port Settings dialog box displays the serial number  of the serial hardware and the physical port number starting at 1   For all serial hardware  PORTI refers to the top port  PORT2  refers to the next port down  and so on     2  Torun the diagnostic utility  select Start  Programs  National  Instruments Serial  diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     3  After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     NI Serial Hardware and Software for Windows 3 18 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Configure Communication Port Settings    The serial configuration utility is fully integrated into the Windows NT  Control Panel  You can use it to view or change the configuration of your  serial ports     To configure a serial port  complete the following steps     
192. pport resources include the following         Self Help Resources   For immediate answers and solutions   visit our extensive library of technical support resources available  in English  Japanese  and Spanish at ni   com  support  These  resources are available for most products at no cost to registered  users and include software drivers and updates  a KnowledgeBase   product manuals  step by step troubleshooting wizards  hardware  schematics and conformity documentation  example code   tutorials and application notes  instrument drivers  discussion  forums  a measurement glossary  and so on         Assisted Support Options   Contact NI engineers and other  measurement and automation professionals by visiting  ni com ask  Our online system helps you define your question  and connects you to the experts by phone  discussion forum   or email     Training    Visit ni   com custed for self paced tutorials  videos  and  interactive CDs  You also can register for instructor led  hands on  courses at locations around the world     System Integration   If you have time constraints  limited in house  technical resources  or other project challenges  NI Alliance Program  members can help  To learn more  call your local NI office or visit  ni com alliance     Declaration of Conformity  DoC    A DoC is our claim of  compliance with various European Council Directives using the  manufacturer   s self declaration of conformance  This system affords  the user protection for electronic com
193. quire between the  two DTEs  To communicate from one DTE serial port to another  use a  null modem cable          Tn Revision D of the RS 232 specification  a DCE is a Data Circuit Terminating Equipment     NI Serial Hardware and Software for Windows B 6 ni com    Appendix B Serial Port Information    Figure B 6 shows null modem cabling in a DTE to DTE interface                Rx D RxD  _   Pin 2 Pin 2    DTE DTE  Pin 3 xD TxD  pin 3                                  Figure B 6  Null Modem Cabling in a DTE to DTE Interface    PCI PXI PCMCIA AT RS 232 ports are DTE serial ports     DCE Mode and Auto232    In addition to supporting the standard DTE transceiver mode  the USB 232  two and four port hardware also supports a DCE transceiver mode     In this mode  the USB 232 two  and four port hardware acts as a DCE  interface and can generate the communication signals RI and DCD   Because the Win32 API does not support the generation of these signals   special IOCTL calls must be used  For more information  refer to  Chapter 7  Using Your Serial Hardware  In addition  TXD is swapped with  RXD  CTS is swapped with RTS  and DTR is swapped with DSR  The  USB 232 hardware can be forced into either DTE or DCE modes or an  automatic detection mode  Auto232   When in Auto232 mode  a DTE or  DCE device can be connected with either a straight through or null modem  cable  and the hardware automatically selects the proper transceiver mode   For more information about setting these modes  ref
194. r chassis before removing the board from the package     Complete the following steps to install your AT serial board        Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the AT serial board     2  Remove the top or side cover of the computer   Remove the expansion slot cover on the back of the computer     4  Insert the AT serial board into an unused slot with the serial connectors  sticking out of the opening on the back panel  Make sure that you insert  the board all the way into the slot  The board may seem to click firmly  into place  even though it is only part of the way in  Figure 6 9 shows  the installation of an AT serial board         National Instruments Corporation 6 19 NI Serial Hardware and Software for Windows    Chapter 6    AT Serial Hardware Installation  Verification  and Configuration                            PC 2 AT Socket 3 AT Serial Card       Figure 6 9  AT Serial Board Installation    Screw the mounting bracket of the AT serial board to the back panel  rail of the computer     Replace the cover  and turn on your computer     Windows NT displays one or more New Hardware Found dialog  boxes  depending on your serial hardware  In each dialog box  make  sure that Windows Default Driver is selected  and click OK     The serial configuration software displays a PnP Port Configuration  dialog box  Correct any resource settings that may have conflicts and  then click OK  For more information on selectin
195. r serial board     To install your PCI serial board  complete the following steps     1     Turn off your computer  Keep the computer plugged in so that it  remains grounded while you install the PCI serial board     Remove the top or side cover of the computer   Find an unused PCI expansion slot in your computer     Remove the corresponding expansion slot cover on the back panel of  the computer     Touch a metal part on your chassis to discharge any static electricity     Insert the PCI serial board into the slot with the serial connectors  toward the opening on the back panel  Make sure that you insert the  board all the way into the slot  The board might seem to click firmly  into place  even though it is only part of the way in  Figure 2 5 shows  how to install the PCI serial board into an expansion slot     NI Serial Hardware and Software for Windows 2 10 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration                            PC 2 PCI Serial Board 3 PCISIot          9     Figure 2 5  PCI Serial Board Installation  Screw the PCI serial board mounting bracket to the back panel  mounting rail of the computer   Replace the cover     Turn on your computer and start Windows Me 9x     10  Windows Me 9x should automatically detect your hardware and    display one or more New Hardware Found dialog boxes  Your  operating system  Windows Me 9x  may show the Windows Default  Driver option  If so  make sure the Windows Default Driver is  sele
196. r software can enable or disable the bias resistors programatically  by making DeviceloControl calls to the serial driver     Setting the RS 485 Programmically Controlled Bias Resistors with  DeviceloControl    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for programming the RS 485 bias  resistor mode  To set and retrieve the RS 485 bias resistor mode  complete  the following steps     B Note You can use the header file NISerial  h  included on your CD  to integrate this  code into your program easily     1  Add the following lines to your source code      include  lt winioctl h gt    typedef ULONG SERIAL RS485 BIAS    define RS485 BIAS OFF 0   define RS485 BIAS ON 1     define NISERIAL SET RS485 BIAS  CTL CODE FILE DEVICE SERIAL PORT   4031 METHOD BUFFERED  FILE ANY ACCESS    define NISERIAL GET RS485 BIAS  CTL CODE FILE DEVICE SERIAL PORT   4030 METHOD BUFFERED FILE ANY ACCESS              NI Serial Hardware and Software for Windows 7 10 ni com    Chapter 7 Using Your Serial Hardware    2  To set the RS 485 bias resistor mode  use  NISERIAL SET RS485 BIAS and DeviceloControl  For example   to enable programmatically controlled RS 485 bias resistors  use the  following code     SERIAL RS485 BIAS serial rs485 bias   RS485 BIAS ON   ULONG bytecount   DeviceloControl    comhandle   NISERIAL SET RS485 BIAS    PVOID   amp serial rs485 bias   Sizeof serial rs485 bias     PVOID  NULL  0    amp bytecount   NULL      3  To retrieve 
197. rces for a new PCMCIA card     5 19 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    General Port Settings    This section describes the options you can set in the General Port Settings  dialog box  shown in Figure 5 11     General Port Settings    SA ete sete fS DIETE    I ance entm        zi       Figure 5 11  General Port Settings Dialog Box    COM Port Number    You can use the COM Port Number control to change the COMx name of  the port selected     Transceiver Mode    The transceiver mode selection shows the transceiver mode in use  and  applies only to PCMCIA 485 cards  Refer to Chapter 7  Using Your Serial  Hardware  for more information about transceiver modes  If you use  two wire Auto mode  FIFOs must be enabled     NI Serial Hardware and Software for Windows 5 20 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    FIFO Enabled    You can use the FIFO Enabled control to enable or disable the FIFO  buffers on the serial port  FIFO buffers are present on the  16550 compatible UARTs   one for the transmitter and one for the  receiver     FIFO Buffers    The FIFO buffer control is available by clicking the Advanced button on  the Port Settings tab  FIFO buffers are present on the 16550 compatible  UARTs   one for the transmitter and one for the receiver  The receive FIFO  trigger denotes the number of characters received in the FIFO before the PC  is 
198. re devices  For more  information about transceiver control modes  refer to Chapter 7  Using  Your Serial Hardware  In addition  the USB 485 hardware supports    NI Serial Hardware and Software for Windows 1 6 ni com       Chapter 1 Introduction    programmatic control of the bias resistors  For more information  refer to  Chapter 7  Using Your Serial Hardware     All serial hardware uses standard 16550 compatible UARTs  Universal  Asynchronous Receiver Transmitters  for complete compatibility   with standard PC COM ports  The serial hardware contains FIFO   First In First Out  and USB buffers to reduce susceptibility to system  latency for faster transmission rates  Full Plug and Play compatibility  allows switchless configuration and installation  For more information  about the serial hardware specifications and operating conditions  refer to  Appendix E  Specifications     PCMCIA Kits    The serial hardware gives you a variety of solutions for serial  communications  The PCMCIA 232 interfaces work with the RS 232  protocols  and the PCMCIA 485 interfaces work with the RS 422 and  RS 485 protocols  You can use the PCMCIA 232 hardware for serial  communication up to distances of 50 ft  You can connect the PCMCIA 485  hardware with up to 31 devices using serial cable lengths up to 4 000 ft     The PCMCIA 232 is available with one  two  or four ports  The  PCMCIA 485 is available in a one port version or two port version    All PCMCIA cards come with cables for each port that
199. reset the fields to their default values at any time  click the Restore  Defaults button     Windows Me 9x       Install the Software    Install the NI Serial software for Windows Me 9x before you install the  hardware     1   2        National Instruments Corporation    Select Start  Settings  Control Panel     Double click the Add Remove Programs icon in the Control Panel to  launch the Add Remove Programs applet  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD  and click the Next button to  proceed  The software installation wizard begins     The wizard guides you through the necessary steps to install   the NI Serial software  You can go back and change values where  appropriate by clicking the Back button  You can exit the setup where  appropriate by clicking the Cancel button     If you need to install your hardware  or if this is your first time to install  the NI Serial software for Windows Me 9x  skip to the next section   Install the Hardware  Otherwise  continue to Step 6     If your hardware is already installed  restart Windows Me 9x     Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  but you  must make sure Windows Default Driver is selected and click OK   When you finish  continue to the Verify the Installation section     If no New Hardware Found dialog box appears  refer to the Forcing  Wi
200. resources  as follows     a  Inthe Device Manager under Multi function adapters   double click a serial card     b  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     c  Repeat steps 5a and 5b until you have verified the resources for  each board     6   Optional  To determine which physical port is associated with COMx   note the Port 1  Port 2  etc  entries next to the COM numbers  For all  serial hardware  PORTI refers to the top port  PORT2 refers to the next  port down  and so on     7  Torun the diagnostic utility  select Start  Programs  National  Instruments  NI Serial  Diagnostics     NI Serial Hardware and Software for Windows 5 4 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     8  After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Communication Port Settings    The 
201. rial Hardware  For more  information about duplex architectures  refer to Appendix B  Serial Port  Information     DB 9 Connector    Figure A 1 and Table A 1 give the pin locations and descriptions of the   DB 9 connector  the 10 position modular jack to DB 9 cable  the cable   adapter for the eight port board  and the DB 9 connectors to the 16 port  breakout box                  UN    PINIS PIN 9  PIN 1 PIN 6                                                        Figure    1  DB 9 Connector Pin Locations    Table A 1  DB 9 Pin Descriptions                               232 Signal   DB 9 Pin DTE DCE 485 Signal  1 DCD  DCD GND  2 RXD TXD CTS   HSI    3 TXD RXD RTS   HSO    4 DTR  DSR RXD   5 GND GND RXD   6 DSR  DTR CTS   HSI    7 RTS CTS RTS   HSO                        NI Serial Hardware and Software for Windows A 2 ni com    Appendix A Connector Descriptions    Table A 1  DB 9 Pin Descriptions  Continued                                232 Signal  DB 9 Pin DTE DCE 485 Signal  8 CTS RTS TXD   9 RI  RI TXD     These signals are not supported by the isolated 232 boards or ports 9   16 of the RS 232  16 port board                   Note DCE signals are available only on the USB 232 two and four port serial hardware     Modular Jack Connector       Figure A 2 and Table A 2 give the pin locations and descriptions of the  10 position modular jack             le 10                 1                            Figure    2  10 Position Modular Jack Pin Locations    Table A 2  10 Posit
202. rminal Equipment  and DCE   Data Communications Equipment   refer to the types of equipment on  either end of a serial connection  In general  DTE and DCE refer to  computer equipment and modems  respectively  Because the RS 232  specification mainly involves connecting a DTE directly to a DCE and vice  versa  the pinouts are defined so that cabling is simple  That is  a cable  connected a computer to a modem by wiring pin 1 to pin 1  pin 2 to pin 2   and so on  This method is known as straight through cabling     Figure B 5 shows straight through cabling in a DTE to DCE interface                          j Pin 2   P   Pin 2  DCE JJ DCE DTE    Pin 3     T D p Pin 3                                        Figure B 5  Straight Through Cabling in a DTE to DCE Interface    Straight through cabling is still the standard method to connect a modem to  your PC  However  because many applications use serial communication to  connect two or more DTEs without modems  the cabling becomes more  complicated  If two DTEs are wired together using a straight through cable   one transmitter is connected to the other transmitter  and one receiver is  connected to the other receiver  In this setup  no transmissions can occur   Thus  these applications must use a cabling scheme that connects the  transmitter on one device to the receiver on the other device and vice versa   This method is known as null modem cabling  because it replaces the two  modems that traditional RS 232 applications would re
203. rs due to interrupt latency     e  f data transfer sizes are small  selecting receive FIFO settings just  above data sizes can reduce efficiency  so select lower settings         National Instruments Corporation 6 17 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    S Note If you want your serial hardware ports to use the names COMI  COM2  COM3   or COMA  refer to the Common Questions section of Appendix D  Troubleshooting and  Common Questions     Windows NT       Installing the Microsoft PnP ISA Enabler Driver    When you install an AT board  you must install the PnP ISA Enabler  Driver     The AT serial hardware is Plug and Play  Windows NT 4 0 does not support  Plug and Play  In order for Windows NT to detect and install the Plug and  Play hardware  you must install the PnP ISA Enabler driver included on  your Windows NT 4 0 CD  Complete the following steps to install the    driver    1  Locate the Pnpisa inf file in the Drvlib Pnpisa x86 folder on  the Windows NT 4 0 CD    2  Right click the Pnpisa inf file  then select Install on the menu that  appears    3  Restart the computer     Install the NI Serial Software    Install the NI Serial software for Windows NT before you install the  hardware  Make sure that you have already installed the PnP ISA Enabler  driver as described in the previous section     1     Log on as Administrator or as    user who has Administrator  privileges     Select Start
204. rs to the top port  PORT2 refers to the next  port down  and so on     To run the diagnostic utility  select Start  Programs  National  Instruments  NI Serial  Diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict  with anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Communication Port Settings    The serial configuration utility is fully integrated into the  Windows 2000 XP Device Manager  You can use it to view or change the  configuration of your serial ports     To configure a serial port  complete the following steps     I         National Instruments Corporation    Select Start  Settings  Control Panel and double click the  System icon     Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon     2 5 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    4  Double click the port you want to configure and refer to the foll
205. rted  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     NI Serial Hardware and Software for Windows 5 8 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Windows Me 9x automatically displays one or more New Hardware  Found dialog boxes when it detects and configures a PC Card     If the New Hardware Found dialog box does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     Figure 5 5 shows how to insert a PCMCIA serial card and how to connect  the cable                       1 PCMCIA Socket 2              Serial Cable  Figure 5 5  Inserting a              Serial Card             The serial hardware installation is complete     Verify the Installation    When you begin to verify the installation  keep in mind that the serial ports  built into the computer are typically named from COM1 to COM4   Windows Me 9x typically issues port names to the ports on NI Serial  hardware starting with COM5  COM6  and so on  If not enough resources  are available to assign to all the NI serial ports  the port with the higher           name is left unconfigured         National Instruments Corporation 5 9 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and C
206. run errors due to interrupt latency     e  f your data transfer sizes are small and your Receive FIFO size value  is above your data sizes  your system is less efficient  Therefore  set the  Receive FIFO size value below your data sizes     Resources    To view the resource configuration dialog box for the selected port  click  the Resources button  You cannot change these resources  they are  automatically assigned         National Instruments Corporation 3 21 NI Serial Hardware and Software for Windows          USB Serial Hardware  Installation  Verification   and Configuration    This chapter describes how to install the NI Serial software and USB serial  hardware and how to verify the installation  It also describes how to  configure the communication port settings     Install the Software       Before you install your serial hardware  complete the following steps to  install the NI Serial  USB  software for Windows 2000 XP     1   2   3        National Instruments Corporation    Log in as Administrator or auser with Administrator privileges   Select Start  Settings  Control Panel     Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears     Click the Add New Programs button and then the CD or Floppy  button    When prompted  insert the N  Serial  USB  Software for   Windows 2000 XP CD and click the Next button    When prompted  click the Finish button to install the program files  from the CD     The setup wizard begins  The setup wizard 
207. s     To configure a serial port  complete the following steps     1     Select Start  Settings  Control Panel and double click the  System icon     Click the Device Manager tab and then click the View devices by  type button     Double click the Ports  COM  amp  LPT  icon          Note If you want your serial ports to use the names COM1  COM2            or COM4   refer to the Common Questions section of Appendix D  Troubleshooting and  Common Questions     4  Double click on the port you want to configure and refer to the    following instructions            view the hardware resources assigned to the serial port  click  the Resources tab     e To view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab     e To change the RS 485 transceiver mode  or to enable or disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab     NI Serial Hardware and Software for Windows 2 14 ni com    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    5 Note Transceiver modes apply to RS 485 interfaces         For more information about  transceiver modes  refer to Chapter 7  Using Your Serial Hardware     5       save your changes  click the OK button  To exit without saving the  changes  click the Cancel button     Port Settings Tab    In the Port S
208. s  PCMCIA serial boards    Platform    PXI serial boards  USB serial hardware    Italic text denotes variables  emphasis  a cross reference  or an introduction  to a key concept  This font also denotes text that is a placeholder for a word  or value that you must supply     Text in this font denotes text or characters that you should enter from the  keyboard  sections of code  programming examples  and syntax examples   This font is also used for the proper names of disk drives  paths  directories   programs  subprograms  subroutines  device names  functions  operations   variables  filenames and extensions  and code excerpts     Bold text in this font denotes the messages and responses that the computer  automatically prints to the screen  This font also emphasizes lines of code  that are different from the other examples     PCI serial boards refers to all versions of the PCI serial boards   PCMCIA serial boards refers to all versions of the PCMCIA serial boards     Text in this font denotes a specific platform and indicates that the text  following it applies only to that platform     PXI serial boards refers to all versions of the PXI serial boards     USB serial hardware refers to all versions of the USB serial hardware     Related Documentation       The following documents contain information that you might find helpful  as you read this manual     e  ANSI EIA 232 D Standard  Interface Between Data Terminal  Equipment and Data Circuit Terminating Equipment Employing  S
209. s  aF Ports  COM  amp  LPT      9  Communications Port  COM3   E N I  PCMCIA 232 4 Communications Port Properties  RJ N I  PCMCIA 232 4 Communications Por   E N I  PCMCIA 232 4 Communications Port 3  COM38   5  d N I  PCMCIA 232 4 Communications Port 4  COM37      Printer Port  LPT1   g  Sound  video and game controllers       1   89 8                                     Scan for hardware changes       Figure C 7  Selecting an Interface to Uninstall    Choose the Uninstall option        6  Inthe Confirm Device Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     NI Serial Hardware and Software for Windows C 14 ni com    4     Appendix C Uninstalling the Hardware and Software    Select NI Serial and click the Change Remove button  The  uninstallation program removes all folders  utilities  and registry  entries associated with the NI Serial software     Remove the PCMCIA serial interface from your system     The uninstallation program removes only items that the setup 
210. s the Advanced Settings dialog box        National Instruments Corporation 2 7 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration          Advanced Settings for COM159 E 2                                     Use FIFO buffers  requires 16550 compatible UART  OK    Select lower settings to correct connection problems     dd    Cancel  Select higher settings for faster performance   Defaults  Receive Buffer  Low  8  J High  60   60   Transmit Buffer  Low  8  High  56   56              COM Port Number   comis9    Transceiver Mode   4 wire       4 Wire  2 Wire        Controlled With Echo  2 Wire        Controlled   2 Wire T  Ridy Auto          Figure 2 4  Advanced Settings Dialog Box    The following sections describe the advanced settings options     Transceiver Mode    This field shows the RS 485 transceiver mode in use  and applies only to  PCI 485 boards  For more information about transceiver modes  refer to  Chapter 7  Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     
211. s were assigned properly   the Resources tab shows which resources are assigned to your  serial ports     c  Repeat steps 5a and 5b until you have verified the resources for  each board     6   Optional  To determine which physical port is associated with COMx   complete the following steps     a  Inthe Device Manager tab  under Ports  COM  amp  LPT    double click the serial port  COM      b  Click the Port Settings tab to display the serial number of the  serial hardware and the physical port number starting at 1  For all  serial hardware  PORTI refers to the top port  PORT2 refers to the  next port down  and so on     NI Serial Hardware and Software for Windows 3 12 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    To run the diagnostic utility  select Start  Programs  National  Instruments Serial  diagnostics     The diagnostic utility verifies that your serial driver is installed  properly  that the configuration of your hardware does not conflict with  anything else in your system  and that the serial driver can  communicate with your hardware correctly     If the test is successful  your serial hardware and software are installed  properly  If the test fails  refer to Appendix D  Troubleshooting and  Common Questions  to troubleshoot the problem     After you verify the hardware and software installation  connect the  cables  Refer to Appendix A  Connector Descriptions  for information  about cable connections     Configure Commun
212. sceiver mode in use  and applies only to RS 485  boards  For more information about transceiver modes  refer to Chapter 7   Using Your Serial Hardware     Use FIFO Buffers    FIFO buffers are present on the 16550 compatible UARTs   one for the  transmitter and one for the receiver  The Receive Buffer control sets the  number of characters received in the FIFO before the PC is interrupted to  read the data  The Transmit Buffer control sets the maximum number of  bytes written to the FIFO in a block when the PC is interrupted to write the  data  When you configure FIFO settings  consider the following points     e You can select larger FIFO buffer sizes to reduce the number of  interrupts your PC receives and therefore minimize system overhead     e   ftransfer rates are high  you can lower the Receive Buffer value to  prevent overrun errors due to interrupt latency     e  f your data transfer sizes are small and your Receive Buffer value is  above your data sizes  your system is less efficient  Therefore  set the  Receive Buffer value below your data sizes         National Instruments Corporation 3 15 NI Serial Hardware and Software for Windows    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows NT       Install the Software    Before you install your serial hardware  complete the following steps to  install the NI Serial sof
213. section for your  hardware and operating system     How can I determine which port is associated with COMx     To determine which physical port is associated with COMx  complete the  following steps     Windows 2000 XP Me 9x  1  Inthe Device Manager  under Ports  COM  amp  LPT   double click a  serial port     2  Click the Port Settings tab to display the serial number of the serial  hardware and the physical port number starting at 1  Note the Port 1   Port 2  etc  entries next to the COM numbers  For all serial hardware   PORT  refers to the top port  PORT2 refers to the next port down  and  so on        National Instruments Corporation D 19 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    Windows NT    1  Select Start  Settings  Control Panel and double click the  niports icon     A list of installed National Instruments ports with their logical COMx  names appears  If your interface is not on this list  refer to the Missing  Serial Port in the niports List section     2  Select a COM port and click the Settings button     The General Port Settings dialog box displays the serial number of   the serial hardware and the physical port number starting at 1  For all  serial hardware  PORT   refers to the top port  PORT  refers to the next  port down  and so on     How can I change the COM numbers of my National Instruments  plug in serial ports to COM1  COM2  COMS3       COM4     Windows Me 9x    To name plug in serial ports C
214. sent in both modes  the final mode may be either DTE or DCE          Note A valid RS 232 signal is defined as at least one valid RS 232 voltage detected on  any receiver pin  RXD  CTS  DSR  RI  or DCD      Setting the RS 232 Transceiver Mode with DeviceloControl    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for programming the RS 232  transceiver mode  To set and retrieve the RS 232 transceiver mode   complete the following steps         Note You can use the header file NISerial h  included on your CD  to integrate this  code into your program easily     1  Add the following lines to your source code      include   winioctl h       define RS232 MODE DTE 0x00   define RS232 MODE DCE 0  01   define RS232 MODE AUTO 0x02     define NISERIAL SET RS232 MODE  CTL CODE FILE DEVICE SERIAL PORT  4081   METHOD BUFFERED FILE ANY ACCESS    define NISERIAL GET RS232 MODE  CTL CODE FILE DEVICE SERIAL PORT   4080 METHOD BUFFERED FILE ANY ACCESS           NI Serial Hardware and Software for Windows 7 12 ni com       Chapter 7 Using Your Serial Hardware    2       set the RS 232 transceiver  use NISERIAL SET RS232 MODE and  DeviceloControl  For example  to set to Force DCE mode  use the  following code     ULONG bytecount    TRANSCEIVER MODE transceiver mode   RS232 MODE DCE   DeviceloControl     comhandle    NISERIAL SET RS232 MODE     PVOID   amp transceiver mode    sizeof  transceiver mode      PVOID  NULL  0     amp bytecount    NULL   
215. serial configuration utility is fully integrated into the Windows  2000 XP Device Manager  You can use it to view or change the  configuration of your serial ports     To configure a serial port  complete the following steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Click the Hardware tab and then click the Device Manager button    3  Double click the Ports  COM  amp  LPT  icon    4  Double click the port you want to configure and refer to the following  instructions    e      view the hardware resources assigned to the serial port  click  the Resources tab    e To view or change the port settings  click the Port Settings tab   For more information about the settings  refer to the next section   Port Settings Tab    e      change the RS 485 transceiver mode       to enable or disable  the FIFOs on the serial hardware  in the Port Settings tab  click  the Advanced button  For more information about the settings   refer to the next section  Port Settings Tab    hy  Note    Transceiver modes apply to RS 485 interfaces only  For more information about    transceiver modes  refer to Chapter 7  Using Your Serial Hardware     5                your changes  click the OK button  To exit without saving the  changes  click the Cancel button         National Instruments Corporation 5 5 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Port Settings Tab    In the Port
216. sition modular jack to DB 9 cable included in your  four port isolated PCI or AT serial board kit     For more information about cable connectors  see the connector  descriptions in this appendix     Connecting Two Wire Devices       The PCI 485  USB 485  PCMCIA 485  RS 485 PXI  PXI 8421 and  PXI 8423   and AT 485 hardware is designed to work with either two  or  four wire devices  If you are using a two wire device  refer to the device  documentation for specific wiring instructions     In general  half duplex networks use a single twisted pair of wires for  communication in both directions  so you must connect both the transmitter  and the receiver at each end of the same pair of wires  For example  to  connect an RS 485 data acquisition device to a port on your board using  half duplex communication  you need a single twisted pair of wires    At the board  connect the TXD  and RXD  signals  pins 8 and 4 on a  DB 9 connector  pins 5 and 20 on a DB 25 connector  together and to one  wire  Connect the other end of this wire to both the TXD  and RXD   signals on the data acquisition device  Use the same method to connect the        National Instruments Corporation A 1 NI Serial Hardware and Software for Windows    Appendix A Connector Descriptions    TXD  and RXD  signals  pins 9 and 5 on a DB 9 connector  pins 22 and 7  on a DB 25 connector  to the second wire     For information about setting the transceiver mode for two wire  communication  refer to Chapter 7  Using Your Se
217. source Configuration Dialog Box for the PCMCIA 485    Base I O Address  The base I O address assigned to the port   IRQ  The IRQ assigned to the port   Length  The size  in bytes  of the I O window     For the PCMCIA 232 and PCMCIA 485  the  length is 8  the size of the I O window for one  port      For the PCMCIA  232 4  the length is 32 bytes   the size of the I O window for four ports      NI Serial Hardware and Software for Windows 5 22 ni com    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    PCMCIA 232 2  PCMCIA 485 2    These cards require two base I O settings  one for each port  and they share  an IRQ     Figure 5 13 shows the resource configuration dialog box for a  PCMCIA 485 2  The PCMCIA 232 2 dialog box is similar        PCMCIA Port   Resource Configuration   x            G2 N I  PCMCIA 485 2    Base 1 0 Address   2      218       Length of 1 0 Window  8 Bytes    IRQ        Figure 5 13  Resource Configuration Dialog Box for the PCMCIA 485 2    Base I O Address  The base I O addresses assigned to the two  ports    IRQ  The IRQ shared by the two ports    Length  The size of each I O window  in bytes      5  Note When you select resources for      PCMCIA cards  use the Microsoft Windows NT  diagnostics utility to make sure that the resources have not been assigned to any other  device  This utility displays a list of I O port addresses and IRQ levels that are currently  being used in your system        National Instruments Corporat
218. st  IRQ  button  Scan through the list of  IRQ settings to determine which devices are using which interrupt  request levels     5  When you locate a device that you are not currently using  click the  Cancel button     6  Inthe Device Manager tab  double click the icon for that device     7  IntheDevice usage field  a checkmark appears to the left of the current  configuration  usually Original Configuration  Current   Click the  checkbox to remove the checkmark     8  Click the Resources tab and make sure that Use automatic settings is  unchecked     9  Repeat steps 6 through 8 for each unused device   10  Click the OK button to save your changes     11  Restart Windows Me 9x to assign resources to your serial port  Then  complete step 6 in the installation verification section of the chapter for  your hardware platform     NI Serial Hardware and Software for Windows D 4 ni com    Appendix D Troubleshooting and Common Questions    Selecting Conflict Free Resources  PCI and PXI Boards    When the Device Manager indicates a conflict with another device  you can  usually correct the problem by manually selecting conflict free resources   To do so  complete the following steps     1  Select Start  Settings  Control Panel and double click the  System icon    2  Click the Device Manager tab and then click the View devices by  type button    3  Double click the Multi function adapters icon    4  From the Multi function adapters list  double click the serial  interface that you wan
219. stall the NI Serial software for Windows NT     1  Loginas Administrator or as a user who has Administrator  privileges     2  Select Start  Settings   Control Panel     3  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears     4  Click the Install button     5  When prompted  insert the NI Serial Software for  Windows 2000 NT XP Me 9x CD  and click the Next button     6  When prompted  click the Finish button to install the program files     7  The setup wizard begins  The setup wizard guides you through the  necessary steps to install the NI Serial software  To exit the setup  wizard at any time  click the Cancel button     iyi Note The setup wizard backs up the Windows NT serial driver serial sys to  serial bak and then overwrites serial sys  You can find serial sys in  the WinNT system32 drivers directory     8  If your hardware is already installed  restart Windows NT and continue  to the Verify the Installation section     The software installation is complete     Install the Hardware  5  Note If you are installing a PCI 485  you might need to adjust the value of the bias    resistors  depending on your application  Bias resistors are not available on the eight port         485  For more information  refer to Chapter 7  Using Your Serial Hardware         National Instruments Corporation 2 17 NI Serial Hardware and Software for Windows    Chapter 2    A    PCI Serial Hardware Installation  Verification  and Configuration    Caution Bef
220. stry  entries associated with the NI Serial software     4  Shutdown Windows 2000  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 2  PCI Serial  Hardware Installation  Verification  and Configuration     Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so  complete the following  steps   1  Select Start  Settings  Control Panel and double click the   System icon     2  Select the Device Manager tab and click the View devices by type  button     3  Double click the Multi function adapters icon        National Instruments Corporation C 3 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software    4  From the Multi function adapters list  select the National  Instruments interface that you want to uninstall  as shown in  Figure    2        System Properties 21 x     General Device Manager   Hardware Profiles   Performance        View devices by type View devices by connection                   Keyboard  Modem        Monitor  A Mouse  B Multi function adapters   gt  N I  PCI 232 4 Multi funct
221. system  and that the serial  driver can communicate with your hardware correctly     To run the test  select the diagnostics item under Start  Programs    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     After you verify the hardware and software installation  connect the cables   Refer to Appendix A  Connector Descriptions  for information about cable  connections        National Instruments Corporation 6 21 NI Serial Hardware and Software for Windows    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    Configure Communication Port Settings    The serial configuration utility is fully integrated with the Windows NT  Control Panel  You can use it to examine or modify the configuration of  the serial port     Complete the following steps to configure the serial port     1  Select Start  Settings  Control Panel and double click the niports  icon  A list of National Instruments ports appears  as shown in  Figure 6 10     National Instruments   Ports x     Settings          Delete            Add a New PCMCIA card      PCMCIA 485 bd   Add                        Figure 6 10  niports Configuration Utility    2  Select the port you want to configure     Click the Settings button to view or configure the port settings  Refer  to the next section  General Por
222. t Settings  for more information     4  Click the Resources button in the General Port Settings dialog box  to view or configure the resources for the port  Refer to the Resource  Settings section for more information     5  Click Delete to remove hardware information about the port from  Windows NT  You should do this before you remove the serial  interface from the system     NI Serial Hardware and Software for Windows 6 22 ni com    Chapter 6 AT Serial Hardware Installation  Verification  and Configuration    General Port Settings    This section describes the options you can set in the General Port Settings  dialog box  shown in Figure 6 11     General Port Settings x               AT 232 4       ISA PnP Serial Number  00558800 PORT   2  COM Port Number  E  TranscelvEntdode    d    M FIFO Enabled    Cancel   Resources            Figure 6 11  General Port Settings Dialog Box    COM Port Number    You can use the COM Port Number control to change the COMx name  of the port selected     Transceiver Mode    The transceiver mode selection shows the transceiver mode in use  and  applies only to AT 485 boards  Refer to Chapter 7  Using Your Serial  Hardware  for more information about transceiver modes  If you use  two wire Auto mode  FIFOs must be enabled     FIFO Enabled    You can use the FIFO Enabled control to enable or disable the  FIFO buffers on the serial port  FIFO buffers are present on the  16550 compatible UARTs   one for the transmitter and one for  the receiver   
223. t to change    5  Click the Resources tab    6  Uncheck the Use automatic settings checkbox and click the Change  Setting button  If the system does not allow you to change the settings   select the configuration that gives you a conflict free base address and  interrupt level from the Setting based on list box    7  Click the OK button to save your changes    AT Boards    When the Device Manager indicates a conflict with another device  you can  usually correct the problem by manually selecting conflict free resources   To do so  complete the following steps     1   2   3     Select Start  Settings  Control Panel   Double click the System icon     Select the Device Manager tab  and click the View devices by type  button at the top of the page     Double click the Ports  COM  amp  LPT  icon  A list of installed ports  appears     Double click the name of the serial port you want to change  then click  the Resources tab     3 Note To change the resources of ports on shared IRQ AT boards from within the Device  Manager  you must open the Multi function adapters class and double click the name of  your interface  Use the Resources page to change the resources  Any resource changes are  automatically reflected to the child devices        National Instruments Corporation    D 5 NI Serial Hardware and Software for Windows    Appendix D    Troubleshooting and Common Questions    6  Uncheck the Use automatic settings checkbox and click the Change  Setting button  If the system does n
224. talos tob itt eta su 1 4  US Baits     nite ime aia reet a pep 1 6  PCMCIA  Kits     e VR Ete ER on NS 1 7  ACT Kits                                 teer eter eet teste tet vedi UR oe 1 8  NI Serial Software Overview                                       1 9  Time Saving Development Tools                       eese eene eene 1 10    Chapter 2  PCI Serial Hardware Installation  Verification  and Configuration    Windows 2000 XD  4  2 2  2 rte a ee ient ires 2 1  Installthe Software  eere cepe e ede NU Adie Ee RENS AS A 2 1  Install the                 41r tret e C ti a e etm 2 2  Verify the Install  tion          etiem detener Herbie entes 2 3  Configure Communication Port Settings                   esse 2 5   Windows Me OX                        SERE e ERE RR        2 9  Install the SoftWalre   entran                  2 9  Install th    Hardware snieni teet tete eere ere edens 2 10  Verity the Installations oie RR E RE HERD 2 12  Configure Communication Port Settings                   esee 2 14   WandowWs INT    iy RO EH ER ECRIRE ERREUR          2 17  Install th   Softwaren uo e ERE cena                      ERES 2 17  Installthe HardWare  oit er ERRARE ederent 2 17  Verify the Installation    nennen rennen nennen 2 19  Configure Communication Port Settings                   esee 2 20       National Instruments Corporation V NI Serial Hardware and Software for Windows    Contents    Chapter 3  PXI Serial Hardware Installation  Verification  and Configuration  Windows  2000 X
225. terfaces only  For more information about transceiver modes  refer to  Chapter 7  Using Your Serial Hardware     After you have selected the serial port parameters for the current port  click  the OK button to save the changes or click the Cancel button to exit the  dialog box without saving changes     NI Serial Hardware and Software for Windows 5 12 ni com    Chapter5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Port Settings Tab    On the Port Settings tab  you can change any of the settings by clicking the  arrow button to the right of the setting  When you click the arrow button   a list of valid values for that setting appears  Select the desired setting from  the list  Figure 5 7 shows the Port Settings tab     N I  PCMCIA 232 2 Communications Port  COM2  Pro    KA Eg                      Figure 5 7  Port Settings Tab       National Instruments Corporation 5 13 NI Serial Hardware and Software for Windows    Chapter 5 PCMCIA Serial Hardware Installation  Verification  and Configuration    Advanced Port Settings    You can view or change the advanced port settings by clicking the  Advanced button on the Port Settings tab  Figure 5 8 shows the  Advanced Port Settings dialog box        Advanced Port Settings x  Transceiver                        4 wire  2 wire DTR echo   c    2 wire DTR ctrl x  Tv  Use FIFO buffers 2 wire       90  i Cancel    Select lower settings to corect connection problems     Select higher settings for faster performance  _
226. tform     c  Inthe General Port Settings dialog box  click the Resources  button to view the resources for the port     d  Check the hardware resources  If they are in conflict  refer to the  Resolving Resource Conflicts section     2  Make sure that the National Instruments serial driver is installed   as follows     a  Locate the serial sys file in the WinNT system32 drivers  directory     b  Ifthe serial sys file is missing  reinstall the hardware and  software  For instructions on how to do so  refer to the installation  and verification chapter for your hardware platform     c  Right click the serial   sys file and select Properties        National Instruments Corporation D 15 NI Serial Hardware and Software for Windows    Appendix D Troubleshooting and Common Questions    USB    d  Click the Version tab  If the Company Name is Microsoft   the National Instruments serial driver is not installed properly   To solve this problem  reinstall the NI Serial software   For instructions on how to do so  refer to the installation and  verification chapter for your hardware platform     3  Physically make sure the correct number of boards and ports are  installed     Address Test Failed    If the address test failed  Interrupt test cannot be  performed error message appears  you might have an address conflict  with legacy boards in your system  To solve this problem  change the base  addresses assigned to your legacy boards  For instructions on how to do so   refer to your legacy 
227. the current RS 485 bias resistor mode  you        use  NISERIAL GET RS485 BIAS and DeviceloControl with the  following code     SERIAL RS485 BIAS serial rs485 bias   ULONG bytecount   DeviceloControl    comhandle   NISERIAL GET RS485 BIAS    PVOID  NULL  0    PVOID   amp serial rs485 bias   sizeof  serial_rs485 bias     amp bytecount   NULL        RS 232 DTE DCE Transceiver Control    The USB 232 two  and four port hardware supports both DTE and DCE  transceiver modes  By default  the RS 232 transceiver mode is forced to  DTE  but you can adjust this in two ways        e Use the Advanced Settings tab in the control panel  To set the  transceiver mode to be used whenever a port is opened  select  the desired mode from the transceiver mode pull down menu     e Change the transceiver mode programmatically by making a  DeviceloControl function call to the serial driver        National Instruments Corporation 7 11 NI Serial Hardware and Software for Windows    Chapter 7 Using Your Serial Hardware    Table 7 5 describes the RS 232 modes     Table 7 5  RS 232 Modes                   RS 232 Mode Description  Force DTE  Default  The transceiver is forced into DTE mode  Force DCE The transceiver is forced into DCE mode  Auto 232 The transceiver automatically switches    between DTE and DCE modes about four  times a second until a valid RS 232 signal is  detected                  Note When using Auto232  if you connect two serial ports set to Auto232  or if valid  RS 232 signals are pre
228. the uninstallation program does not delete  that directory  You must remove any remaining components yourself     To reinstall the hardware and software  refer to Chapter 4  USB Serial  Hardware Installation  Verification  and Configuration     PCMCIA Hardware    Windows 2000       Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove the hardware information  To do so  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon     2  Select the Hardware tab and click the Device Manager button   Double click the Multi function adapters icon     4  From the Multi function adapters list  right click the National  Instruments interface that you want to uninstall  as shown in  Figure C 7        National Instruments Corporation C 13 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software              mj    Z4 Device Manager           ici xi         Action           e             Ri ae                     My Computer       Computer    amp  Disk drives   5 Display adapters                         23  DVD CD ROM drives   2  Floppy disk controllers   9 Floppy disk drives    amp  IDE ATA ATAPI controllers       Keyboards   3 Mice and other pointing devices                   Ee  Ge  E  E  E  EE  E                      Monitors  x Multifunction adapters  KOZNI  PCMCIA 232 4 Multi Function Parent  BI  Network adapters Disable     PCMCIA adapter
229. tility is automatically configured when you open a port on  a serial interface     Setting the RS 485 Transceiver Mode with DeviceloControl    The NI Serial software uses programmatic control codes and the  DeviceloControl Windows function for programming the RS 485  transceiver control mode  To set and retrieve the RS 485 transceiver  control mode  complete the following steps          Note You        use the header file NISerial h  included on your CD  to integrate this  code into your program easily     1  Add the following lines to your source code      include  lt winioctl h gt     define RS485 MODE 4WIRE 0x0   define RS485 MODE 2W ECHO 0  1   define RS485 MODE 2W DTR 0x2   define RS485 MODE 2W AUTO 0x3    NI Serial Hardware and Software for Windows 7 6 ni com    Chapter 7 Using Your Serial Hardware     define NISERIAL SET RS485 MODE  CTL CODE FILE DEVICE SERIAL PORT   4091 METHOD BUFFERED FILE ANY ACCESS    define NISERIAL GET RS485 MODE  CTL CODE FILE DEVICE SERIAL PORT   4090 METHOD BUFFERED FILE ANY ACCESS              To set the RS 485 transceiver control mode  use  NISERIAL SET RS485 MODE and DeviceloControl  For example   to set to two wire Auto Control mode  use the following code     ULONG bytecount   TRANSCEIVER MODE transceiver mode    RS485 MODE 4WIRE   DeviceloControl    comhandle   NISERIAL SET RS485 MODE    PVOID   amp transceiver mode   sizeof  transceiver mode     PVOID  NULL  0    amp bytecount   NULL        Ss Note A deprecated alternative to NISERIAL 
230. tion    B Note Ifyou want your serial hardware ports to use the names COM1  COM2  COM3   or COM4  refer to the Common Questions section of Appendix D  Troubleshooting and  Common Questions     Restore Defaults    To reset the fields to their default values at any time  click the Restore  Defaults button     Windows NT       Install the NI Serial Software    Install the NI Serial software for Windows NT before you install the  hardware     1     Log on as Administrator or as a user who has Administrator  privileges    Select Start  Settings  Control Panel    Double click the Add Remove Programs icon in the Control Panel    to launch the Add Remove Programs applet  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button to  proceed  The software installation wizard begins     The wizard guides you through the necessary steps to install   the NI Serial software  You can go back and change values where  appropriate by clicking the Back button  You can exit the setup where  appropriate by clicking the Cancel button          Note This installation backs up the Microsoft Windows NT serial driver serial sys  to serial  bak and then overwrites serial sys  You can find serial  sys in the  Windows NT  system32 drivers directory     The software installation is complete        National Instruments Corporation    5 15 NI Serial Hardware and Software for Windows    C
231. to install your hardware  or if this is your first time to install  the NI Serial software for Windows Me 9x  skip to the next section   Install the Hardware  Otherwise  continue to step 8     If your hardware is already installed  restart Windows Me 9x     Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  Your  operating system  Windows Me 9x  may show the Windows Default  Driver option  If so  make sure the Windows Default Driver is  selected and click the OK button  If the Windows Default Driver  option is not shown  the installation continues automatically  When  you finish  continue to the Verify the Installation section     If no New Hardware Found dialog box appears  refer to the Forcing  Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     2 9 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    Install the Hardware         Note If you are installing a PCI 485  you might need to adjust the value of the bias  resistors  depending on your application  Bias resistors are not available on the eight port  PCI 485  For more information  refer to Chapter 7  Using Your Serial Hardware     UN Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on you
232. tware    Install the NI Serial software for Windows Me 9x before you install the  hardware     1   2     Install the Hardware    Select Start  Settings  Control Panel     Double click the Add Remove Programs icon in the Control Panel  to launch the Add Remove Programs applet  The Add Remove  Programs dialog box appears     Click the Install button     When prompted  insert the N  Serial Software for  Windows 2000 NT XP Me 9x CD and click the Next button to  proceed  The software installation wizard begins     The setup wizard guides you through the necessary steps to install  the NI Serial software  You can go back and change values where  appropriate by clicking the Back button  You can exit the setup where  appropriate by clicking the Cancel button     If you need to install your hardware  or if this is your first time to install  the NI Serial software for Windows Me 9x  skip to the next section   Install the Hardware  Otherwise  continue to Step 6     If your hardware is already installed  restart Windows Me 9x     Windows Me 9x should automatically detect your hardware and  display one or more New Hardware Found dialog boxes  When you  finish  continue to the Verify the Installation section     If no New Hardware Found dialog box appears  refer to the section  Forcing Windows to Detect Your Hardware of Appendix D   Troubleshooting and Common Questions     To install the PCMCIA 232 or PCMCIA 485 in your computer  first start  Windows Me 9x  If the card is not already inse
233. tware for Windows NT     1  Loginas Administrator or as a user who has Administrator  privileges   2  Select Start  Settings   Control Panel     3  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears     4  Click the Install button     5  When prompted  insert the NI Serial Software for Windows  2000 NT XP Me 9x  and click the Next button  The setup wizard  begins  The setup wizard guides you through the necessary steps to  install the NI Serial software  To go back and change values where  appropriate  click the Back button  To exit the setup wizard at any  time  click the Cancel button          Note The setup wizard backs up the Windows NT serial driver serial sys to  serial  bak and then overwrites serial sys  You can find serial sys in  the WinNT system32 drivers directory     6  Ifyour hardware is already installed  restart Windows NT and continue  to the Verify the Installation section     The software installation is complete     Install the Hardware    UN Caution Before you remove your board from the package  touch the antistatic plastic  package to a metal part of your system chassis to discharge electrostatic energy  which can  damage several components on your serial board     NI Serial Hardware and Software for Windows 3 16 ni com    Chapter 3 PXI Serial Hardware Installation  Verification  and Configuration    To install your PXI serial board  complete the following steps     1  Turn off your PXI or CompactPCI chassis  Keep the 
234. vice Removal dialog box  click the OK button to  remove the hardware information  or click the Cancel button to cancel  your request     Uninstall the Software    Before you uninstall the NI Serial software  you must remove the hardware  information from your system  as described in the previous section     To uninstall the NI Serial software  complete the following steps   1  Select Start  Settings  Control Panel     2  Double click the Add Remove Programs icon  The Add Remove  Programs dialog box appears  This dialog box lists the software that  you can uninstall     NI Serial Hardware and Software for Windows C 8 ni com    Appendix C Uninstalling the Hardware and Software    Select NI Serial and click the Change Remove button  The  uninstallation program removes all folders  utilities  and registry  entries associated with the NI Serial software     Shut down Windows 2000  power off your computer  and physically  remove the serial interfaces from your system     The uninstallation program removes only items that the setup wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 3  PXI Serial  Hardware Installation  Verification  and Configuration     Windows Me 9x    Uninstall the Hardware    Before you physically remove the serial hardware from your system  you  must remove
235. ware  installed  Windows 2000  D 19  diagnostic test failure  Windows 2000  D 19  hardware support for SDLC and ModBus  protocols  D 24  loopback test problems  D 24  maximum number of serial ports  D 26  maximum supported baud rate  Windows NT  D 21  naming National Instruments serial ports  Windows NT  D 20  removing information about serial boards  from Device Manager  Windows 2000  D 21  sending data to closed serial ports  D 24    NI Serial Hardware and Software for Windows l 2    throughput definition  D 23  USB  forcing windows to detect your  hardware  D 17  resolving power conflicts  D 16  version differences  D 24  using USB serial hardware with  high speed USB networks  D 24  using USB  Ethernet  and plug in  hardware simultaneously  D 26  Windows 2000  D 19  communication port settings  viewing or changing  Windows 2000  2 5  3 5  4 3   5 5  6 5  Windows Me 9x  2 14  3 13   5 12  6 14  Windows NT  2 20  3 19  5 18  6 22  ComponentWorks  1 10  ComponentWorks    1 11  configuration  resource settings  6 24  conflict free resources  D 5  selecting  D 5  connecting cables  A 1  connecting cables to four port PCI serial board   figure   A 5  connecting two wire devices  A 1  contacting National Instruments  F 2  conventions  ix  customer  education  F 1  professional services  F 1  technical support  F 1    D    DB 25 connector  A 4  pin descriptions  table   A 4  pin locations  figure   A 4    ni com    DB 9  100 pin connector pin descriptions   figure   A 8  100 pin 
236. ware and Software for Windows D 6 ni com    Appendix D Troubleshooting and Common Questions    Troubleshooting Diagnostic Messages    This section lists possible error messages returned by the diagnostic utility   along with solutions     No National Instruments Serial Port Found    Ifthe No National Instruments serial port found error message  appears  complete the following steps     1  Verify the hardware resources  as follows     a  Inthe Device Manager tab  under Multi function adapters   double click a serial board     b  Ifa serial board is missing from the Multi function adapters list   reinstall the hardware and software  For instructions on how to do  so  refer to the installation and verification chapter for your  hardware platform     c  Click the Resources tab  If the resources were assigned properly   the Resources tab shows which resources are assigned to your  serial ports  If they are in conflict  refer to the Resolving Resource  Conflicts with Legacy Boards section     2  Insome versions of Windows Me 9x  in the Device Manager  the  Driver tab shows information about the installed driver  Make sure that  the National Instruments serial driver is installed for the port     If the serial driver is a Microsoft driver  reinstall the NI Serial  software  For instructions on how to do so  refer to the installation and  verification chapter for your hardware platform     3  Make sure that the National Instruments serial driver is installed  as  follows     a  Locat
237. wizard  installed  If you added anything to a directory that the setup wizard created   the uninstallation program does not delete that directory  You must remove  any remaining components yourself     To reinstall the hardware and software  refer to Chapter 4  USB Serial  Hardware Installation  Verification  and Configuration     Windows Me 9x    Uninstall the Hardware    Before physically removing the serial hardware  you must remove the  hardware information from the Windows Me 9x Device Manager     Complete the following steps to uninstall the hardware     1     m E oe             National Instruments Corporation    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 the Ports  COM  amp  LPT  icon     Select the National Instruments port to remove from the list of ports   as shown in Figure C 8     C 15 NI Serial Hardware and Software for Windows    Appendix C Uninstalling the Hardware and Software       System Properties HEI    General Device Manager   Hardware Profiles   Performance        View devices by type C View devices by connection          Keyboard  Modem  Monitor  B Mouse  E Multi function adapters  N I  PCMCIA 232 4 Multi function Parent  B9 Network adapters  E  Dther devices      PCMCIA socket  oy Ports  COM  amp  LPT      Communications Port  COM1   A i N I  PCMCIA 232 4 Communications Port  COM5      N I  PCMCIA 
238. ws 2000 XP     10  Windows 2000 XP should automatically detect your hardware and  display the Found New Hardware Wizard  Complete the wizard by  clicking Next in each window and then Finish     If the Found New Hardware Wizard does not appear  refer to the  Forcing Windows to Detect Your Hardware section of Appendix D   Troubleshooting and Common Questions     The serial hardware installation is complete     Verify the Installation    To verify the hardware and software installation  complete the following  steps     1  Select Start  Settings  Control Panel and double click the  System icon        National Instruments Corporation 2 3 NI Serial Hardware and Software for Windows    Chapter 2 PCI Serial Hardware Installation  Verification  and Configuration    2  Click the Hardware tab and then click the Device Manager button   Double click the Ports  COM  amp  LPT  icon to display all of the ports   4  Double click the Multi function adapters icon     The PCI serial boards are configured as devices belonging to the  multi function adapters class  The multi function parent device is  listed under the Multi function adapters icon  and each child device  is listed as a port under the Ports  COM  amp  LPT  icon     Figure 2 2 shows the Device Manager tab for serial hardware that is  installed properly        28 5            Action View      gt          22    a                    8  E  8        8                                                                      E                 
239. y 160 mm   3 94 by 6 37 in         connector                  sss 10 position modular jack  Power requirement  from PXI channel   PXI 8420 4  T          as eene Aden 125 mA typical  200 mA maximum  VZV DCs ares deem 40 mA typical  400 mA maximum  PXI 8421 4   5                350 mA typical  750 mA maximum         8422 4  HSN DC Bed 500 mA typical  750 mA maximum  PXI 8423 4   S        aec 1 000 mA typical  1 500 mA maximum  Eight Port Boards  Dimensions  gno abe 100 by 160 mm   3 94 by 6 37 in         connector                ssssseeeee 68 position  SCSI type connector       1 The four port PXI serial boards require a cable to convert the 10 position modular jack to either DB 9 or DB 25 connectors       The eight port PXI serial boards require cables  which are included in your kit  to convert the 68 position connector to  eight DB 9 connectors        National Instruments Corporation E 5 NI Serial Hardware and Software for Windows    Appendix E Specifications    Power requirement  from PXI channel     PXI 8420 8  T5 VDO   denen 150 mA typical  250 mA maximum  X12                     80 mA typical  800 mA maximum  PXI 8421 8   9  VDO  iude 1 100 mA typical  2 000 mA maximum  16 Port Boards  Dimensions                  eeeeeee 100 by 160 mm   3 94 by 6 37 in         connector                   sse 100 position  SCSI type    connector    Power requirement  from PXI channel   PXI 8420 16      VDO i bel 500 mA typical  750 mA maximum    Environmental Characteristics    Operating 
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Ficha Técnica AC-2238104-08 - PCH Mayorista en Tecnología  Le GUIDE de l`enseignant  WCM-110 802.11g Wireless Ethernet Adapter User's Manual  Samsung SGH-B100 Bruksanvisning  Trisa Electronics Double Flex  Installation- and Operating Instructions  ROHO® Sistemas de encosto AGILITY™ MANUAL DE INSTRUÇÕES  csew - UK Data Service  SUB30取扱説明書  Voyagez en toute liberté ! www.lignesdazur.com    Copyright © All rights reserved. 
   Failed to retrieve file