background image

   (LPDWORD) &l_ByteCount,
   NULL
   );

4.  To retrieve the current RS-485 bias resistor mode, you can use

NISERIAL_GET_RS485_BIAS

 and DeviceIoControl with the

following code:

SERIAL_RS485_BIAS l_SerialRs485Bias;
DWORD             l_ByteCount;

DeviceIoControl (
   PortHandle,
   NISERIAL_GET_RS485_BIAS,
   (LPVOID) NULL,
   0,
   (LPVOID) &l_SerialRs485Bias,
   sizeof (l_SerialRs485Bias),
   (LPDWORD) &l_ByteCount,
   NULL
   );

Summary of Contents for PCI-8430

Page 1: ......

Page 2: ...a Windows XP x64 Server 2003 x64 Vista 64 and LabVIEW Real Time For more information about this help file refer to the following topics Using Help Related Documentation Glossary Important Information...

Page 3: ...rt and PCI 485 isolated two and four port PXI 8430 two four eight and 16 port PXI 8431 two four and eight port PXI 8432 two and four port and PXI 8433 two and four port PXI 8420 two four eight and 16...

Page 4: ...uit 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 Electri...

Page 5: ...Using Help Conventions Navigating Help Searching Help Printing Help File Topics...

Page 6: ...you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names dark red Text in this color denotes a caution ExpressCard serial boards Expres...

Page 7: ...PCI serial boards PCI serial boards refers to all versions of the PCI serial boards PCMCIA serial boards PCMCIA serial boards refers to all versions of the PCMCIA serial boards PXI serial boards PXI...

Page 8: ...ons located above the tabs Hide Hides the navigation pane from view Locate Locates the currently displayed topic in the Contents tab allowing you to view related topics Back Displays the previously vi...

Page 9: ...le If you want to search for words in a certain order such as related documentation add quotation marks around the search words as shown in the example Searching for terms on the Search tab allows you...

Page 10: ...topics that contain a certain string For example a search for prog lists topics that contain the words program programmatically progress and so on Use the question mark wildcard as a substitute for a...

Page 11: ...e searches to further refine a search You can use Boolean expressions and wildcards in a nested expression For example example AND program OR VI lists topics that contain example program or example VI...

Page 12: ...turns topics that contain both search terms You do not need to specify this operator unless you are using nested expressions OR Returns topics that contain either the first or second term NOT Returns...

Page 13: ...urned too many topics You must remove the checkmark from this checkbox to search all topics Match similar words Broadens a search to return topics that contain words similar to the search terms For ex...

Page 14: ...ts tab 1 Right click the book 2 Select Print from the shortcut menu to display the Print Topics dialog box 3 Select the Print the selected heading and all subtopics option Note Select Print the select...

Page 15: ...Printing PDF Documents This help file may contain links to PDF documents To print PDF documents click the print button located on the Adobe Acrobat Viewer toolbar...

Page 16: ...ional equipment you can order and briefly describe the NI serial hardware and software How to Use this Help File What You Need to Get Started Optional Equipment Serial Hardware Overview PCI Kits PXI K...

Page 17: ...How to Use this Help File To use this help file refer to the following flow chart and the appropriate topics...

Page 18: ...I 485 two four or eight port PCI 232 isolated two or four port PCI 485 isolated two or four port PXI Kits PXI 8430 two four eight or 16 port PXI 8431 two four or eight port PXI 8432 two or four port P...

Page 19: ...PCMCIA Kits PCMCIA 232 one two or four port PCMCIA 485 one or two port The following CD NI Serial Software which is included in your kit...

Page 20: ...pin to DB 9 adapter cable PCI and PXI eight port and PCI PXI 8430 16 boards only RS 232 9 pin to 9 pin null modem cable RS 232 9 pin to 9 pin straight through cable RS 232 9 pin to 25 pin null modem c...

Page 21: ...Serial Hardware Overview PCI Kits PXI Kits USB Kits ENET Kits ExpressCard Kits PCMCIA Kits...

Page 22: ...to 16 DB 9 connectors The PCI 232 16 uses a breakout box to convert the 100 pin connector on the board to 16 DB 9 connectors Throughout this help file PCI serial boards refers to all versions of the...

Page 23: ...or more information about the serial hardware specifications and operating conditions refer to the NI Serial Hardware Guide The following table lists the PCI serial board numbers and corresponding boa...

Page 24: ...PCI 485I RS 485 two port isolated RS 485 four port isolated...

Page 25: ...the board to 16 DB 9 connectors The PXI 8420 16 uses a breakout box to convert the 100 pin connector on the board to 16 DB 9 connectors Throughout this help file PXI serial boards refers to all versi...

Page 26: ...r more information about the serial hardware specifications and operating conditions refer to the NI Serial Hardware Guide The following table lists the PXI serial board numbers and corresponding boar...

Page 27: ...PXI 8423 RS 485 two port isolated RS 485 four port isolated...

Page 28: ...rmation about transceiver control modes refer to USB 232 Transceiver Modes The RS 485 hardware supports four hardware transceiver control modes for reliable communication with two and four wire device...

Page 29: ...tain FIFO First In First Out buffers to reduce susceptibility to interrupt latency for faster transmission rates Also serial ENET interfaces contain additional onboard buffers to reduce susceptibility...

Page 30: ...If your network does not support DHCP use the NI Ethernet Device Configuration utility as described in Serial ENET Configuration to configure network parameters for the serial ENET interface...

Page 31: ...a serial connection In general DTE and DCE refer to computer equipment and modems respectively For more information about cabling a RS 232 port to other devices refer to RS 232 DTE vs DCE The RS 485 p...

Page 32: ...E and Data Communications Equipment DCE 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 For more informa...

Page 33: ...NET X X2 X X2 X2 ExpressCard X X PCMCIA X X X Windows Vista Windows 2000 XP Server 2003 Windows XP x64 Server 2003 x64 and LabVIEW Real Time allow a maximum of 256 COM ports If you require additional...

Page 34: ...ng user interfaces a complete ANSI C environment for building your test program logic and a collection of automated code generation tools as well as utilities for building automated test systems monit...

Page 35: ...object oriented API that will easily adapt to new instrumentation interfaces as they evolve making application migration to the new interfaces easy VISA is the industry standard for developing instrum...

Page 36: ...rial software on your Windows system follow these steps 1 Log on as Administrator or as a user with administrator privileges 2 Insert the NI Serial Software CD 3 Click Install Software and follow the...

Page 37: ...clicking the next to it 3 Find your remote system in the list and expand it 4 Right click Software and select Add Remove Software 5 In the Add Remove Software window click NI Serial and select Instal...

Page 38: ...Install the Hardware PCI Hardware Installation PXI Hardware Installation USB Hardware Installation ENET Hardware Installation ExpressCard Installation PCMCIA Hardware Installation...

Page 39: ...install your PCI serial board complete the following steps 1 Turn off your computer Keep the computer plugged in so that it remains grounded while you install the PCI serial board 2 Remove the top or...

Page 40: ...he PCI serial board mounting bracket to the back panel mounting rail of the computer 8 Replace the cover 9 Turn on your computer 10 The operating system will automatically detect your hardware The ser...

Page 41: ...serial board Before installing your hardware follow the NI Serial Software Installation instructions To install your PXI serial board complete the following steps 1 Turn off your PXI or CompactPCI ch...

Page 42: ...he 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 8 The operating system will auto...

Page 43: ...Serial Software Installation instructions To install your USB serial hardware complete the following steps 1 If you are installing a USB 485 4 connect the external power supply 2 Connect the USB cabl...

Page 44: ...serial ENET Plug the other end of the power cord into an AC outlet Caution If you do not use the power supply included in your kit ensure that you do not operate your serial ENET interface at any vol...

Page 45: ...col DHCP to perform the configuration automatically Turn on the front panel power switch The PWR RDY LED alternates rapidly between red and yellow while the unit completes its power on self tests and...

Page 46: ...PWR RDY LED is steady red the serial ENET has an unrecoverable error Contact National Instruments Technical Support If the PWR RDY LED blinks a slow red yellow pattern the serial ENET did not pass its...

Page 47: ...l the ExpressCard serial board in your computer insert the card into a free ExpressCard socket The card has no jumpers or switches to set and you do not need to shut down the system before you insert...

Page 48: ...CIA socket The card has no jumpers or switches to set and you do not need to shut down the system before you insert it The following figure shows how to insert a PCMCIA serial card and how to connect...

Page 49: ...ftware Version Monitor Record and Display NI VISA API Calls System Report Generation View or Change Serial Port Settings Port Settings Advanced Settings Save Pending Changes Discard Pending Changes Re...

Page 50: ...NI Serial Troubleshooting Wizard to verify installation and troubleshoot serial problems Windows only Launch NI Spy to monitor NI VISA API calls to serial interfaces Windows only View information abo...

Page 51: ...to serial port settings you must launch MAX with administrative privileges To launch MAX with administrative privileges right click the MAX icon on the desktop or the Start menu and select Run as adm...

Page 52: ...and select Create New 3 In the Create New dialog window select Serial ENET Interface and click Finish 4 Follow the prompts in the Add Serial ENET Hardware Wizard to add your serial ENET interface If...

Page 53: ...zard 1 Launch MAX 2 Select Help Troubleshooting NI Serial Troubleshooting Wizard The Troubleshooting Wizard tests your serial interface and displays the results as shown below NI Serial Troubleshootin...

Page 54: ...rop down menu that appears 4 When prompted click the Yes button to confirm the removal of your interface 5 MAX automatically updates the list of installed serial interfaces You can also select View Re...

Page 55: ...MAX displays the NI Serial software version number in the right pane To view the NI Serial software version installed on a LabVIEW RT controller follow these steps 1 Launch MAX 2 Expand Remote System...

Page 56: ...by clicking the next to the folder 3 Right click on your serial interface and select NI Spy from the drop down menu that appears 4 On the NI Spy toolbar click the blue arrow button to start a capture...

Page 57: ...installed on your system To create a report follow these steps 1 Launch MAX 2 Click File Create Report 3 Follow the dialog prompts to select the report type and the system and components you want to i...

Page 58: ...e folder 3 Select your serial interface to display hardware information in the right pane 4 Right click on the serial port you want to modify and select Goto COM where is the serial COM number assigne...

Page 59: ...nd plug in boards are displayed To change the settings of a port on a plug in serial board select it from the list and expand it to see the ports 7 Select a port to change its settings To see chassis...

Page 60: ...as resistors on the USB 485 click the Advanced tab For more information about these settings refer to Advanced Settings Note Transceiver modes apply to RS 485 and USB 232 two and four port interfaces...

Page 61: ...ange any setting by clicking the arrow button to the right of a field When you click the arrow button a list of valid values for that field appears and you can select the desired setting from the list...

Page 62: ...ngs click the Advanced tab shown in the following figure The available settings may change depending on what serial interface you are configuring Click Show Help in the upper right corner of the MAX w...

Page 63: ...Save Pending Changes To save your changes to this item click Save...

Page 64: ...ges To discard your changes to this item click Revert Revert is available only if you have made at least one change to this item It undoes any changes you have made and restores the item to the most r...

Page 65: ...Restore Defaults To reset the fields to their default values at any time click the Defaults button...

Page 66: ...ethod to back up and restore your port settings or deploy them to other systems To export your port settings to a file select File Export Be sure to pick the correct LabVIEW Real Time system from whic...

Page 67: ...unicator 1 Launch MAX 2 Expand the Devices and Interfaces directory by clicking the next to the folder 3 Select your serial interface and expand it to see its ports by clicking the next to its name 4...

Page 68: ...ues to mark the COM numbers associated with that hardware as in use This allows you to reinsert the hardware and have those ports keep their original COM numbers To free up the COM number assignments...

Page 69: ...ional Help and Resources To access additional help and resources for the NI Serial software and your serial hardware refer to the following topics NI Serial Online Help National Instruments Serial Web...

Page 70: ...elp The NI Serial Help addresses questions you might have about NI Serial and includes troubleshooting information Follow these steps to access the NI Serial online help 1 Launch MAX 2 Select Help Hel...

Page 71: ...National Instruments Serial Web Site Follow these steps to access the National Instruments Web site for serial 1 Launch MAX 2 Select Help National Instruments on the Web NI Serial...

Page 72: ...Serial ENET Configuration Viewing Network Settings Configuring Network Settings Using the CFG RESET Switch Verifying the Hostname Using DHCP Using Static IP Parameters Updating Firmware...

Page 73: ...s as indicated in the IP address hostname column A hostname indicates DHCP has successfully configured the device A numerical IP address indicates the device has successfully been configured with a st...

Page 74: ...e network settings Hostname Verification Error Detected 5 To view or change the settings for a particular serial ENET interface select it in the list and click Properties Refer to Configuring Network...

Page 75: ...formation about using this switch While in network configuration mode the PWR RDY LED alternates rapidly between red and yellow and normal operation is halted Note If you only want to view the network...

Page 76: ...if the numerical IP address changes However some DHCP servers do not implement hostname registration The serial ENET interface requires domain name server DNS registration when using DHCP If your DHC...

Page 77: ...Static IP Parameters for more information Specifying IP Settings Note The IP settings shown above are shown only as a format example 4 You can enter an optional comment to help you identify the device...

Page 78: ...is a recessed switch beside the Ethernet ENET connector on the rear panel Refer to Rear Panel of a Four Port Serial ENET Interface for an illustration of its location This switch performs two function...

Page 79: ...nnections 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 ENET interfa...

Page 80: ...RDY LED becomes solid red If you release the switch prior to three seconds no change occurs to the network configuration and the serial ENET interface continues to boot normally The PWR RDY LED goes t...

Page 81: ...lick OK Change the device s hostname to match the DNS entry Use this option if you want to accept the hostname the DHCP server assigns or if you cannot contact the network administrator to change the...

Page 82: ...our network administrator to change the DNS entry 4 Review the network parameter settings in the Properties window 5 Confirm that the device is in network configuration mode and click OK The device re...

Page 83: ...gistration typically requires active management by a corporate MIS department or equivalent because of several risks for failure One possible failure can occur if the pool of available addresses conta...

Page 84: ...dress 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 impleme...

Page 85: ...mple 130 164 54 20 Refer to Choosing a Static IP Address Subnet mask A code that helps the network device determine whether another device is on the same network or a different network Gateway IP The...

Page 86: ...nes the IP address format You should use the same subnet mask as the computer you are using to configure your serial ENET interface If your subnet mask is 255 255 255 0 the first three numbers in ever...

Page 87: ...this information you can obtain it by Viewing Network Settings Note The NI Ethernet Device Firmware Update utility cannot update the firmware while any network connections are active Close any open co...

Page 88: ...mware in the unit A dialog box reports that the update utility is searching for the Ethernet device 7 The utility prompts you to confirm the change you are about to perform Click OK to continue As the...

Page 89: ...ing the RS 485 Transceiver Control Mode in Windows Setting the RS 485 Transceiver Control Mode in LabVIEW RT Bias Resistors USB 485 Programmatically Controlled Bias Resistors Setting the USB 485 Progr...

Page 90: ...emember that you must use the standard Windows serial communication functions or any API that uses the standard Windows serial communication functions such as NI VISA For more information about NI VIS...

Page 91: ...s standard baud rates In addition the PCI PXI 843x family of hardware supports any baud rate between 2 bit s and the maximum supported baud rate for that interface National Instruments considers the f...

Page 92: ...1The two wire auto control mode for the RS 485 transceiver has a maximum baud rate of 2000 kbit s 2The PCMCIA 232 4 has a maximum baud rate of 115 2 kbit s...

Page 93: ...of overflowing the RX FIFO buffer Secondary interrupt handling is a setting at the system wide level and is enabled by default To enable or disable this feature complete the following steps 1 Copy to...

Page 94: ...iver state RS 232 DTE DCE transceiver control To determine which features your product supports refer to the following table Serial Hardware Features Hardware Adjustable FIFO Settings Get Interface Ty...

Page 95: ...PXI 8423 USB 232 one port X USB 232 two and four port X USB 485 one port X X X USB 485 two and four port X X X X ENET 232 ENET 485 X X ExpressCard 8420 X ExpressCard 8421 X X X PCMCIA 232 X X PCMCIA 4...

Page 96: ...serial boards have configurable FIFO settings Use the Advanced tab in MAX to configure your FIFO settings When you configure FIFO settings consider the following points You can select larger FIFO buf...

Page 97: ...g lines to your source code include winioctl h include NiSerial h Note The header file NiSerial h is included on your NI Serial software CD You also can find it in the NI Serial folder where you insta...

Page 98: ...0 LPVOID l_SerialInterface sizeof l_SerialInterface LPDWORD l_ByteCount NULL...

Page 99: ...ng table lists the status of the transmitters and receivers under each transceiver control mode RS 485 Transceiver Control Modes Mode Transmitter Receiver Four wire mode Always enabled Always enabled...

Page 100: ...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...

Page 101: ...of the UART Universal Asynchronous Receiver Transmitter is unasserted To transmit your application first must enable the transmitter by asserting DTR After the data is fully transmitted your applicat...

Page 102: ...re DTR with echo mode Although this mode uses the same method as the DTR with echo mode to control the transmitter the hardware automatically disables the receiver whenever the transmitter is enabled...

Page 103: ...henever the transmitter is enabled so you do not receive the packets sent from your transmitter Note When you are communicating with a two wire device National Instruments recommends that you use the...

Page 104: ...Setting the RS 485 Transceiver Control Mode in Windows Setting the Default Mode of Operation To set the default mode of operation Use the Advanced tab in Measurement Automation Explorer MAX...

Page 105: ...eIoControl Windows function on PCI PXI USB ExpressCard and PCMCIA RS 485 hardware complete the following steps 1 Add the following lines to your source code include winioctl h include NiSerial h Note...

Page 106: ...Count NULL 4 To retrieve the current RS 485 transceiver control mode you can use NISERIAL_GET_RS485_MODE and DeviceIoControl with the following code TRANSCEIVER_MODE l_TransceiverMode DWORD l_ByteCoun...

Page 107: ...ine IOCTL_SERIAL_SET_TRANSCEIVER_MODE CTL_CODE FILE_DEVICE_SERIAL_PORT 37 METHOD_BUFFERED F 2 To set the RS 485 transceiver control mode use IOCTL_SERIAL_SET_TRANSCEIVER_MODE and DeviceIoControl For e...

Page 108: ...Note Without modification the default mode is set to four wire 1 Using an FTP client download the ni rt system niserial dbs file from the LabVIEW Real Time target 2 Locate the entry in the niserial d...

Page 109: ...he LabVIEW Real Time target replacing the original file Reboot your LabVIEW Real Time target for your changes to take effect For example to configure COM4 to use two wire Auto Control mode the followi...

Page 110: ...ceiver Control Mode Programmatically To modify the transceiver control mode programmatically In LabVIEW Real Time you must use the VISA wire mode attribute to change the RS 485 transceiver control mod...

Page 111: ...stors On the PCI RS 485 two and four port serial cards PXI RS 485 two and four port serial cards and ENET RS 485 two and four port serial cards there are four user configurable bias resistors in front...

Page 112: ...transmission line using bias resistors USB 485 Transmission Line Using Bias Resistors The values of the programmatically controlled bias resistors have been calculated such that there is a voltage of...

Page 113: ...d disabled during USB suspend There are two ways to control these resistors Use the Advanced tab in MAX If the Enable Dynamic Bias Resistors box is checked the resistors are enabled automatically when...

Page 114: ...r NI Serial software CD You also can find it in the NI Serial folder where you installed your National Instruments software typically C Program Files National Instruments NI Serial 2 The SERIAL_RS485_...

Page 115: ...e you can use NISERIAL_GET_RS485_BIAS and DeviceIoControl with the following code SERIAL_RS485_BIAS l_SerialRs485Bias DWORD l_ByteCount DeviceIoControl PortHandle NISERIAL_GET_RS485_BIAS LPVOID NULL 0...

Page 116: ...re uses programmatic control codes and the DeviceIoControl Windows function to retrieve the RS 232 transceiver state and transceiver mode To retrieve the RS 232 transceiver state using the DeviceIoCon...

Page 117: ...2 transceiver state use NISERIAL_GET_RS232_STATE and DeviceIoControl with the following code SERIAL_RS232_STATE l_SerialRs232State DWORD l_ByteCount DeviceIoControl PortHandle NISERIAL_GET_RS232_STATE...

Page 118: ...ced into DTE mode Force DCE The transceiver is forced into DCE mode Auto 232 The transceiver automatically switches between DTE and DCE modes about four times a second until a valid RS 232 signal is d...

Page 119: ...following lines to your source code include winioctl h include NiSerial h Note The header file NiSerial h is included on your NI Serial software CD You also can find it in the NI Serial folder where y...

Page 120: ...4 To retrieve the current RS 232 transceiver mode you can use NISERIAL_GET_RS232_MODE and DeviceIoControl with the following code TRANSCEIVER_MODE l_TransceiverMode DWORD l_ByteCount DeviceIoControl...

Page 121: ...nction complete the following steps 1 Add the following lines to your source code include winioctl h include NiSerial h Note The header file NiSerial h is included on your NI Serial software CD You al...

Page 122: ...OID NULL 0 LPVOID NULL 0 LPDWORD l_ByteCount NULL 5 To retrieve the current state of the RS 232 signal RI when the transceiver is in DCE mode use the following code SERIAL_RI_OUT l_SerialRiOut DWORD l...

Page 123: ...CD LPVOID NULL 0 LPVOID NULL 0 LPDWORD l_ByteCount NULL 8 To clear the RS 232 signal DCD when the transceiver is in DCE mode use the following code DWORD l_ByteCount DeviceIoControl PortHandle NISERIA...

Page 124: ...SERIAL_DCD_OUT l_SerialDcdOut DWORD l_ByteCount DeviceIoControl PortHandle NISERIAL_GET_DCD LPVOID NULL 0 LPVOID l_SerialDcdOut sizeof l_SerialDcdOut LPDWORD l_ByteCount NULL...

Page 125: ...LEDs The ENET serial and USB serial two and four port hardware uses bicolor light emitting diodes LEDs to indicate device and port status USB LED Descriptions ENET LED Descriptions ENET PWR RDY LED Si...

Page 126: ...4 only Red Powered and connected to USB but not fully configured Yellow Device is ready normal operation Blinking Red or Red Yellow Device error Contact NI Port x Solid Red Port is open but no valid s...

Page 127: ...2 PORT LEDs USB Serial Hardware LEDs...

Page 128: ...Slow flashing pattern indicates an error occurred LINK 10 100 Indicates the serial ENET interface detected a twisted pair 10Base T or 100Base TX link The color indicates the connection speed If yellow...

Page 129: ...uration mode At other times the PWR RDY LED blinks slowly in a recognizable pattern to alert you of internal errors Use the following steps to interpret and record the pattern that the PWR RDY LED fla...

Page 130: ...gins with a series of long one second flashes that is one second red one second yellow These long flashes represent the digit in the tens column There can be one to nine long flashes which represent d...

Page 131: ...resent the digits 1 through 9 For example one short flash represents the digit 1 in the ones column and nine short flashes represent the digit 9 in the ones column Using this method the PWR RDY LED fl...

Page 132: ...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 Nationa...

Page 133: ...or Descriptions The following topics describe serial hardware connectors Connecting Cables Connecting Two Wire Devices DB 9 Connector Modular Jack Connector DB 25 Connector 68 Pin Connector 100 Pin Co...

Page 134: ...ith the four port serial boards by ordering the 10 position modular jack to DB 25 converter cable from National Instruments The eight port serial boards include a pig tail cable adapter providing eigh...

Page 135: ...o a port on your board using half duplex communication you need a single twisted pair of wires At the board connect the TXD and RXD signals pins 8 and 4 on a DB 9 connector pins 5 and 20 on a DB 25 co...

Page 136: ...for the eight port board and the DB 9 connectors to the 16 port breakout box DB 9 Connector Pin Locations DB 9 Pin Descriptions DB 9 Pin 232 Signal DTE 485 Signal 1 DCD GND 2 RXD CTS HSI 3 TXD RTS HSO...

Page 137: ...jack 10 Position Modular Jack Pin Locations 10 Position Modular Jack Pin Descriptions 10 Position Modular Jack Pin 232 Signal 485 Signal 10 DCD GND 9 RXD CTS HSI 8 TXD RTS HSO 7 DTR RXD 6 GND RXD 5 DS...

Page 138: ...nnector Pin Locations 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...

Page 139: ...Connecting the Cables to a Four Port PXI Serial Board...

Page 140: ...Pin Connector Port 1 2 3 4 5 6 7 8 485 Signal 485 D Sub 9 Connector 232 Signal 232 D Sub 9 Connector 66 57 49 40 32 23 15 6 RXD 5 DCD 1 68 59 51 42 34 25 17 8 CTS 2 RXD 2 65 56 48 39 31 22 14 5 RTS 3...

Page 141: ...67 58 50 41 33 24 16 7 TXD 9 RI 9...

Page 142: ...6 7 8 9 10 11 12 13 14 15 16 232 Signal 232 D Sub 9 Connector 2 46 6 42 10 38 14 34 DCD 1 3 47 7 43 11 39 15 35 18 32 20 30 22 28 24 26 RXD 2 4 48 8 44 12 40 16 36 19 33 21 31 23 29 25 27 TXD 3 5 49 9...

Page 143: ...55 99 59 95 63 91 67 87 RI 9 These signals are not supported on ports 9 16 of the PCI 232 16 and PXI 8420 16 serial boards...

Page 144: ...s RS 232 DTE versus DCE The following table lists the features of the RS 232 RS 422 and RS 485 standards RS 232 RS 422 and RS 485 Features Feature RS 232 RS 422 RS 485 Type of transmission lines Singl...

Page 145: ...32 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 R...

Page 146: ...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...

Page 147: ...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 defi...

Page 148: ...ics explain some serial communication issues including duplex architectures termination methods bias resistors and types of connecting equipment Duplex Architectures Full Duplex Half Duplex RS 485 Ter...

Page 149: ...ng 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 communication the device...

Page 150: ...ull 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 B...

Page 151: ...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 The fol...

Page 152: ...nd last instruments The terminating resistor should match the characteristic impedance of the transmission line typically 100 to 120 You can order an optional DB 9 RS 485 termination connector that co...

Page 153: ...ble To prevent a line from receiving these data bits the transmission line can be forced into a known state by installing two bias resistors at one node on the transmission line Doing so creates a vol...

Page 154: ...d 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...

Page 155: ...232 ports are DTE serial ports USB 232 two and four port only can be configured to DTE or DCE Refer to USB 232 Transceiver Control for more information...

Page 156: ...rdware and Software The following topics describe how to uninstall your serial hardware and the NI Serial software Delete a Serial Interface Uninstall Software from Your LabVIEW RT Target Uninstall th...

Page 157: ...rop down menu that appears 4 When prompted click the Yes button to confirm the removal of your interface 5 MAX automatically updates the list of installed serial interfaces You can also select View Re...

Page 158: ...Launch MAX 2 Expand Remote Systems by clicking the next to it 3 Find your remote system in the list and expand it 4 Right click Software and select Add Remove Software 5 In the Add Remove Software wi...

Page 159: ...er 2003 or the Uninstall Change button on Windows Vista 4 Select the software components you want to remove and click the Remove button The uninstallation program removes all folders utilites and regi...

Page 160: ...ting and Frequently Asked Questions The following topics describe how to troubleshoot problems and answer some common questions Verify Installation and Troubleshoot NI Serial Problems Frequently Asked...

Page 161: ...zard 1 Launch MAX 2 Select Help Troubleshooting NI Serial Troubleshooting Wizard The Troubleshooting Wizard tests your serial interface and displays the results as shown below NI Serial Troubleshootin...

Page 162: ...OMx How can I change the COM numbers of my National Instruments serial ports Why can t I make changes to my settings in MAX on Windows Vista Why does my hardware keep reappearing after I delete it on...

Page 163: ...interface What is the relationship between bits per second throughput and bus utilization What happens to data sent to a closed serial port Why do loopback tests of large data transfers sometimes have...

Page 164: ...e System icon 2 Select the Hardware tab and click the Device Manager button 3 Double click the Multifunction Adapters icon 4 From the Multifunction adapters list right click the National Instruments i...

Page 165: ...7 Click the Scan for Hardware Changes icon at the top of the Device Manager window 8 Windows should automatically detect your hardware...

Page 166: ...communication ports are displayed without exclamation marks If any USB serial port has an exclamation mark right click the port and select Uninstall 4 Double click the Universal Serial Bus Controllers...

Page 167: ......

Page 168: ...below 3 Double click the Ports COM LPT icon Verify that all ExpressCard serial communication ports are displayed without exclamation marks If any ExpressCard serial port has an exclamation mark right...

Page 169: ......

Page 170: ...your installed serial hardware under Devices and Interfaces as shown in the following figure To view the serial hardware installed on your LabVIEW Real Time controller complete the following steps 1 L...

Page 171: ......

Page 172: ...in the device manager and MAX may not change This happens because Windows cannot distinguish the old hardware from the new To fix this problem delete the interface from the system and either scan for...

Page 173: ...How can I determine which version of the NI Serial software I have installed You can use MAX to view your NI Serial software version...

Page 174: ...How do I troubleshoot problems Use the NI Serial Troubleshooting Wizard This wizard verifies that your serial hardware and the NI Serial software are installed correctly and working properly...

Page 175: ...e whether my hardware and software are installed properly Use the NI Serial Troubleshooting Wizard This wizard verifies that your serial hardware and the NI Serial software are installed correctly and...

Page 176: ...the list and click the Change Remove button on Windows 2000 XP Server 2003 or the Uninstall Change button on Windows Vista 4 Select the software components you want to repair and click the Repair but...

Page 177: ...ps 1 Launch MAX 2 Expand the Devices and Interfaces directory by clicking on the next to the folder MAX lists your installed serial hardware under Devices and Interfaces 3 Click your serial interface...

Page 178: ...How can I change the COM numbers of my National Instruments serial ports Select a new COM number from the COM Port Number control of the Advanced MAX tab and click Save...

Page 179: ...strative privileges 1 If MAX is open close it 2 Find the MAX icon on the desktop or by going to Start Programs National Instruments Measurement Automation 3 Right click on the MAX icon and select Run...

Page 180: ...hen you delete a piece of hardware Windows Vista automatically rescans for new hardware If you delete more than one piece of hardware at the same time the first piece is added back to the system when...

Page 181: ...How many serial ports can I have on my machine You can have up to 256 serial ports...

Page 182: ...many interrupts are required for my serial interface If you have a shared IRQ board or an isolated board you need one interrupt per board Serial ENET and serial USB interfaces do not require interrup...

Page 183: ...nough power to support the USB serial hardware and a system dialog box informs you that there is not enough power for the device reconnect the hardware to an externally powered hub The USB 485 4 is a...

Page 184: ...y existing full speed 12 Mbit s and low speed 1 5 Mbit s modes of operation Because USB 2 0 expands on the features of USB 1 1 while preserving backward device compatibility you can use most full spee...

Page 185: ...oltages on receive lines for both modes even though the device itself is only DTE or DCE Thus these devices may not operate correctly when using Auto232 mode Some applications immediately start commun...

Page 186: ...be reduced when multiple USB 232 and USB 485 devices are installed This can cause slow screen updating mouse and window movements and reduced task switching performance This problem is addressed in W...

Page 187: ...device is first powered Because the firmware images for operation under Windows 2000 and Windows XP are different and the USB bus power may not be cycled during a reboot it is possible to run the inco...

Page 188: ...ce responds to the ping requests repeat this procedure but this time using the hostname ping hostname If your device fails to respond when using the hostname the DNS entry for the device is incorrect...

Page 189: ...nslookup hostname If you still cannot communicate with your device contact National Instruments...

Page 190: ...settings of the device are set properly To do this run the NI Ethernet Device Configuration utility on a computer on the same subnet as the device Confirm that the gateway settings of the host machin...

Page 191: ...s to retrieve network parameters from a DHCP server During this time BUSY appears in the utility display If this status does not change there are several reasons why DHCP may fail to respond One of th...

Page 192: ...utility and the serial device server is not guaranteed Though unlikely it is possible that the communication gets lost in the network Click Refresh more than once before concluding that the device is...

Page 193: ...s dependent on network conditions for timely communications An unpredictable delay is associated with using the remote serial ports Applications may require longer serial timeouts to compensate for th...

Page 194: ...us utilization is the percentage of time that the serial bus is actively transmitting data Because a wide range of factors such as flow control processor latency and device architecture can affect ser...

Page 195: ...Because serial communication ports are active only when the port is open for example by using CreateFile data may be received and made available only when the port is open Assume that any data receiv...

Page 196: ...ata transfer using a single write followed by a single read and thus rely on driver software and serial hardware buffering to hold the data between the two function calls However these buffers are of...

Page 197: ...as SDLC and ModBus Because the serial hardware uses UARTs for communication protocols such as SDLC and ModBus are not supported in hardware However these protocols or their derivatives can be support...

Page 198: ...se the parity function to create a ninth data bit depending on your application To create and control a ninth data bit enable parity and set parity mark or parity space for a ninth bit of either a 1 o...

Page 199: ...NI Serial Hardware Operating System Support Bus Windows Vista 32 Windows Vista 64 Windows 2000 XP Server 2003 Windows XP x64 Server 2003 x64 Linux x86 Solaris 2 x LabVIEW PCI 843x X X X X PCI 232 485...

Page 200: ...and plug in serial hardware in the same computer at the same time As long as your operating system supports all your NI serial hardware you can mix different types of serial interfaces in your comput...

Page 201: ...Glossary Prefixes Symbols A B C D E F G H I K L M P R S T U V...

Page 202: ...Prefixes Symbol Prefix Value p pico 10 12 n nano 10 9 micro 10 6 m milli 10 3 k kilo 10 3 M mega 10 6 G giga 10 9 T tera 10 12...

Page 203: ...Symbols degrees ohms percent...

Page 204: ...A A amperes ANSI American National Standards Institute...

Page 205: ...B b bits B bytes baud bits per second bps bits per second...

Page 206: ...C C Celsius COM Computer Output Microform used in reference to a communication port CTS clear to send...

Page 207: ...ta communications equipment or data circuit terminating equipment DLL dynamic link library DMA direct memory access DSR data set ready DTE data terminal equipment DTR data terminal ready the overscore...

Page 208: ...E EIA Electronic Industries Association EMI electromagnetic interference ENET Ethernet...

Page 209: ...F FCC Federal Communications Commission FIFO First In First Out ft feet...

Page 210: ...G G ground...

Page 211: ...H HSI handshake input HSO handshake output Hz Hertz...

Page 212: ...I I O input output IEEE Institute of Electrical and Electronic Engineers in inches IRQ interrupt request ISA Industry Standard Architecture...

Page 213: ...K Kbaud kilobits per second...

Page 214: ...L LED light emitting diode...

Page 215: ...M m meters MB megabyte...

Page 216: ...P PC personal computer PCI Peripheral Components Interconnect...

Page 217: ...R RAM random access memory RI ring indicator RTS request to send RX receive RXD receive data the overscore denotes that the signal is active low...

Page 218: ...S s seconds SCSI Small Computer Systems Interface...

Page 219: ...T TX transmit TXD transmit data the overscore denotes that the signal is active low TXRDY transmit ready the overscore denotes that the signal is active low...

Page 220: ...U UART Universal Asynchronous Receiver Transmitter...

Page 221: ...V V volts VDC volts direct current VXI VME eXtensions for Instrumentation...

Page 222: ...Important Information Warranty Copyright Trademarks Patents Warning Regarding Use of NI Products Compliance...

Page 223: ...ctory 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 ar...

Page 224: ...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...

Page 225: ...sent of National Instruments Corporation National Instruments respects the intellectual property of others and we ask our users to do the same NI software is protected by copyright and other intellect...

Page 226: ...mulink Stateflow and xPC TargetBox are registered trademarks and TargetBox and Target Language Compiler are trademarks of The MathWorks Inc Tektronix and Tek are registered trademarks of Tektronix Inc...

Page 227: ...Patents For patents covering National Instruments products refer to the appropriate location Help Patents in your software the patents txt file on your CD or ni com patents...

Page 228: ...F ELECTRONIC MONITORING OR CONTROL DEVICES TRANSIENT FAILURES OF ELECTRONIC SYSTEMS HARDWARE AND OR SOFTWARE UNANTICIPATED USES OR MISUSES OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER AD...

Page 229: ...ING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION INCLUDING WITHOUT LIMITATION THE APPROPRIATE DESI...

Page 230: ...oducts Depending on where it is operated this Class A product could be subject to restrictions in the FCC rules In Canada the Department of Communications DOC of Industry Canada regulates wireless int...

Page 231: ...the CE marking Declaration of Conformity may cause interference to radio and television reception Classification requirements are the same for the Federal Communications Commission FCC and the Canadia...

Page 232: ...ncy 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...

Page 233: ...on of Conformity DoC for this product for any additional regulatory compliance information To obtain the DoC for this product visit ni com hardref nsf search by model number or product line and click...

Page 234: ...about other technical support options in your area visit ni com services or contact your local office at ni com contact Training and Certification Visit ni com training for self paced training eLearni...

Page 235: ...you need contact your local office or NI corporate headquarters You also can visit the Worldwide Offices section of ni com niglobal to access the branch office Web sites which provide up to date cont...

Page 236: ...385 0 9 725 72511 France 33 0 1 57 66 24 24 Germany 49 89 7413130 India 91 80 41190000 Israel 972 0 3 6393737 Italy 39 02 413091 Japan 81 3 5472 2970 Korea 82 02 3451 3400 Lebanon 961 0 1 33 28 28 Ma...

Page 237: ...805 8197 Spain 34 91 640 0085 Sweden 46 0 8 587 895 00 Switzerland 41 56 2005151 Taiwan 886 02 2377 2222 Thailand 662 278 6777 Turkey 90 212 279 3031 United Kingdom 44 0 1635 523545 United States Cor...

Reviews: