background image

Chapter 3

Configuration

PCMCIA Serial for Windows 98/95

3-2

©

 National Instruments Corporation

After you have selected the serial port parameters for the current port, click 
on the 

OK

 button to save the changes or click on the 

Cancel

 button to exit 

the dialog box without saving changes. 

Communication Port Settings

On the 

Port Settings

 tab, you can change any of the settings by clicking on 

the arrow button to the right of the setting. When you click on the arrow 
button, a list of valid values for that setting appears. Select the desired 
setting from the list. Figure 3-1 shows the 

Port Settings

 tab.

Figure 3-1.  

Port Settings Tab

The following sections describe the port settings available on the Device 
Manager 

Port Settings

 tab. 

Содержание PCMCIA Serias

Страница 1: ...PCMCIA 485 2...

Страница 2: ...Serial Getting Started with Your PCMCIA Serial Hardware and Software for Windows 98 95 PCMCIA Serial for Windows 98 95 August 1998 Edition Part Number 321827B 01...

Страница 3: ...36 Canada Ontario 905 785 0085 Canada Qu bec 514 694 8521 Denmark 45 76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 6120092 Italy 02 413091 Ja...

Страница 4: ...TS 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 con...

Страница 5: ...ications 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 gleme...

Страница 6: ...ables to test this device and provides them for sale to the user The use of inferior or nonshielded interface cables could void the user s authority to operate the equipment under the FCC rules If nec...

Страница 7: ...onal Programming Tools 1 3 Using the Serial Hardware with Other National Instruments Products 1 4 Chapter 2 Installation and Verification Install the NI Serial Software 2 1 Install the PCMCIA Serial H...

Страница 8: ...e 4 3 Setting the Transceiver Mode with DeviceIoControl 4 4 General Programming Requirements 4 5 Setting the Maximum Baud Rate for a 16 Bit Application 4 5 Other Programming Points 4 5 Appendix A Spec...

Страница 9: ...st for PCMCIA Serial Card Correctly Installed 2 5 Figure 2 5 Device Manager Ports List for PCMCIA Serial Card Incorrectly Installed 2 6 Figure 2 6 DB 9 Connector Pin Locations 2 8 Figure 3 1 Port Sett...

Страница 10: ...Table 4 2 Transceiver Mode Control Bytes 4 3 Table 4 3 DeviceIoControl Function Input Values 4 4 Table A 1 Physical Characteristics of the PCMCIA Serial Cards A 1 Table A 2 Environmental Characteristi...

Страница 11: ...e and cables and to verify the installation Chapter 3 Configuration contains instructions to help you view or change the communication port settings Chapter 4 Using Your Serial Hardware describes how...

Страница 12: ...d text denotes the names of menus menu items dialog boxes dialog box buttons or options icons windows or windows tabs bold italic Bold italic text denotes a note italic Italic text denotes disk names...

Страница 13: ...d Digital Multipoint Systems Microsoft Win32 Software Developer Kit Online Documentation for Win32 Overviews Win32 Reference and Programmer s Guide to Windows 98 95 Microsoft Corporation NS16550AF Uni...

Страница 14: ...I Serial software and describes optional equipment you can order How to Use This Manual Yes No Chapter 2 Chapter 3 Write Application Program Passes Gather What You Need to Get Started Chapter 1 Instal...

Страница 15: ...ional equipment DB 9 RS 485 termination connector RS 232 9 pin to 9 pin null modem cable RS 232 9 pin to 25 pin null modem cable Serial Hardware Overview The serial hardware gives you a variety of sol...

Страница 16: ...The NI Serial software for Windows 98 95 includes a native Windows device driver that can provide full interrupt driven buffered I O for multiple COM ports Using this driver you can obtain a maximum...

Страница 17: ...ing details LabVIEW is a complete programming environment that departs from the sequential nature of traditional programming languages and features a graphical programming environment It includes all...

Страница 18: ...bles and to verify the installation Install the NI Serial Software Install the NI Serial software for Windows 98 95 before you install the hardware 1 Select Start Settings Control Panel 2 Double click...

Страница 19: ...nd change values where appropriate by clicking on the Back button You can exit the setup where appropriate by clicking on the Cancel button 5 If you need to install your hardware or if this is your fi...

Страница 20: ...not need to shut down the system before you insert it Windows 98 95 automatically displays one or more New Hardware Found dialog boxes when it detects and configures a PC Card If no New Hardware Foun...

Страница 21: ...ts COM 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 und...

Страница 22: ...Chapter 2 Installation and Verification National Instruments Corporation 2 5 PCMCIA Serial for Windows 98 95 Figure 2 4 Device Manager Ports List for PCMCIA Serial Card Correctly Installed...

Страница 23: ...ial ports If Windows 98 95 did not assign any resources to the port the Resources page shows only a Set Configuration Manually button Click on the Set Configuration Manually button and try to assign c...

Страница 24: ...port proceed to the next section 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 you...

Страница 25: ...1 give the pin locations and descriptions of the DB 9 connector which is found on the PCMCIA serial cable Figure 2 6 DB 9 Connector Pin Locations Table 2 1 DB 9 Pin Descriptions DB 9 Pin 232 Signal 4...

Страница 26: ...me pair of wires For example to connect an RS 485 data acquisition device to a port on your PCMCIA 485 using half duplex communication you need a single twisted pair of wires At the PCMCIA 485 connect...

Страница 27: ...f the page 3 Double click on the Ports COM LPT icon 4 Double click on the name of the port you want to configure You can now view or change information about your serial port in the following ways Cli...

Страница 28: ...ithout saving changes Communication Port Settings On the Port Settings tab you can change any of the settings by clicking on the arrow button to the right of the setting When you click on the arrow bu...

Страница 29: ...dd or no parity bits in each transmitted byte Stop Bits Stop bits is the number of terminating bits on the end of each transmitted serial byte Flow Control Flow control is a method for temporarily hal...

Страница 30: ...eceiver The receive 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 writt...

Страница 31: ...erent bus topologies Table 4 1 lists the status of the transmitters and receivers under each of the transceiver control modes Note Signal names with an overscore such as DTR indicate that the signal i...

Страница 32: ...s 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 packets that you have transmitted Two W...

Страница 33: ...trol 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 4 2 shows the control bytes f...

Страница 34: ...D FILE_ANY_ACCESS 2 Use the Win32 function DeviceIoControl Use the defined control code value listed in Step 1 to set the transceiver mode and the input buffer values unsigned long listed in Table 4 3...

Страница 35: ...200 0xff20 You can then use this constant as you would any other baud rate value in your Windows communication calls For example you can place it into a DCB structure and pass it to SetCommState For a...

Страница 36: ...s Table A 1 Physical Characteristics of the PCMCIA Serial Cards Characteristic Specification Dimensions 85 6 by 54 0 by 0 5 cm 3 370 by 2 126 by 0 197 in I O Connector Special Cable with DB 9 Dsub Con...

Страница 37: ...t Component Temperature Relative Humidity 0 to 70 C 10 to 90 noncondensing Storage Environment Temperature Relative Humidity 40 to 120 C 5 to 90 noncondensing EMI FCC Class A Verified Table A 3 Softwa...

Страница 38: ...increase the actual performance of the bus past the limitations on speed and distance recommended in the specification RS 422 RS 422 as specified in the EIA RS 422 A Standard Electrical Characteristi...

Страница 39: ...the same line RS 485 defines the electrical characteristics necessary to ensure adequate signal voltages under maximum load short circuit protection and the ability to withstand multiple drivers drivi...

Страница 40: ...ctions 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 trans...

Страница 41: ...nsmitters to the bus master s receiver Because in a differential system each transmission line is composed of two separate wires a full duplex system is often referred to as a four wire system Figure...

Страница 42: ...embedded terminating resistors for easy termination Figure B 3 shows a multidrop network using terminating resistors Figure B 3 Multidrop Network Using Terminating Resistors DTE vs DCE Data Terminal E...

Страница 43: ...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...

Страница 44: ...ardware Information Before physically removing the serial hardware you must remove the hardware information from the Windows 98 95 Device Manager Follow these steps to uninstall the hardware 1 Double...

Страница 45: ...C 1 Figure C 1 Selecting an Interface to Uninstall 6 Click on the Remove button Note To remove ports on two port and four port PCMCIA cards from within the Device Manager you must open the Multi funct...

Страница 46: ...bed in the previous section You do not need to shut down Windows 98 95 before uninstalling the software Complete the following steps to remove the NI Serial software 1 Select Start Settings Control Pa...

Страница 47: ...e Add Remove button The uninstall program runs and removes all folders programs VxDs DLLs and registry entries associated with the NI Serial software Figure C 3 shows the results of a successful unins...

Страница 48: ...ew Resources tab 6 Select the Interrupt Request IRQ button By scanning through the list of interrupt request settings you can determine which devices are using which interrupt request levels 7 When yo...

Страница 49: ...e 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 on the Change Setting but...

Страница 50: ...test failed error message appears verify the hardware resources as described in Chapter 2 Installation and Verification If the test still fails you probably have an interrupt level conflict with lega...

Страница 51: ...st open the Multifunction adapter class select the name of the interface and click on the Remove button 6 Select a National Instruments port name from the list of ports that corresponds to a serial po...

Страница 52: ...e test to fail How can I determine which port is associated with COMx Refer to the section Determine Which Physical Port Is Associated with COMx in Chapter 2 Installation and Verification How can I na...

Страница 53: ...ort is a child device listed under Ports COM LPT Windows 98 95 does not allow the resources of the multi function child devices to be changed directly To change the resources of ports on two port PCMC...

Страница 54: ...tion child devices to be removed directly within the Device Manager You must open the Multi function adapters class as shown in Figure D 2 select your interface and click on the Remove button How can...

Страница 55: ...ms does not answer your questions we offer fax and telephone support through our technical support centers which are staffed by applications engineers Electronic Services Bulletin Board Support Nation...

Страница 56: ...ents office in your country contact the source from which you purchased your software to obtain support Country Telephone Fax Australia 03 9879 5166 03 9879 6277 Austria 0662 45 79 90 0 0662 45 79 90...

Страница 57: ...___ Instruments used _________________________________________________________________ _______________________________________________________________________________ National Instruments hardware pro...

Страница 58: ..._________ COM3 ________________ _________________ COM4 ________________ _________________ COM5 ________________ _________________ COM6 ________________ _________________ COM7 ________________ ________...

Страница 59: ...____________________________________ _______________________________________________________________________________ _______________________________________________________________________________ ___...

Страница 60: ...tional Standards Institute b bits B bytes baud bits per second bps bits per second C Celsius COM computer output microform CTS clear to send DB xx subminiature D connector where xx is the number of pi...

Страница 61: ...t in first out ft feet GND ground HSI handshake input HSO handshake output Hz Hertz IEEE Institute of Electrical and Electronic Engineers in inches I O input output IRQ interrupt request ISA Industry...

Страница 62: ...erial for Windows 98 95 TX transmit TXD transmit data TXRDY transmit ready where the overscore denotes that the signal is active low UART universal asynchronous receiver transmitter V volts VDC volts...

Отзывы: