Mxi-express multisystem extension interface for pci express, compact pci, and pxi bus computers ni pcie-8360 and ni pxi-8360 (36 pages)
Summary of Contents for National Instruments ENET-232 Series
Page 1
Serial ENET-232 Series and ENET-485 Series User Manual for Windows 2000/NT 4.0 and Linux x86/Solaris 2.x ENET-232 and ENET-485 Series User Manual November 2001 Edition Part Number 370323B-01...
Page 3
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.
Page 4
Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC). Changes or modifications not expressly approved by National Instruments could void the user’s authority to operate the equipment under the FCC Rules.
Page 5
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. Compliance to EU Directives Readers in the European Union (EU) must refer to the Manufacturer’s Declaration of Conformity (DoC) for information** pertaining to the CE Mark compliance scheme.
Page 7
Contents Configuring the Network Settings ..............3-4 Static IP Parameters ..................3-6 Choosing a Static IP Address................3-6 For a Network Administered by a Network Administrator ....3-6 For a Network without a Network Administrator ......3-6 Verifying the Hostname .................. 3-7 Chapter 4 Serial Port Configuration Adding a New Serial Interface ..................
About This Manual This manual contains instructions to help you install and configure the National Instruments serial device server and the serial server software for Windows 2000/NT 4.0 (Service Pack 4 or higher) or Linux x86/Solaris 2.x. This manual includes information about the ENET-232 and ENET-485 serial device servers.
About This Manual Italic text in this font denotes text that is a placeholder for a word or value monospace italic that you must supply. serial device server Serial device server refers to all versions of the ENET-232 and ENET-485 hardware.
Linux x86 – Solaris 2.x ❑ TCP/IP protocol installed on your computer ❑ One of the following National Instruments (NI) serial device servers: – ENET-232 Series (two or four port) – ENET-485 Series (two or four port) ❑ Universal power supply and the appropriate cable for your area, supplied by NI ❑...
Chapter 1 Introduction Dynamic Host Configuration Protocol (DHCP) is available on many networks to configure network parameters automatically. DHCP simplifies the installation and configuration process for the serial device server. For more information about DHCP, refer to the section, Using DHCP, in Chapter 6, Using Your Serial Device...
On Linux x86/Solaris 2.x, you can use the NI-VISA Application Programming Interface (API) to control the serial ports on the serial device server. NI-VISA is the National Instruments implementation of the industry-standard Virtual Instrument System Architecture (VISA) specification. Appendix F,...
Page 18
Introduction Linux x86/Solaris 2.x You can develop NI-VISA applications using any ANSI C compiler. For Solaris, National Instruments offers LabWindows/CVI, which is an interactive ANSI C programming environment for building virtual instrument applications. LabWindows/CVI includes a drag-and-drop editor for building user interfaces, a complete ANSI C environment for building...
Chapter 2 Installation Insert the NI-Serial Device Server Software for Linux x86/Solaris 2.x CD. Run the installation script from the subdirectory INSTALL VISA of the appropriate directory. The default installation path is /opt/vxipnp/ Follow any onscreen prompts. Installing the Serial Device Server Complete the following steps to install your serial device server.
Plug the wall-mount power supply into an AC outlet of the correct voltage. National Instruments does not recommend connecting serial devices to your serial Note ports until you configure the serial server software as described in Chapter 4,...
Page 23
If the PWR/RDY LED blinks a slow red/yellow pattern, the serial device server did not pass its self tests. Refer to Appendix B, PWR/RDY LED Signaling, to interpret the flash pattern before calling National Instruments Technical Support. You can skip Chapter 3, Ethernet Configuration, if your serial device server can use DHCP.
Using NI Ethernet Device Configuration, and examine the properties for any National Instruments Ethernet device on your subnet. However, any changes you attempt to make to the network parameters while in normal operating mode will not take effect.
Chapter 3 Ethernet Configuration Using NI Ethernet Device Configuration If your network administrator tells you to assign the IP address manually, complete the following steps to configure the IP address settings. (Windows 2000/NT 4.0 only) Select Start»Programs»National Instruments Serial Server»Ethernet Device Configuration. , which is in the (Linux x86/Solaris 2.x only) visaconf...
Chapter 3 Ethernet Configuration Configuring the Network Settings Your serial device server must be in network configuration mode if you want to change its network settings. Any changes you make while in normal operating mode will not take effect. When you select Properties... from the NI Ethernet Device Configuration window, the utility displays the properties for your serial device server, similar to the following example.
Chapter 3 Ethernet Configuration Click OK to configure the device, or Cancel to exit without saving the configuration changes. Click Exit (or Cancel) to close the NI Ethernet Device Configuration window. The device automatically reboots with the new configuration in effect. Static IP Parameters If DHCP is not available, you must provide the serial device server with several important network parameters.
Page 31
Chapter 3 Ethernet Configuration To correct the problem with the hostname, complete the following steps: Locate the device that has a problem. This is indicated by an (!) on the device icon, as shown previously in Figure 3-1. Select Properties..A dialog box similar to the following appears. Figure 3-5.
Page 34
You must reboot your system at this time for your serial server software configuration to take effect. Select Start»Shut Down» Restart. National Instruments recommends you verify the installation as described in Chapter 5, Verify the Installation. You then can connect serial devices to the serial ports on the serial device server.
Exit VISA Configuration. If you see the question D o you wish to , answer Yes. commit all your changes to VISA? National Instruments recommends you verify the installation as described in Chapter 5, Verify the Installation. Viewing or Changing Communication Port Settings Windows 2000/NT 4.0...
Page 36
Chapter 4 Serial Port Configuration Figure 4-4. NI Ports Serial Configuration Utility Select the port you want to configure and refer to the following instructions: • To remove hardware information about the port from Windows 2000/NT, click Delete. • To view or change the port settings, click Settings. A screen similar to the following appears.
Chapter 4 Serial Port Configuration Linux x86/Solaris 2.x This section describes how to use VISA Configuration to view or change the configuration of your serial ports. , which is in the subdirectory of your visaconf NIvisa installation. A list of installed ports/devices appears. Select the port you want to configure and refer to the following instructions: •...
To verify the hardware and software installation, run the Serial Device Server Diagnostics utility. Verify that no serial cables are attached to the unit and then select Start»Programs»National Instruments Serial Server»Diagnostics. The following screen appears. The status window is empty until you press Start.
Chapter 5 Verify the Installation When you click Start, the diagnostics utility verifies the following: • The serial server software is installed properly. • The configuration of your hardware does not conflict with anything else in your computer. • The serial server software can communicate with your serial device server correctly.
NI-VISA also has a graphical API as part of LabVIEW, a National Instruments graphical programming environment. For Solaris, National Instruments offers LabWindows/CVI, which provides an interactive ANSI C programming environment for building virtual instrument applications. The National Instruments Web site, , includes ni.com more information about these environments.
IP address changes with successive reboots. If you are setting up a small network for your instrumentation system, National Instruments recommends using static IP addresses, because they are easier to implement and maintain. In this system, you can safely use the numerical form of the IP address to communicate with your product because the address is unlikely to change.
Chapter 6 Using Your Serial Device Server Close all connections, then press and hold the CFG RESET switch and wait approximately three seconds until the PWR/RDY LED becomes solid red. If you release the switch prior to three seconds, the serial device server continues to operate normally.
Chapter 6 Using Your Serial Device Server Windows 2000/NT 4.0 Select Start»Programs»National Instruments Serial Server»Firmware Update. Figure 6-1. NI Ethernet Device Firmware Update Utility Enter the IP address or the hostname of the serial device server in the IP address or hostname edit box. An example of an IP address .
Note When you are communicating with a two-wire device, National Instruments recommends that you use the two-wire Auto Control mode. Because this mode handles the transmitter/receiver enabling for a two-wire connection in your hardware, it reduces the software overhead required to perform this operation in your application program.
VI_ASRL_WIRE_485_2_DTR_ECHO VI_ASRL_WIRE_485_2_DTR_CTRL VI_ASRL_WIRE_485_2_AUTO (–1) VI_STATE_UNKNOWN Description This attribute is valid only with the RS-485 serial drivers developed by National Instruments, and sets the transceiver mode. Table 6-3. VI_ATTR_ASRL_WIRE_MODE Attribute States Transceiver Mode Attribute States VI_ATTR_ASRL_WIRE_MODE Four-wire mode VI_ASRL_WIRE_485_4 Two-wire mode: DTR with echo...
Chapter 6 Using Your Serial Device Server Rather than using two 620 Ω resistors at one node, you can increase the value of the resistors and put them at every node. For example, if there are eight nodes in a system, you can use 4.7 kΩ resistors at each node to effectively achieve the same result.
Page 56
Appendix A Uninstalling the Software Figure A-2. Add/Remove Programs Dialog Box for Windows NT ENET-232 and ENET-485 Series User Manual ni.com...
Page 58
Appendix A Uninstalling the Software Linux x86 If you have install, use it to uninstall the package. Otherwise, delete the installation directory, which defaults to /usr/local/vxipnp Solaris 2.x to uninstall the package. pkgrm ENET-232 and ENET-485 Series User Manual ni.com...
Page 59
PWR/RDY LED blinks slowly in a recognizable pattern to alert you of internal errors. Use this appendix to interpret and record the pattern that the PWR/RDY LED flashes, and then contact National Instruments. Note By recording the PWR/RDY LED error messages before calling National Instruments, you can save yourself time, and customer support can answer your questions more accurately and efficiently.
Page 60
Step 3. Record Your Error Message Number When you have computed your error message number, write it down and also note the ON/OFF state of the LINK, TX, and RX LEDs. Have this information available when calling National Instruments. ENET-232 and ENET-485 Series User Manual ni.com...
Page 62
Appendix C Troubleshooting and Common Questions Cannot Change Network Settings • Verify there are no open network connections. All port LEDs should be off. • Confirm the device is in network update mode. If the PWR/RDY LED is not alternating rapidly between red and yellow, press and hold the CFG RESET switch for three seconds to enter network update mode.
Page 64
Verify that the CFG RESET button is not pressed or stuck. If the LED remains red, the device encountered an unrecoverable error. Contact National Instruments. Ethernet LEDS (LINK, TX, and RX) Are Blinking in Unison An internal network configuration error has occurred. Contact National Instruments.
Page 66
Appendix C Troubleshooting and Common Questions Complete the following steps: Windows 2000 Select Start»Settings»Control Panel»Network and Dial-up connections»Local Area Connection. Click Properties. Double-click Internet Protocol (TCP/IP) in the components list. If Internet Protocol is missing from the list, click Install, select Protocol, and then Note click Add.
Page 67
This error message occurs in response to an error with the serial device server. Reboot the serial device server and run the diagnostics program again. If this problem persists, contact National Instruments. Could not locally access the serial port This error message occurs in response to an error with the Windows 2000/NT driver.
Page 68
To display a list of all installed communication ports, select Start»Settings»Control Panel»Ports. To display a list of installed National Instruments serial ports, select Start»Settings»Control Panel» NI Ports. How can I determine which version of the serial server software I have...
Page 69
Select Start»Settings»Control Panel»NI Ports. A list of installed National Instruments ports with their logical COMx names appears. If the COM ports associated with a particular serial device server are missing from this list, refer to the...
Page 70
Appendix C Troubleshooting and Common Questions How can I name National Instruments serial ports COM1, COM2, COM3, or COM4? Complete the following steps: (Windows 2000) Right-click My Computer and select Properties. Under the Hardware tab, select Device Manager. Verify that no local ports are already assigned to the COM number(s) you want to use.
Page 72
Appendix C Troubleshooting and Common Questions What is the maximum baud rate supported and how can I set it? The maximum baud rate supported is 460.8 kbits/s for RS-485 and 230.4 kbits/s 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.
Page 73
I powered off my serial device server before recording the flashing PWD/RDY LED pattern. What should I do? Try to duplicate the error before calling National Instruments for assistance. Recording the PWR/RDY LED pattern is not critical to the operation of your serial device server, but it saves you time and helps National Instruments to diagnose the problem quickly and accurately.
Page 74
Appendix C Troubleshooting and Common Questions I just added a serial device server to the network, but it does not show up in NI Ethernet device configuration. What is the problem? Allow at least 15 seconds for the serial device server to complete its power-on self tests before launching device configuration or clicking Refresh.
Page 76
I powered off my serial device server before recording the flashing PWD/RDY LED pattern. What should I do? Try to duplicate the error before calling National Instruments for assistance. Recording the PWR/RDY LED pattern is not critical to the operation of your serial device server, but it saves you time and helps National Instruments to diagnose the problem quickly and accurately.
Page 78
Appendix D Serial Port Information distances of 50 ft. and with data rates up to 20 kbits/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.
Page 80
Appendix D Serial Port Information Figure D-1 shows a typical full-duplex system. Slave 1 Slave 2 Slave n Figure D-1. Typical Full-Duplex System Half Duplex A typical half-duplex multidrop bus architecture also involves a master-slave protocol. However, in a half-duplex system, all transmitters and receivers are connected to the same transmission line.
Page 81
(typically 100 to 120 Ω). 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 D-3 shows a multidrop network using terminating resistors.
Page 82
Appendix D Serial Port Information DTE vs. DCE In the RS-232 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.
Page 84
Appendix D Serial Port Information DB-25 Connector Figure D-7 and Table D-3 give the pin locations and descriptions of the DB-25 connector, which is on the optional DB-9 to DB-25 converter. PIN 13 PIN 25 PIN 14 PIN 1 Figure D-7. DB-25 Connector Pin Locations Table D-3.
Page 87
Appendix E Specifications Physical Characteristics Overall case size (dimensions) ....21.0 by 12.4 by 3.7 cm (8.25 by 4.89 by 1.44 in.) Case material ..........Hard plastic with metal baseplate Weight ............394 g (0.87 lb) Software Characteristics Space required for NI-Serial server software ..........2 MB Electrostatic Discharge Protection Non-isolated devices.......1.5 kV...
Page 89
Appendix F VISA and Serial APIs on UNIX . VISA attributes are robust and cover many types of viSetAttribute information and configuration functions, including port settings and modem lines. VISA is extensible to other hardware interfaces and is supported on various platforms.
Page 91
Appendix F VISA and Serial APIs on UNIX Summary VISA is the only mechanism available in UNIX systems such as Solaris and Linux to access the ENET-Serial serial ports. Due to the similarity between UNIX system calls for serial access and VISA operations, the transition to the VISA architecture should be relatively painless.
Page 92
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, product-specific troubleshooting wizards, manuals, drivers, software updates, and more. Web support is available through the Technical Support section of ni.com...
Page 93
Appendix G Technical Support Resources Worldwide Support National Instruments has offices located around the world to help address your support needs. You can access our branch office Web sites from the Worldwide Offices section of . Branch office Web sites provide ni.com...
Page 95
Glossary Data Carrier Detect Data Communications Equipment or Data Circuit-Terminating Equipment DHCP Dynamic Host Configuration Protocol Data Set Ready domain name server Data Terminal Equipment Data Terminal Ready—the overscore denotes that the signal is active low duplex the means of bandwidth usage in a serial system Electronic Industries Association EEPROM electrically erasable programmable read-only memory...
Page 100
Index general port settings COM port number, 4-5 installation FIFO settings, 4-5 getting started, 1-2 transceiver mode, 4-5 verification, 5-1 general programming requirements, 6-1 Linux x86/Solaris 2.x, 5-2 getting started, 1-2 Windows 2000/NT 4.0, 5-1 installing bias resistors on ENET-485, 6-12 serial device server, 2-2 half duplex, D-4 serial server software, 2-1...
Page 101
F-1 busy device, 3-2, C-13, C-16 Web support, F-1 if serial device server is not worldwide offices, F-2 listed, C-14, C-16 National Instruments application software network configuration mode, 3-1 LabVIEW, 1-6 possible device states, 3-2 Lookout, 1-6 Properties menu, 3-3...
Page 102
Index NI Ethernet Device Firmware Update utility before using, 6-5 physical characteristics, E-2 example (figure), 6-6 pin descriptions important warning, 6-7 DB-25 running, 6-5 connector pin descriptions when to use, 6-5 (table), D-8 NI Ports utility connector pin locations figure, 4-4 (figure), D-8 adding a new serial interface DB-9...
Page 104
Index serial number specifications location, 2-2 electrical characteristics, E-1 serial ports environmental characteristics, E-1 assigning names, C-10 network specifications, E-2 configuring, 4-1 physical characteristics, E-2 connecting devices, 5-3 serial specifications, E-2 determining associated physical software characteristics, E-2 ports, C-9 static IP address displaying list of installed NI serial when easier than using DNS, 6-3 ports, C-8...
Page 105
2-2 operations (table), F-1 UNIX serial API, F-1 updating the firmware, 6-5 Linux x86/Solaris 2.x, 6-7 Web support from National Instruments, F-1 Windows 2000/NT 4.0, 6-6 Win16 applications using using with serial device server, C-13 CFG RESET switch, 6-3...
Need help?
Do you have a question about the ENET-232 Series and is the answer not in the manual?
Questions and answers