Home

How to Use This Manual

image

Contents

1. 22 Half Duplex Figure A 1 Typical Full Duplex System 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 A 2 shows a typical half duplex system Slave 1 Slave 2 Slaven Rx RN Rx x gt 7 lt e e gt x1 Figure A 2 Typical Half Duplex System PXI Serial for Windows NT 4 ni com Termination Appendix A Serial Port Information Because each differential pair of wires is a transmission line you must properly terminate the line to prevent reflections 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 2 You can order an optional DB 9 RS 485 termination connector that contains embedded terminating resistors for easy termination from National Instruments For ordering information contact National Instruments Figure A 3 shows a multidrop network using terminating resistors Slave
2. c scscssssssssssssscessnssscssssesecsssnssscaseacensenes 4 2 Two Wire Mode TXRDY Auto Control eee 4 3 Setting the Transceiver Control Mode see 4 3 Setting the Transceiver Mode with DeviceloControl sse 4 3 Appendix A Serial Port Information Appendix B Uninstalling the Hardware and Software Appendix C Troubleshooting and Common Questions Appendix D Specifications Appendix E Technical Support Resources Glossary Index Figures Figure 2 1 Add Remove Programs Properties Dialog 2 2 Figure 2 2 NI Serial Setup 2 3 Figure 2 3 Installing the PXI Serial Board esee 2 5 Figure 2 4 9 Connector Pin Locations 2 7 Figure 2 5 10 Position Modular Jack Pin Locations eee 2 8 Figure 2 6 25 Connector Pin Locations 2 9 PXI Serial for Windows NT viii ni com Contents Figure 2 7 Connecting the Cables to Your Four Port PXI Serial Board 2 10 Figure 2 8 68 Pin Connector Pin Locations eese 2 11 Figure 3 1 niports Configuration 3 1 Figure 3 2 General Port Settings Dialog Box see 3 2 Figure A 1 Typical Full Duplex System eee A 4 Figure A 2 Typical Half Duplex System esee
3. using with serial hardware 1 5 maximum supported baud rate C 5 missing serial port in the niports list C 1 modular jack connector 2 8 pin descriptions table 2 8 pin locations figure 2 8 multidrop network using terminating resistors figure A 5 ni com naming National Instruments serial ports C 5 National Instruments Web support 5 NI Developer Zone 5 NI serial setup screen figure 2 3 niports configuration utility figure 3 1 null modem cabling in a DTE to DTE interface figure A 7 0 optional equipment 1 2 overview of serial hardware 1 2 overview of serial software 1 4 P pin descriptions 68 pin connector pin descriptions figure 2 11 68 pin connector pin descriptions table 2 12 DB 25 connector 2 0 connector pin descriptions table 2 9 connector pin locations figure 2 9 DB 9 68 pin description table 2 12 connector 2 7 connector pin descriptions table 2 7 connector pin locations figure 2 7 PXI board names and descriptions table 1 3 PXI serial board installation figure 2 5 R related documentation xii resolving resource conflicts C 2 National Instruments Corporation 1 3 Index RS 232 standard A 1 features table A 1 RS 422 standard A 2 features table A 1 RS 485 advanced transceiver control for 4 1 setting transceiver control mode 4 3 transceiver mode control modes table 4 2 two wire mode DTR controlled 4 2 two wire mode DTR with
4. 1 Slave 2 Slave n JN AN AN MASTER oH 100 100 Bias Resistors Figure A 3 Multidrop Network Using Terminating Resistors A 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 force the transmission line into a known state To do so install two 620 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 less than 200 mV the threshold voltage for the receiver You should install these resistors on only one node Note Bias resistors are not available on the eight port PXI 8421 National Instruments Corporation 5 PXI Serial for Windows Appendix A Serial Port Information DTE vs DCE Figure A 4 shows a transmission line using bias resistors 5 620 Q Bias Resistor 100 Q Termination Resistor 620 Q Bias Resistor V Figure A 4 Transmission Line Using Bias Resistors 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 eight nodes in a system you can use 4 7 kQ resistors at each node to effectively achieve the same result In the RS 232
5. DB 9 connectors Throughout this manual PXI serial boards refers to all versions of the PXI serial boards The isolated PXI 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 Non isolated 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 4 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 D Specifications Table 1 1 lists the PXI serial board numb
6. Echo 4 2 two wire mode TXRDY auto control 4 3 RS 485 standard A 2 features table A 1 S selecting an interface to uninstall figure B 1 serial communication issues A 3 bias resistors A 5 DTE vs DCE A 6 duplex architectures A 3 serial hardware general programming requirements 4 1 installation 2 4 overview 1 2 selecting an interface to uninstall figure B 1 uninstalling B 1 using 4 1 using with LabVIEW and LabWindows CVI 1 5 serial port information A 1 serial software add remove programs properties dialog box figure B 2 installation 2 1 overview 1 4 successful uninstallation figure B 3 uninstalling B 2 PXI Serial for Windows NT Index setting transceiver control mode 4 3 setting with DeviceloControl 4 3 setup screen for NI serial software figure 2 3 software characteristics D 3 software installation 2 1 getting started 1 2 specifications D 1 eight port boards D 2 environmental characteristics D 3 four port boards D 1 software characteristics D 3 two port boards D 1 straight through cabling in a DTE to DCE interface figure A 7 successful uninstallation figure B 3 system integration by National Instruments 5 T technical support resources 5 termination A 5 multidrop network using terminating resistors figure A 5 time saving development tools 1 4 transceiver control modes table 4 2 transceiver mode 3 3 setting with DeviceloControl 4 3 transmission li
7. Software 3 Select the NI Serial software you want to uninstall and click on the Add Remove button The uninstallation program removes all folders utilities and registry entries associated with the NI Serial software Figure B 3 shows the results of a successful uninstallation Remove Programs From Your Computer Figure B 3 Successful Uninstallation 4 Shutdown Windows NT turn off your computer and physically remove the serial interfaces from your system The uninstallation program only removes 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 If you want to reinstall the hardware and software refer to Chapter 2 Installation and Verification National Instruments Corporation B 3 PXI Serial for Windows NT Troubleshooting and Common Questions This appendix describes how to troubleshoot problems and answers some common questions Missing Serial Port in the niports List 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 on the niports icon If your PXI serial hardware is missing from this list complete the following steps 1 Physically make sure that your board is installed pr
8. addition you can order the LabWindows CVI 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 V XI devices serial devices PLCs and plug in data acquisition boards After 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 1 4 ni com Chapter 1 Introduction which dramatically reduce software development time because you do not have to spend time programming the low level control of each instrument LabWindows CVI is similar to LabVIEW except that it combines an interactive easy to use development approach with the programming power and flexibility of compiled ANSI C code For ordering information or to request free demonstration software contact National Instruments Using Your Serial Hardware with LabVIEW and LabWindows CVI After you install your serial hardware and the NI Serial software you can use standard serial I O functions in LabVIEW and LabWindows CVI with your serial interface If you already have LabVIEW or LabWindows CVI and want to use it with your serial hardware refer to your LabVIEW or LabWindows CVI documentation for information abo
9. following steps 1 Turn off your PXI or CompactPCI chassis Keep the 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 p xs poc LES Insert the PXI serial board into the 5 V slot Use the injector ejector handle to fully inject the device into place Figure 2 3 shows how to install the PXI serial board into a PXI or CompactPCI chassis PXI Serial for Windows NT 2 4 ni com Chapter 2 Installation and Verification 1 Injector Ejector Handle In Down 3 PXI Chassis Position 4 Injector Ejector Rail 2 PXI Serial Board Figure 2 3 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 NT The serial hardware installation is complete Continue to the next section Verify the Installation National Instruments Corporation 2 5 PXI Serial for Windows NT Chapter 2 Installation and Verification 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 clic
10. is available from National Instruments You can also use a DB 25 connector with the four port PXI serial boards by ordering the 10 position modular jack to DB 25 converter cable from National Instruments The eight port PXI serial boards include a pig tail cable adapter providing eight standard DB 9 connectors 2 6 ni com Chapter 2 Installation and Verification DB 9 Connector Figure 2 4 and Table 2 1 give the pin locations and descriptions of the DB 9 connector which is on the two port PXI serial board the 10 position modular jack to DB 9 cable and the cable adapter for the eight port board PIN 5 bia PIN 1 PIN 6 Figure 2 4 DB 9 Connector Pin Locations Tahle 2 1 DB 9 Pin Descriptions DB 9 Pin 232 Signal 485 Signal 1 DCD GND 2 RXD CTS HSI 3 TXD RTS HSO 4 DTR RXD 5 GND RXD 6 DSR CTS HSI 7 RTS RTS HSO 8 CTS TXD 9 RI TXD National Instruments Corporation 2 7 PXI Serial for Windows NT Chapter 2 Installation and Verification Modular Jack Connector Figure 2 5 and Table 2 2 give the pin locations and descriptions of the 10 position modular jack which is on the four port PXI serial board Pin 1 Pin 10 Figure 2 5 10 Position Modular Jack Pin Locations Tahle 2 2 10 Position Modular Jack Pin Descriptions 10 Position M
11. mode 4 3 transceiver mode control modes table 4 2 two wire mode DTR controlled 4 2 two wire mode DTR with Echo 4 2 two wire mode TXRDY auto control 4 3 bias resistors A 5 using in transmission line figure A 6 C cable connection 2 6 changing communication port settings 3 1 COM port number 3 3 common questions C 4 determining port associated with C 5 determining type of serial hardware installed C 4 determining version of NI Serial software installed C 4 National Instruments Corporation diagnostic test failure C 4 maximum supported baud rate C 5 naming National Instruments serial ports C 5 communication port settings 3 1 viewing or changing 3 1 communication port settings configuration 3 1 configuration 3 1 connecting cables 2 6 connecting cables to four port PXI serial board figure 2 10 connecting two wire devices 2 12 conventions xi customer education 5 D DB 25 connector 2 9 pin descriptions table 2 9 pin locations figure 2 9 DB 9 68 pin connector pin descriptions figure 2 11 68 pin connector pin descriptions table 2 12 connector 2 7 pin descriptions table 2 7 pin locations figure 2 7 DCE vs DTE A 6 determining port associated with COMx C 5 determining type of serial hardware installed C 4 determining version of NI Serial software installed C 4 development tools for saving time 1 4 DeviceloControl 4 3 input values table 4 4 setti
12. 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 LabVIEW National Instruments ni com and PXI are trademarks of National Instruments Corporation Product and company names mentioned herein are trademarks or trade names of their respective companies 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 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 DE
13. 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 believes 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
14. the same method as the DTR with echo mode to control the transmitter the hardware automatically disables the receiver whenever the transmitter is enabled Thus you do not receive the packets sent from your transmitter 4 2 ni com Chapter 4 Using Your Serial Hardware Two Wire Mode TXRDY 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 flow control from your application By connecting the transmitter to the TXRDY Transmit Ready line the hardware 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 hy Note When you are communicating with a two wire device National Instruments recommends that you use the two wire TXRDY 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 in Appendix A Serial Port Information Setting the Transceiver Control Mode To set the transceiver control mode use the serial configuration utility For instructions on how to use the utility refer to Chapter 3 Configura
15. 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 require between the two DTEs To communicate from one serial port to another use a null modem cable Figure A 6 shows null modem cabling in a DTE to DTE interface Rx D Rx D Pin 2 Tx D Tx D Pin 3 Pin 2 Pin 3 Figure A 6 Null Modem Cabling in a DTE to DTE Interface A 7 PXI Serial for Windows NT Uninstalling the Hardware and Software This appendix describes how to uninstall your serial hardware and the NI Serial software 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 Loginas Administrator or as a user who has Administrator privileges 2 Select Start Settings Control Panel and double click on the niports icon 3 From the Ports list select the port of the board you want to uninstall as shown in Figure B 1 National Instruments Ports x Ports Settings E Delete PXI 8422 Isolated RS 232 4 Ports PXI 8422 Isolated RS 232 4 Ports Add a New PCMCIA card PCMCIA 485 hd Add Figure B 1 Selecting an Interface to Uninstall National
16. 8420 8 9 V DG 150 mA typical 250 mA maximum 12 VDC vices nenun 80 mA typical 800 mA maximum PXI 8421 8 49 1100 mA typical 2000 mA maximum 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 PXI Serial for Windows NT D 2 ni com Appendix D Specifications Environmental Characteristics Operating environment Component temperature 0 to 70 C Relative humidity 10 to 9096 noncondensing Storage environment Temperature esses 40 to 120 C Relative humidity 5 to 90 noncondensing EMI ito tp aq FCC Class A Verified Software Characteristics Maximum serial transfer rate 52489 460 800 bps 92292 m dete een 115 200 bps 1 Actual speed may vary considerably from speed shown due to system and instrumentation capabilities National Instruments Corporation D 3 PXI Serial for Windows NT Technical Support Resources Web Support National Instruments Web support is your first stop for help in solving installation configuration and application problems and questions Online problem solving and diagnostic resources include frequently asked questions knowledge bases produ
17. A 4 Figure A 3 Multidrop Network Using Terminating Resistors A 5 Figure A 4 Transmission Line Using Bias Resistors eee A 6 Figure 5 Straight Through Cabling in a DTE to DCE Interface 7 Figure A 6 Null Modem Cabling in a DTE to DTE Interface 7 Figure B 1 Selecting an Interface to B 1 Figure B 2 Add Remove Programs Properties Dialog B 2 Figure B 3 Successful Uninstallation eese B 3 Tables Table 1 1 PXI Board Names and Descriptions eese 1 3 Table 2 1 DB 9 Pin Descriptions sc eer rr E CARE PERRA RER 2 7 Table 2 2 10 Position Modular Jack Pin Descriptions eese 2 8 Table 2 3 DB 25 Pitt Descriptions iecore re itte ir ene etre i pe E een 2 9 Table 2 4 68 Pin Connector Pin Descriptions esee 2 12 Table 4 1 Transceiver Control Modes essent 4 2 Table 4 2 DeviceloControl Function Input Values eere 4 4 Table A 1 RS 232 RS 422 and RS 485 A 1 National Instruments Corporation ix PXI Serial for Windows NT About This Manual Conventions This manual contains instructions to help you install and configure the National Instrument
18. IFOs National Semiconductor ST16C654 Asynchronous Receiver Transmitter with FIFOs EXAR Corporation Xii 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 serial hardware and the NI Serial software How to Use This Manual C Gather What You Need to Get Started Install the NI Serial Software Install the Serial Hardware y 1 the Installation lt gt Troubleshooting ConnecttheCables the Cables Chapter 3 Configure the Serial Port Y Chapter 1 Chapter 2 Learn About Transceiver Control Modes Chapter 4 Review Programming Requirements Write Application Program National Instruments Corporation 1 1 PXI Serial for Windows NT 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 C Windows NT 4 0 or higher installed on your computer L One of the following serial boards which is included in your kit PXI 8420 two four or eight port PXI 8421 two four or eight port PXI 8422 two or four port PXI 8423 two or four port C CD NI Serial Software for Windows 2000 NT Me 9x which is included in your kit Optional Equipment For more information about ordering the fol
19. Instruments Corporation B 1 PXI Serial for Windows NT Appendix B Uninstalling the Hardware and Software 4 Click on the Delete button 5 Repeat steps 3 and 4 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 Select Start Settings Control Panel 2 Double click on the Add Remove Programs icon A dialog box similar to the one shown in Figure B 2 appears This dialog box lists the software that you can uninstall Add Remove Programs Properties Install Uninstall Windows Setup Startup Disk EJ To install a new program from a floppy disk or CD ROM Prd drive click Install Install T 2 Ihe following software can be automatically removed by Windows To remove a program or to modify its installed components select it from the list and click Add Remove Microsoft Publisher 97 Microsoft Small Business Financial Manager 97 Microsoft Visual C 5 0 Microsoft Word 97 National Instruments Serial NI CAN v1 2 1 NI CCDB for Windows 95 NT zi for Windows 95 NT NuMega SoftICE Add Remove Figure B 2 Add Remove Programs Properties Dialog Box PXI Serial for Windows B 2 ni com Appendix B Uninstalling the Hardware and
20. Serial Getting Started with Your PXI Serial Hardware and Software for Windows NT Wy NATIONAL September 2000 Edition y INSTRUMENTS Part Number 322013C 01 Worldwide Technical Support and Product Information ni com National Instruments Corporate Headquarters 11500 North Mopac Expressway Austin Texas 78759 3504 USA Tel 512 794 0100 Worldwide Offices Australia 03 9879 5166 Austria 0662 45 79 90 0 Belgium 02 757 00 20 Brazil 011 284 5011 Canada Calgary 403 274 9391 Canada Ontario 905 785 0085 Canada Qu bec 514 694 8521 China 0755 3904939 Denmark 45 76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Greece 30 1 42 96 427 Hong Kong 2645 3186 India 91805275406 Israel 03 6120092 Italy 02 413091 Japan 03 5472 2970 Korea 02 596 7456 Mexico D F 5 280 7625 Mexico Monterrey 8 357 7695 Netherlands 0348 433466 New Zealand 09 914 0488 Norway 32 27 73 00 Poland 0 22 528 94 06 Portugal 351 1 726 9011 Singapore 2265886 Spain 91 640 0085 Sweden 08 587 895 00 Switzerland 056 200 51 51 Taiwan 02 2528 7227 United Kingdom 01635 523545 For further support information see the Technical Support Resources appendix To comment on the documentation send e mail to techpubseni com Copyright 1998 2000 National Instruments Corporation All rights reserved Important Information Warranty The serial hardware is warranted against defects in materials and workmanship for a period of
21. 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 herein 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
22. VICES 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 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 commu
23. ct specific troubleshooting wizards manuals drivers software updates and more Web support is available through the Technical Support section of ni com NI Developer Zone The NI Developer Zone at ni com zone is the essential resource for building measurement and automation systems At the NI Developer Zone you can easily access the latest example programs system configurators tutorials technical news as well as a community of developers ready to share their own techniques Customer Education National Instruments provides a number of alternatives to satisfy your training needs from self paced tutorials videos and interactive CDs to instructor led hands on courses at locations around the world Visit the Customer Education section of ni com for online course schedules syllabi training centers and class registration System Integration If you have time constraints limited in house technical resources or other dilemmas you may prefer to employ consulting or system integration services You can rely on the expertise available through our worldwide network of Alliance Program members To find out more about our Alliance system integration solutions visit the System Integration section of ni com National Instruments Corporation E 5 PXI Serial for Windows NT Appendix E Technical Support Resources Worldwide Support National Instruments has offices located around the world to help address your support n
24. d lpOverlapped PXI Serial for Windows NT 4 4 ni com 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 A 1 lists the features of the RS 232 RS 422 and RS 485 standards Table A 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 V 12 to 7 V Driver output 5to25 V 2to6 V 1 5 to 6 V Driver load gt 3 kQ 100 Q 60 Q National Instruments Corporation A 1 As specified in the 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 Most 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 PXI Serial for Windows NT Appendix A Serial Port Informatio
25. e F1 8422 Isolated R5 232 4 Ports COME P 1 8422 Isolated RS 232 4 Ports COM P 1 8422 Isolated RS 232 4 Ports 8422 Is Add a New PCMCIA card PCMCIA 485 ba Add Figure 3 1 niports Configuration Utility National Instruments Corporation 3 1 PXI Serial for Windows NT Chapter 3 Configuration 2 Select the port that you want to configure and refer to the following instructions remove hardware information about the port from Windows NT click on the Delete button You should do this before you remove your hardware view or change the port settings click on the Settings button For more information about the settings refer to the next section General Port Settings Inthe General Port Settings dialog box click on the Resources button to view the resources for the port General Port Settings The following sections describe the options you can set in the General Port Settings dialog box shown in Figure 3 2 General Port Settings TramscevEntpue Figure 3 2 General Port Settings Dialog Box PXI Serial for Windows 3 2 ni com Chapter 3 Configuration 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 re
26. eeds You can access our branch office Web sites from the Worldwide Offices section of ni com Branch office Web sites provide up to date contact information support phone numbers e mail addresses and current events If you have searched the technical support resources on our Web site and still cannot find the answers you need contact your local office or National Instruments corporate Phone numbers for our worldwide offices are listed at the front of this manual PXI Serial for Windows NT E 6 ni com Glossary Prefix Meaning Value p pico 10 12 n nano 10 9 u micro 10 6 m milli 10 3 kilo 103 M mega 106 G giga 10 t tera 10 degrees percent Q ohms A amperes ANSI American National Standards Institute b bits B bytes baud bits per second bps bits per second C Celsius COM Computer Output Microform used in reference to a communication port CTS clear to send DB xx subminiature D connector where xx is the number of pins DCD data carrier defect DCE data communications equipment or data circuit terminating equipment National Instruments Corporation G 1 PXI Serial for Windows NT Glossary ISA KBaud m MB PC PCI PCMCIA PXI PXI Serial for Windows NT 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
27. erial sys file and select Properties d Click on 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 Chapter 2 Installation and Verification 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 on the niports icon b In the Ports list select a port and click on 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 Chapter 2 Installation and Verification c Inthe General Port Settings dialog box click on the Resources button to view the resources for the port d Check the hardware resources If they are in conflict refer to the previous section Resolving Resource Conflicts 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 Chapter 2 Installation and Verification National Instruments Corporation C 3 PXI Serial for Windows NT Append
28. ers and corresponding board descriptions Table 1 1 PXI Board Names and Descriptions PXI Board Name Description PXI 8420 RS 232 2 port RS 232 4 port RS 232 8 port PXI 8421 RS 485 2 port RS 485 4 port RS 485 8 port National Instruments Corporation 1 3 PXI Serial for Windows NT Chapter 1 Introduction Table 1 1 PXI Board Names and Descriptions Continued PXI Board Name Description PXI 8422 RS 232 2 port isolated RS 232 4 port isolated PXI 8423 RS 485 2 port isolated RS 485 4 port isolated NI Serial Software Overview The NI Serial software for Windows NT includes a native Windows NT kernel driver that provides full interrupt driven buffered I O for multiple COM ports You can obtain a maximum baud rate of 460 8 KBaud for the PCI 485 and 115 2 KBaud for the PCI 232 The NI Serial software also includes a configuration utility which is fully integrated into the Windows NT Control Panel For more information about software specifications refer to Appendix D Specifications The NI Serial software includes the following components e Device driver e Diagnostic utility e Configuration utility e Product manuals The NI Serial software supports all National Instruments serial hardware including the AT PCI PXI CompactPCI and PCMCIA versions Time Saving Development Tools PXI Serial for Windows NT Your kit includes the NI Serial software for Windows NT In
29. ers in the EU EEC EEA must refer to the Manufacturer s Declaration of Conformity DoC for information pertaining to the CE Mark 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 Certain exemptions may apply in the USA see FCC Rules 815 103 Exempted devices and 15 105 c Also available in sections of CFR 47 The CE Mark Declaration of Conformity will contain important supplementary information and instructions for the user or installer Contents About This Manual ee ERE xi Related Documentations aea S iiia iaia xii Chapter 1 Introduction How to Use This Manual cns ettet ee a AE SES 1 1 What You Need to Get Started sssssssssseseeeeeeeeeeeee eene nnne nnne nennen 1 2 Optional Equipment ete tt rea ee REM Oti Pe dave cebvees 1 2 PXI Serial Hardware Overview sees eene eene eene n nennen nnne n nsns sss e ein 1 2 NI Serial Software Overview eeeeeeeeeeeeee ee e eene enne eene nennt nent nn nnns nnns ases 1 4 Time Saving Development Tools essere 1 4 Using Your Serial Hardware with LabVIEW and LabWindows CVI 1 5 Chapter 2 Installation and Verification Install the SoftWa
30. etup and then close any programs you have running Click Next to continue with the Setup program WARNING This program is protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law Figure 2 2 NI Serial Setup Screen The setup wizard guides you through the necessary steps to install the NI Serial software To go back and change values where appropriate click on the Back button To exit the setup wizard at any time click on 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 Ifyou your hardware is already installed restart Windows NT and continue to the Verify the Installation section The software installation is complete Continue to the next section Install the Hardware National Instruments Corporation 2 3 PXI Serial for Windows NT Chapter 2 Installation and Verification 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 To install your PXI serial board complete the
31. fer to Chapter 4 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 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 overrun errors due to interrupt latency e If 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 on the Resources button You cannot change these resources they are automatically assigned National Instruments Corporation 3 8 PXI Serial for Windows NT Using Your Serial Hardware This chapter describes how to set the hardware transceiver control mode for your RS 485 interfaces and
32. gy and if not installed and used in strict accordance with the instructions in this manual and the CE Mark 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 FOR HOME OR OFFICE USE 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 will be 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 A respecte toutes les exigences du R glement sur le mat rie
33. ication 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 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 A 1 shows a typical full duplex system National Instruments Corporation A 3 PXI Serial for Windows NT Appendix A Serial Port Information Slave 1 Tx Rx Slave 2 TA Slave n Tx Rx 77 MASTER y A
34. ix C Troubleshooting and Common Questions c Right click on the serial sys file and select Properties d Click on 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 Chapter 2 Installation and Verification 3 Physically make sure the correct number of boards and ports are installed 1 0 Address Test Failed Ifthe I O address test failed Interrupt test cannot be performed error message appears you might have an I O address conflict with legacy boards in your system To solve this problem change the base I O addresses assigned to your legacy boards For instructions on how to do so refer to your legacy 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 Common Questions PXI Serial for Windows NT How can I determine which type of serial hardware I have installed To display a list of installed ports select Start Settings Control Panel and double click on the niports icon How can I determine which version of the NI Serial software I have installed The Read Me file gives the version of the software T
35. k on 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 Appendix C Troubleshooting and Common Questions b Select the COM port that you want to verify and click on 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 Runthe diagnostic utility as follows 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 C Troubleshooting and Common Questions to troubleshoot the problem After you verify the hardware and software installation continue to the next section Connect the Cables Connect the Cables PXI Serial for Windows NT For the two port PXI serial boards you can use the standard DB 9 connector found on most serial cables To use the DB 9 connector with the four port PXI serial boards you need the 10 position modular jack to DB 9 cable which
36. l brouilleur du Canada Class B Federal Communications Commission This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one or more of the following measures e Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help Canadian Department of Communications This Class B digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations Cet appareil num rique de la classe B respecte toutes les exigences du R glement sur le mat riel brouilleur du Canada European Union Compliance to EEC Directives Read
37. lists some general programming requirements General Programming Requirements The NI Serial software is fully integrated into the standard Windows NT communications software NI serial ports are used like any other Windows NT communications COM port Windows NT has standard communication functions for use within either Win16 or Win32 applications When you develop your application remember that you must use the standard Microsoft Windows serial communication functions For information about Microsoft Windows serial communication functions refer to the Win32 Software Development Kit and to the Win32 Overviews and Win32 Reference online help If you have LabVIEW or LabWindows CVI and want to use it with your serial hardware refer to your LabVIEW or LabWindows CVI documentation for information about serial I O functions Advanced Transceiver Control for the RS 485 5 Note Transceiver modes apply only to RS 485 boards PXI 8421 and PXI 8423 The RS 485 boards support four modes of hardware transceiver control You can use hardware flow control to enable and disable your transmitters and receivers so that they function on different bus topologies Table 4 1 lists the status of the transmitters and receivers under each of the transceiver control modes National Instruments Corporation 4 1 PXI Serial for Windows NT Chapter 4 Using Your Serial Hardware Table 4 1 Transceiver Con
38. lowing optional equipment contact National Instruments e DB 9 RS 485 termination connector RS 485 only PXI 8421 and PXI 8423 e O position modular jack to DB 9 cable four port boards only e 10 position modular jack to DB 25 cable four port boards only e 68 pin to DB 9 adapter cable eight port boards only e RS 232 9 pin to 9 pin null modem cable e RS 232 9 pin to 25 pin null modem cable PXI Serial Hardware Overview PXI Serial for Windows NT 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 Additionally the PXI serial boards are available in a two port version a four port version and an eight port version PXI 8420 and PXI 8421 only The two port versions use DB 9 connectors The four port versions 1 2 ni com Chapter 1 Introduction 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
39. n 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 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 PXI Serial for Windows NT As specified in the EIA 485 Standard Standard for Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Sys
40. ne using bias resistors figure A 6 troubleshooting C 1 diagnostic messages C 2 missing serial port in the niports list C 1 resolving resource conflicts C 2 two port boards specifications D 1 two wire devices 2 12 connecting 2 12 typical full duplex system figure A 4 typical half duplex system figure A 4 PXI Serial for Windows NT l 4 U uninstalling serial hardware B 1 uninstalling serial software B 2 using serial hardware 4 1 using this manual 1 1 V verifying hardware installation 2 6 viewing or changing communication port settings 3 1 W Web support from National Instruments 5 Win32 Overviews and Win32 Reference 4 1 Win32 Software Development Kit 4 1 worldwide technical support 6 ni com
41. nect 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 RS 485 using half duplex communication you need a single twisted pair of wires At the RS 485 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 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 4 Using Your Serial Hardware For more information about duplex architectures refer to Appendix A Serial Port Information 2 12 ni com Configuration This chapter describes how to view or change the communication port settings View or Change 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 SelectStart Settings Control Panel and double click on the niports icon A list of installed National Instruments ports appears as shown in Figure 3 1 National Instruments Ports x Ports Settings z Delet
42. ng transceiver mode with 4 3 PXI Serial for Windows NT Index diagnostic messages C 2 address test failed C 4 diagnostic utility does not show all installed ports C 3 interrupt test failed C 4 no National Instruments serial port found C 2 troubleshooting C 2 diagnostic test failure C 4 DTE vs DCE A 6 DTE to DCE interface A 7 straight through cabling in figure A 7 DTE to DTE interface 7 null modem cabling in figure A 7 duplex architectures A 3 full duplex A 3 half duplex A 4 E eight port boards specifications D 2 environmental characteristics D 3 F FIFO buffer size 3 3 FIFO enabled 3 3 FIFO buffer size 3 3 four port boards connecting cables to figure 2 10 specifications D 1 four wire mode 4 2 full duplex A 3 full duplex system figure 4 G general port settings 3 2 COM port number 3 3 dialog box figure 3 2 FIFO enabled 3 3 PXI Serial for Windows NT l 2 resources 3 3 transceiver mode 3 3 general programming requirements 4 1 getting started 1 2 glossary G 1 H half duplex A 4 half duplex system figure A 4 hardware installation 2 4 getting started 1 2 verification 2 6 installation getting started 1 2 PXI serial board installation figure 2 5 serial hardware 2 4 serial software 2 1 verification 2 1 verifying hardware installation 2 6 introduction 1 1 L LabVIEW 1 4 using with serial hardware 1 5 LabWindows CVI 1 4
43. nications 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 Depending on where it is operated this 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 By examining the product you purchased you can determine the FCC Class and therefore which of the two FCC DOC Warnings apply in the following sections Some products may not be labeled at all for FCC if so the reader should then assume these are Class A devices FCC Class A products only display a simple warning statement of one paragraph in length regarding interference and undesired operation Most of our products are FCC Class A The FCC rules have restrictions regarding the locations where FCC Class A products can be operated FCC Class B products display either a FCC ID code starting with the letters EXN Trado Nan Model Kunder or the FCC Class B compliance mark that appears as shown here on the right DE HET FC with FCC Standards Consult the FCC web site http www fcc gov for more information FCC DOC Warnings This equipment generates and uses radio frequency ener
44. o open the file select Start Programs National Instruments Serial Read Me What do I do if the diagnostic test fails with an error Refer to the Troubleshooting Diagnostic Messages section earlier in this appendix C 4 ni com Appendix C Troubleshooting and Common Questions How can I determine which port is associated with COMx To determine which physical port is associated with COMx complete the following steps 1 SelectStart Settings Control Panel and double click on 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 earlier in this appendix 2 Select a COM port and click on 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 How can I change the COM numbers of my National Instruments serial ports Refer to the General Port Settings section in Chapter 3 Configuration What is the maximum baud rate supported and how can I set it The maximum baud rate supported is 460 8 Kbaud for RS 485 and 115 2 Kbaud for RS 232 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 Na
45. odular 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 4 RTS RTS HSO 3 CTS TXD 2 RI TXD 1 No Connect No Connect PXI Serial for Windows NT 2 8 ni com Chapter 2 Installation and Verification DB 25 Connector Figure 2 6 and Table 2 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 25 PIN 1 PIN 14 Figure 2 6 DB 25 Connector Pin Locations Table 2 3 DB 25 Pin Descriptions DB 25 Pin 232 Signal 485 Signal 2 TXD RTS HSO 3 RXD CTS HSI 4 RTS RTS HSO 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 National Instruments Corporation 2 9 PXI Serial for Windows NT Chapter 2 Installation and Verification Figure 2 7 shows how to connect the cables when you install a four port PXI serial board 10 Position Modular Jack 485 Terminator Additional to DB 9 Cable 485 Boards Only Serial Cable Ton a i cj mM ST ON lt t Serial Board LE 10 Position Modular Jack Additional to DB 25 Cable Serial Cable Figure 2 7 C
46. onnecting the Cables to Your Four Port PXI Serial Board PXI Serial for Windows NT 2 10 ni com Chapter 2 Installation and Verification 68 Pin Connector Figure 2 8 and Table 2 4 give the pin locations and descriptions of the 68 pin connector which is on the eight port PXI serial board PIN 68 PIN 34 PIN 35 PIN 1 ea Figure 2 8 68 Pin Connector Pin Locations National Instruments Corporation 2 11 PXI Serial for Windows NT Chapter 2 Installation and Verification Table 2 4 68 Pin Connector Pin Descriptions 68 Pin Connector Port 232 485 232 D Sub 9 485 D Sub 9 1 2 3 4 5 6 7 8 Signal Connector Signal Connector 61 52 44 35 27 18 10 1 CTS 8 TXD 8 62 53 45 36 28 19 11 2 RTS 7 RTS 7 63 54 46 37 29 20 12 3 DSR 6 CTS 6 64 55 47 38 30 21 13 4 DTR 4 RXD 4 65 56 48 39 31 22 14 5 TXD 3 RTS 3 66 57 49 40 32 23 15 6 CD 1 RXD 5 67 58 50 41 33 24 16 7 RI 9 TXD 9 68 59 51 42 34 25 17 8 RXD 2 CTS 2 60 60 43 43 26 26 9 9 GND 5 GND 1 Connecting Two Wire Devices PXI Serial for Windows NT The RS 485 boards PXI 8421 and PXI 8423 are 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 con
47. operly 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 on serial sys and select Properties c Click on 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 Chapter 2 Installation and Verification National Instruments Corporation C 1 PXI Serial for Windows NT Appendix C 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 conflict 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 I O port addresses interrupt levels and DMA channels that your system is currently using You can assign resources that are not listed by thi
48. s 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 National Instruments Corporation Xi PXI Serial for Windows NT About This Manual monospace bold 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 monospace italic Italic text in this font denotes text that is a placeholder for a word or value that you must supply PXI serial boards PXI serial boards refers to all port versions of the PXI serial boards Related Documentation The following documents contain information that you might find helpful as you read this manual PXI Serial for Windows NT ANSI EIA 232 D Standard Interface Between Data Terminal Equipment and Data Circuit Terminating Equipment Employing Serial Binary Data Interchange EIA RS 422 A Standard Electrical Characteristics of Balanced Voltage Digital Interface Circuits EIA 485 Standard Standard for Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems Microsoft Win32 Software Developer Kit Online Documentation for Win32 Overviews Win32 Reference and Microsoft Windows NT System Guide Microsoft Corporation NSI6550AF Universal Asynchronous Receiver Transmitter with F
49. s serial hardware and the NI Serial software for Windows NT This manual includes information about the RS 232 boards PXI 8420 two four and eight port and 8422 two and four port and the RS 485 boards PXI 8421 two four and eight port and PXI 8423 two and four port This manual assumes that you are already familiar with Windows NT bold italic monospace This manual uses the following conventions 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 Signal names with an overscore such as DTR indicate that the signal is active low 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 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 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 i
50. s 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 PXI Serial for Windows NT Verify the hardware resources as follows Select Start Settings Control Panel and double click on the niports icon In the Ports list select a port and click on 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 Chapter 2 Installation and Verification In the General Port Settings dialog box click on the Resources button to view the resources for the port Check the hardware resources If they are in conflict refer to the previous section Resolving Resource Conflicts C 2 ni com Appendix C 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 Chapter 2 Installation and Verification Right click on the s
51. serial system Electronic Industries Association electromagnetic interference Federal Communications Commission First In First Out feet ground handshake input handshake output Hertz Institute of Electrical and Electronic Engineers inches input output interrupt request Industry Standard Architecture kilobits per second meters megabytes of memory personal computer Peripheral Components Interconnect Personal Computer Memory Card International Association PCI eXtensions for Instrumentation G 2 ni com RAM RI RTS RX RXD SCSI TX TXD TXRDY UART VDC VXI Winl6 Win32 Glossary random access memory ring indicator request to send receive receive data seconds Small Computer Systems Interface transmit transmit data transmit ready the overscore denotes that the signal is active low 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 3 PXI Serial for Windows NT Index Numerics 10 position modular jack 2 8 pin descriptions table 2 8 pin locations figure 2 8 68 pin connector 2 11 pin descriptions table 2 12 pin locations figure 2 11 A add remove programs properties dialog box figure 2 2 B 2 advanced transceiver control for the RS 485 4 1 four wire mode 4 2 setting transceiver control
52. specification DTE Data Terminal 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 1 Tn Revision D of the RS 232 specification a DCE is a Data Circuit Terminating Equipment PXI Serial for Windows NT A 6 ni com Appendix A Serial Port Information Figure A 5 shows straight through cabling in a DTE to DCE interface Pin 2 Pin 3 Rx D Pin 2 TxD y Pin 3 National Instruments Corporation Figure A 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
53. te rh cet vetet dy dee tiende 2 1 Install the Hardware indir E ye RO ires 2 4 Venty the Installation sca cigs termed edere a RERO Me e ERES nen 2 6 Connectthe Cables 7 4 dete on tte edis re vt 2 6 DB 9 Connectotr Wen Neid a ddr eese 2 7 Modular Jack Connectot ccccccccccccsssscccecsssseeccecessseecceeesssseeceeessnseeeeeeesseaeeeees 2 8 DB 25 Coe OE eerte E EE deg 2 9 68 Pm CornnectoE 4 ree ett ee PC er EF de ee ed tuna 2 11 Connecting Two Wire Devices eene 2 12 Chapter 3 Configuration View or Change Communication Port Settings sseeeeeeeeeee 3 1 General Port Settngs eere e ert eG p e E OM I Gann as 3 2 COM Port Number re deret ee eei peret 3 3 Transceiver Mode une ed E TO 3 3 EIFO Enabled ne cerit eee ote eee ten oed Her p eng 3 3 FIFO Buffer Size a pendet e EE UT Er EI 3 3 R SOlfCes cero metr eds ee PEE fev dt 3 3 National Instruments Corporation vii PXI Serial for Windows NT Contents Chapter 4 Using Your Serial Hardware General Programming Requirement essere eene 4 1 Advanced Transceiver Control for the RS 485 serene 4 1 FourzWare Mode peo sem rece el deret 4 2 Two Wire Mode DTR with Echo c ccccsscssssesssessssessssessssessesessssessssesssseseess 4 2 Two Wire Mode DTR Controlled
54. tems 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 A 2 ni com Appendix A 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 receiving data can then transmit over the line In full duplex commun
55. tion The mode you select in the configuration utility is automatically configured when you open a port on a serial interface Setting the Transceiver Mode with DeviceloControl The NI Serial software extends the DeviceIoControl Windows function for programming the transceiver control mode To program the transceiver control mode using DeviceloControl complete the following steps 1 Add the following lines to your source code include lt winioctl h gt define IOCTL SERIAL SET TRANSCEIVER MODE CTL CODE FILE DEVICE SERIAL PORT 37 METHOD BUFFERED FILE ANY ACCESS 2 Use the Win32 function DeviceIoControl as follows a Usethe defined control code value listed in step 1 to set the transceiver mode b Usethe input buffer values unsigned long listed in Table 4 2 for programming different transceiver modes National Instruments Corporation 4 3 PXI Serial for Windows NT Chapter 4 Using Your Serial Hardware Table 4 2 DeviceloControl Function Input Values DeviceloControl Transceiver Mode Function Input Value Four wire mode 128 Two wire mode DTR with echo 129 Two wire mode DTR controlled 130 Two wire mode TXRDY auto control 131 For example to set two wire TXRDY auto control mode use the following code ULONG TranceiverMode 131 DeviceloControl hDevice IOCTL SERIAL SET TRANSCEIVER MODE PVOID amp TransceiverMode sizeof ULONG 1pOutBuffer nOutBufferSize lpBytesReturne
56. tional Instruments Corporation C 5 PXI Serial for Windows NT Specifications This appendix describes the characteristics of the serial hardware the NI Serial software along with the recommended operating conditions Two Port Boards Diriensions iii ttes 100 by 160 mm 3 94 by 6 30 in connector eeeeenm DB 9 Power requirement from PXI channel PXI 8420 2 35 VDOC inii didt 100 mA typical 150 mA maximum 412 VDC i eins dedo 20 mA typical 200 mA maximum PXI 8421 2 45 MDC AS sai aan vine ll 350 mA typical 750 mA maximum PXI 8422 2 T5 VDC ui nevanitiunuu 400 mA typical 650 mA maximum PXI 8423 2 eon 800 mA typical 1300 mA maximum Four Port Boards i eee 100 by 160 mm 3 94 by 6 30 in I O connector sss 10 position modular jack Power requirement from PXI channel National Instruments Corporation D 1 PXI Serial for Windows NT Appendix D Specifications PXI 8420 4 5 NV DG 125 mA typical 200 mA maximum 12 VD ape 40 mA typical 400 mA maximum PXI 8421 4 5 NDC uiae dem 350 mA typical 750 mA maximum PXI 8422 4 45 VDC 500 mA typical 750 mA maximum PXI 8423 4 45 VDC visit ses 1000 mA typical 1500 mA maximum Eight Port Boards Dimensions et ert 100 by 160 mm 3 94 by 6 30 in VO connector sse 68 position SCSI type connector Power requirement from PXI channel PXI
57. trol Modes Mode Transmitter Receiver Four wire mode Always enabled Always enabled Two wire mode Enabled with Always enabled DTR with echo DTR unasserted Two wire mode Enabled with Enabled with DTR controlled DTR unasserted DTR asserted Two wire mode Enabled with Enabled with TXRDY auto control TXRDY asserted TXRDY unasserted ER Note Signal names with an overscore such as DTR indicate that the signal is active low Four Wire Mode Use the four wire mode for most full duplex systems In this mode the transmitter and receiver are always enabled This mode is the default Two Wire Mode DTR with Echo Use this mode in half duplex systems where the DTR Data Terminal Ready line must control the transmitter In the DTR with echo mode the transmitter is tri stated when the DTR signal of the UART Universal Asynchronous Receiver Transmitter is asserted To transmit your application must first clear the DTR bit to enable the transmitter After the data is fully transmitted your application once again sets the DTR bit to disable the transmitter Because the receiver is always enabled in this mode you not only receive packets from other devices you also receive the packets sent from your transmitter Two Wire Mode DTR Controlled PXI Serial for Windows NT This mode is similar to the two wire DTR with echo mode Use this mode in half duplex systems where the DTR line must control the transmitter Although this mode uses
58. ut serial I O functions National Instruments Corporation 1 5 PXI Serial for Windows NT Installation and Verification This chapter describes how to install the NI Serial software serial hardware and cables and how to verify the installation Install the Software Before you install your serial hardware complete the following steps to install 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 on the Add Remove Programs icon A dialog box similar to the one shown in Figure 2 1 appears National Instruments Corporation 2 1 PXI Serial for Windows NT Chapter 2 Installation and Verification Add Remove Programs Properties Microsoft Developer Network Library Visual Studio 37 Microsoft Visual Figure 2 1 Add Remove Programs Properties Dialog Box 4 Click on the Install button PXI Serial for Windows 2 2 ni com Chapter 2 Installation and Verification 5 When prompted insert the NI Serial Software for Windows 2000 NT Me 9x and click on the Next button The setup wizard begins with the screen shown in Figure 2 2 NI Serial Software x Welcome to the NI Serial Software Setup program This program will install NI Serial Software on your computer It is strongly recommended that you exit all Windows programs before running this Setup program Click Cancel to quit S

Download Pdf Manuals

image

Related Search

Related Contents

Crystal Ball Developer`s Guide Release 11.1.2.3.500  HELI JIVE ESC Operation Manual  PVXp™15 - Peavey  INSTRUCTION MANUAL  Acura 2010 ZDX User's Manual  GTTS-3000 Installation and User Manual v1.2  raffaello  Fault tolerant digital computer system having two processors which  diagramas - Lincoln Electric  instruction manual Anleitungshandbuch Manuel d`instructions  

Copyright © All rights reserved.
Failed to retrieve file