Page 5 - Contents; About This Manual
© National Instruments Corporation v PC-OPDIO-16 User Manual Contents ____________________________________________________ About This Manual ............................................................................................................. ix Organization of This Manual .....................
Page 8 - Glossary
Contents PC-OPDIO-16 User Manual viii © National Instruments Corporation Appendix ECustomer Communication ............................................................................................... E-1 Glossary ........................................................................................
Page 9 - Organization of This Manual
© National Instruments Corporation ix PC-OPDIO-16 User Manual About This Manual ____________________________________________________ This manual describes the electrical and mechanical aspects of the PC-OPDIO-16 and containsinformation concerning its installation, operation, and programming. The PC-...
Page 10 - Conventions Used in This Manual; The following conventions are used in this manual:; bold; bold italic
About This Manual PC-OPDIO-16 User Manual x © National Instruments Corporation • Appendix D, Status Codes, lists the status codes returned by NI-DAQ, including the nameand description. • Appendix E, Customer Communication, contains forms you can use to request help fromNational Instruments or to com...
Page 11 - National Instruments Documentation; IBM Personal Computer AT Technical Reference manual; Customer Communication
About This Manual © National Instruments Corporation xi PC-OPDIO-16 User Manual National Instruments Documentation The PC-OPDIO-16 User Manual is one piece of the documentation set for your data acquisitionsystem. You could have any of several types of manuals depending on the hardware andsoftware i...
Page 12 - What You Need to Get Started; One of the following software packages and documentation:
© National Instruments Corporation 1-1 PC-OPDIO-16 User Manual Chapter 1Introduction This chapter describes the PC-OPDIO-16; lists what you need to get started; describes theoptional software and optional equipment; and explains how to unpack your PC-OPDIO-16. About Your PC-OPDIO-16 Board Thank you ...
Page 13 - Software Programming Choices; LabVIEW and LabWindows/CVI Application Software
Introduction Chapter 1 PC-OPDIO-16 User Manual 1-2 © National Instruments Corporation Software Programming Choices There are several options to choose from when programming your National Instruments DAQand SCXI hardware. You can use LabVIEW, LabWindows/CVI, or NI-DAQ. LabVIEW and LabWindows/CVI Appl...
Page 14 - Figure 1-1. The Relationship between the Programming Environment,; Register-Level Programming; Optional Equipment
Chapter 1 Introduction © National Instruments Corporation 1-3 PC-OPDIO-16 User Manual minimal modifications to your code. Figure 1-1 illustrates the relationship between NI-DAQ andLabVIEW and LabWindows/CVI. You can see that the data acquisition parts of LabVIEW andLabWindows/CVI are functionally eq...
Page 15 - Cabling; Never attempt to touch the pins of the connectors.
Introduction Chapter 1 PC-OPDIO-16 User Manual 1-4 © National Instruments Corporation Cabling National Instruments offers two cable termination accessory kits, the CB-50 and CB-50 LP, foruse with the PC-OPDIO-16. These kits include a terminated, 50-conductor, flat ribbon cable anda connector block. ...
Page 16 - Hardware Installation; Remove the expansion slot cover on the back panel of the computer.
© National Instruments Corporation 2-1 PC-OPDIO-16 User Manual Chapter 2Installation and Configuration This chapter contains instructions for installing the PC-OPDIO-16, installing the NI-DAQsoftware, configuring your PC-OPDIO-16 board, and cabling. Hardware Installation You can install the PC-OPDIO...
Page 17 - Hardware Configuration; Bus-Related Configuration; Plug and Play Mode; configure two boards for the same base address.; Base I/O Address Selection
Installation and Configuration Chapter 2 PC-OPDIO-16 User Manual 2-2 © National Instruments Corporation Hardware Configuration The PC-OPDIO-16 is completely software configurable. Typically, two types of configurationare performed on a DAQ board—bus related and data acquisition related. To configure...
Page 18 - Data Acquisition-Related Configuration; NI-DAQ Software Installation; NI-DAQ Installation for DOS; NI-DAQ version to ensure that the newest version is installed.
Chapter 2 Installation and Configuration © National Instruments Corporation 2-3 PC-OPDIO-16 User Manual Data Acquisition-Related Configuration The PC-OPDIO-16 supplies eight channels of optically isolated digital input and eight channelsof optically isolated digital output at the I/O connector. NI-D...
Page 19 - SETUPWIN
Installation and Configuration Chapter 2 PC-OPDIO-16 User Manual 2-4 © National Instruments Corporation LabVIEW users are encouraged to use the Easy I/O VIs in LabVIEW. These VIs allow fullaccess to the PC-OPDIO-16 board functionality. For specific information on the VIs and on howto write LabVIEW d...
Page 20 - NI-DAQ Installation for Windows; Software Configuration
Chapter 2 Installation and Configuration © National Instruments Corporation 2-5 PC-OPDIO-16 User Manual NI-DAQ Installation for Windows To install NI-DAQ for Windows, run the SETUPWIN program on Disk 1. One way to do this is to select the File menu from the Program Manager Window, then select Run......
Page 21 - Using DAQCONF; NI-DAQ Configuration File
Installation and Configuration Chapter 2 PC-OPDIO-16 User Manual 2-6 © National Instruments Corporation When the configuration utility finds a new switchless device in your computer, it assigns the firstavailable device number to the new device. The utility also assigns default resources such as I/O...
Page 22 - Device Configuration in DAQCONF
Chapter 2 Installation and Configuration © National Instruments Corporation 2-7 PC-OPDIO-16 User Manual With this option, you can create multiple configuration files for different NI-DAQ applicationsor projects; simply use the appropriate path name when you want to create a new configurationfile or ...
Page 23 - DAQCONF Command-Line Flags; Using WDAQCONF
Installation and Configuration Chapter 2 PC-OPDIO-16 User Manual 2-8 © National Instruments Corporation DAQCONF Command-Line Flags You can use the following command-line flags with DAQCONF : Command-Line Flag Description -t Disable auto tests -i Assume ISA bus computer -e Assume EISA bus computer -a...
Page 24 - Checks under the Options menu item.
Chapter 2 Installation and Configuration © National Instruments Corporation 2-9 PC-OPDIO-16 User Manual 3. Select the Device menu item to select your device type. Device type is the name of your device. After you select the device type, you can see the default settings for your device. 4. Modify the...
Page 25 - liable for any damages resulting from
© National Instruments Corporation 3-1 PC-OPDIO-16 User Manual Chapter 3Signal Connections This chapter describes the pin arrangement, signal names, and signal connections on thePC-OPDIO-16. Warning: Connections that exceed any of the maximum ratings of input or output signalson the PC-OPDIO-16 may ...
Page 27 - Signal Connection Descriptions; cc
Chapter 3 Signal Connections © National Instruments Corporation 3-3 PC-OPDIO-16 User Manual Signal Connection Descriptions Pin Signal Name Description 1, 4, 7, 10,13, 16, 19,22 VCCO<0..7> Isolated V cc for Output, channels 0 through 7—This signal is the Vcc for the output channels. Range: +5 V...
Page 28 - Optically Isolated Digital Output; Output Channels; The maximum power ratings for the PC-OPDIO-16 are as follows:; Maximum output low current (I; Signal Isolation; COM signals. National Instruments is
Signal Connections Chapter 3 PC-OPDIO-16 User Manual 3-4 © National Instruments Corporation Optically Isolated Digital Output I/O connector pins 1 through 24 shown in Figure 3-1 represent the optically isolated outputsignal pins. Output Channels The optically isolated outputs of the PC-OPDIO-16 cons...
Page 29 - Signal Connection Example; a. Load sinking current
Chapter 3 Signal Connections © National Instruments Corporation 3-5 PC-OPDIO-16 User Manual Signal Connection Example Figure 3-2 shows signal connections for the load connected to an isolated output. 5.6 k Ω 5.6 k Ω 5.6 k Ω PC-OPDIO-16 TLP121 Isolation 5.6 k Ω + - Load Digital Logic +5 V VCCO VOUT C...
Page 30 - Increasing Switching Frequency for TTL Loads; and Ro is about 1 k; Optically Isolated Digital Input; Input Channels
Signal Connections Chapter 3 PC-OPDIO-16 User Manual 3-6 © National Instruments Corporation Increasing Switching Frequency for TTL Loads You can increase the switching frequency for the TTL loads by putting a resistor in parallel toVCCO and VOUT. This parallel arrangement will reduce load resistance...
Page 31 - Sensing DC Voltages; respective IGND signals. National Instruments is; liable for any damages; Figure 3-4. Signal Connection Example for Isolated Input
Chapter 3 Signal Connections © National Instruments Corporation 3-7 PC-OPDIO-16 User Manual Sensing DC Voltages When a positive or negative DC voltage with a magnitude of at least 2 V is referenced to theIGND of a channel and is applied to an input of that channel, the PC-OPDIO-16 registers a logich...
Page 32 - Reducing the Forward Current for 24 V Inputs; You can reduce the forward current, I; Figure 3-5. Reducing Input Current for 24 V Signals
Signal Connections Chapter 3 PC-OPDIO-16 User Manual 3-8 © National Instruments Corporation Reducing the Forward Current for 24 V Inputs You can reduce the forward current, I f , for 24 V input signals by adding a series resistance with the 3.3 k Ω current-limiting resistor, as shown in Figure 3-5. ...
Page 33 - Building DOS Applications with NI-DAQ; Creating a DOS Application Using Microsoft C; LIB
© National Instruments Corporation 4-1 PC-OPDIO-16 User Manual Chapter 4Fundamentals of Building Applicationswith NI-DAQ _____________________________________________________________________________ This chapter contains general information about building NI-DAQ applications that run in DOSand Windo...
Page 34 - Example Programs; Creating a DOS Application Using Visual Basic; called
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-2 © National Instruments Corporation 2. Compile your source code with the Microsoft C Compiler (Version 8.0 or later) and use the large memory model, which you select when you include the /AL flag in the command...
Page 35 - should be entered as
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-3 PC-OPDIO-16 User Manual 2. NI-DAQ library needs to allocate some memory for internal use. Therefore, you need to set aside memory using the SETMEM statement. The amount of memory you need will depe...
Page 36 - Running Your Application Inside the Visual Basic Environment; QLBUTIL
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-4 © National Instruments Corporation Running Your Application Inside the Visual Basic Environment First, you must create an NI-DAQ Quick library. MAKEQLB.BAT in the QLBUTIL subdirectory is useful for creating Qu...
Page 37 - Note: You must call the
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-5 PC-OPDIO-16 User Manual your LIB environment variable so the linker can find the libraries. The following statement is an example of how to set the LIB environment variable in your autoexec.bat fil...
Page 38 - Creating a DOS Application Using Borland Turbo Pascal
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-6 © National Instruments Corporation If you are using Borland C++ version 4.0, you need to edit the definition of halloc in the include file MALLOC.H in the include directory. To do so, go to line 65 in MALLOC.H...
Page 39 - Memory Requirement; USES NIDAQ; Building Windows Applications with NI-DAQ
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-7 PC-OPDIO-16 User Manual Memory Requirement If the Turbo Pascal interactive environment runs out of memory while compiling NI-DAQapplications, try some or all of the following: • Set the Turbo Pasca...
Page 40 - NI-DAQ Programming Considerations
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-8 © National Instruments Corporation The NI-DAQ Libraries The NI-DAQ for Windows function libraries are DLLs, which means that NI-DAQ routines arenot linked into the executable files of applications. Only the in...
Page 41 - String Passing; Creating a Windows Application Using Borland C++; Windows App
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-9 PC-OPDIO-16 User Manual Huge (Greater Than 64 KB) Buffer Access Buffers of allocated memory that exceed 64 KB are divided into 64 KB groups, or segments.When you are accessing data within the buffe...
Page 42 - Note: If you allocate memory from
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-10 © National Instruments Corporation Example Programs You can find some example programs and project files created in version 3.1 NIDAQWIN\BCCP_EX in the directory. Newer versions can use 3.1 project files. Spe...
Page 43 - Creating a Windows Application Using Microsoft Visual C++; Special Considerations; Creating a Windows Application Using Turbo Pascal
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-11 PC-OPDIO-16 User Manual Creating a Windows Application Using Microsoft Visual C++ This section assumes that you will be using the Microsoft Visual Workbench to manage yourcode development. For Win...
Page 44 - double
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-12 © National Instruments Corporation 3. Turn on the {$N+} compiler option to enable the extended floating-point types. You can use this option whether or not you actually have a math coprocessor; if you do not ...
Page 45 - Note: Functions such as
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-13 PC-OPDIO-16 User Manual Huge Buffer Access Unlike C and C++, Turbo Pascal does not support huge pointers. Consequently, you mustperform your own pointer arithmetic when accessing memory buffers gr...
Page 46 - Creating a Windows Application Using Microsoft Visual Basic; NI-DAQ functions as typical function calls.; directory. Go to the File; if you are using NI-DAQ memory management functions. Do; add; Buffer Allocation
The Fundamentals of Building Applications with NI-DAQChapter 4 PC-OPDIO-16 User Manual 4-14 © National Instruments Corporation Creating a Windows Application Using Microsoft Visual Basic To use the NI-DAQ functions, you must use the NI-DAQ DLL. Follow this procedure: 1. Create your forms and code as...
Page 47 - String
Chapter 4 The Fundamentals of Building Applications with NI-DAQ © National Instruments Corporation 4-15 PC-OPDIO-16 User Manual Put fh%, , strBuffer$ : close fh% : Huge Buffer Access Visual Basic does not support buffer allocation greater than 64 KB or huge buffer access. Toallocate and use buffers ...
Page 48 - Functional Overview; I/O channel interface circuitry
© National Instruments Corporation 5-1 PC-OPDIO-16 User Manual Chapter 5Theory of Operation This chapter describes the theory of operation for optically isolated digital I/O on thePC-OPDIO-16. This chapter also discusses using NI-DAQ functions with the PC-OPDIO-16board. Functional Overview The block...
Page 49 - Theory of Operation; I/O Channel Interface Circuitry; Digital I/O Circuitry
Theory of Operation Chapter 5 PC-OPDIO-16 User Manual 5-2 © National Instruments Corporation You can execute data acquisition functions by using the digital I/O circuitry. The internal dataand control buses interconnect the components. Optical isolation is attained by the opticalisolation circuitry....
Page 50 - Optical Isolation Circuitry; Figure 5-3. Optical Isolation Circuitry for Input; Figure 5-4. Optical Isolation Circuitry for Output
Chapter 5 Theory of Operation © National Instruments Corporation 5-3 PC-OPDIO-16 User Manual designed around an 82C55A programmable peripheral interface (PPI). Two of the 82C55A portsare used in the PC-OPDIO-16; port A is used for output, and port B is used for input. Optical Isolation Circuitry The...
Page 51 - Using NI-DAQ Functions for Isolated Digital I/O; for one port will effect the output of
Theory of Operation Chapter 5 PC-OPDIO-16 User Manual 5-4 © National Instruments Corporation Using NI-DAQ Functions for Isolated Digital I/O The C code block below illustrates the use of the NI-DAQ digital input and output callssupported by the PC-OPDIO-16 board. The series of calls outputs the bina...
Page 52 - Using LabVIEW Data Acquisition Library for Digital I/O; Advanced VIs
Chapter 5 Theory of Operation © National Instruments Corporation 5-5 PC-OPDIO-16 User Manual Using LabVIEW Data Acquisition Library for Digital I/O LabVIEW users are encouraged to use the Easy I/O VIs in LabVIEW. They allow full access tothe PC-OPDIO-16 board functionality. For specific information ...
Page 53 - Using NI-DAQ Functions; Status Codes; Status; Variable Data Types
© National Instruments Corporation 6-1 PC-OPDIO-16 User Manual Chapter 6NI-DAQ Function Reference This chapter contains important information about how to apply the NI-DAQ functiondescriptions in this manual to your programming language and environment. This chapter alsoincludes a detailed descripti...
Page 54 - Primary Types; Table 6-2 shows the primary type names and their ranges.; Programming Language Considerations
NI-DAQ Function Reference Chapter 6 PC-OPDIO-16 User Manual 6-2 © National Instruments Corporation Primary Types Table 6-2 shows the primary type names and their ranges. Table 6-2. Primary Type Names Type Description Range Type Name C BASIC Pascal I16 16-bit signedinteger -32,768 to 32,767 short Int...
Page 55 - Visual Basic for DOS; var; Visual BASIC for Windows; NI-DAQ Constants Include File
Chapter 6 NI-DAQ Function Reference © National Instruments Corporation 6-3 PC-OPDIO-16 User Manual Visual Basic for DOS All of the function names listed in this manual have underscores (_) in the names to delineatewords. In Visual Basic the underscore is illegal in a symbol name, so you must replace...
Page 56 - LabWindows/CVI Function Panel
NI-DAQ Function Reference Chapter 6 PC-OPDIO-16 User Manual 6-4 © National Instruments Corporation To do so, go to the Project window and choose the Global module, then choose Load Textfrom the Code menu. Select NIDAQCNS.INC , which is in the NIDAQWIN\VB_EX directory. Choose Replace or Merge, depend...
Page 57 - Device Numbers; Function Descriptions
Chapter 6 NI-DAQ Function Reference © National Instruments Corporation 6-5 PC-OPDIO-16 User Manual Device Numbers The first parameter to almost every NI-DAQ function is the device number of the DAQ deviceyou want NI-DAQ to use for the given operation. After you have followed the instructions inChapt...
Page 62 - Returns the version number of the NI-DAQ library.; returns a 4-byte value in the version parameter. The upper two bytes; AND
NI-DAQ Function Reference Chapter 6 PC-OPDIO-16 User Manual 6-10 © National Instruments Corporation Get_NI_DAQ_Version Format status = Get_NI_DAQ_Version (version) Purpose Returns the version number of the NI-DAQ library. Parameter Direction Name Type Description Output version U32 version number as...
Page 64 - I/O Connector Electrical Specifications; Digital Input; Input Characteristics; Digital Output; Output Characteristics
© National Instruments Corporation A-1 PC-OPDIO-16 User Manual Appendix ASpecifications This appendix lists the specifications of the PC-OPDIO-16. These specifications are typical at 25 ° C and 50% relative humidity unless otherwise stated. The operating temperature range is 0 ° to 50 ° C. I/O Conne...
Page 65 - Toshiba TLP-121 Phototransistors; Physical
Specifications Appendix A PC-OPDIO-16 User Manual A-2 © National Instruments Corporation Digital logic levels ....................................................... Level Min Max Ouput low voltage(I OL = 4.0 mA) — ± 1 VDC Ouput high voltage(I OH = 250 µ A) 22 VDC atVCCO = 24 V 3 VDC atVCCO = 5 V — ...
Page 66 - Not available in PDF version of this document.
© National Instruments Corporation B-1 PC-OPDIO-16 User Manual Appendix BCP Clare LDA210 Data Sheet * This appendix contains a manufacturer data sheet for the LDA210 solid state current sensor (CPClare Corporation). This sensor is used on the PC-OPDIO-16 isolated input port. * Copyright © CP Clare C...
Page 67 - Note: For additional information on the; Register Map; Register Name
© National Instruments Corporation C-1 PC-OPDIO-16 User Manual Appendix CRegister-Level Programming This appendix describes in detail the address and function of each PC-OPDIO-16 register. Note: If you plan to use a programming software package such as NI-DAQ or LabWindows/CVI with your PC-OPDIO-16,...
Page 68 - Register Description; Register Description Format; Port A Register
Register-Level Programming Appendix C PC-OPDIO-16 User Manual C-2 © National Instruments Corporation Register Description Register Description Format The remainder of this chapter discusses each of the PC-OPDIO-16 registers in the order shownin Table C-1. Each register group is introduced, followed ...
Page 70 - Programming; Value Written
Register-Level Programming Appendix C PC-OPDIO-16 User Manual C-4 © National Instruments Corporation Programming The pseudocode for controlling the output port of the PC-OPDIO-16 is: 1. Write to 82 hex to the Digital Control Register to configure port A as the output port and port B as the input por...
Page 71 - Value Read; because each time you configure one port it resets the other ports.
Appendix C Register-Level Programmingt © National Instruments Corporation C-5 PC-OPDIO-16 User Manual Example: Reading binary XXXXXXX1 at port B will imply a high on the VIN0, if proper signalconnections are done. Table C-2. Input Sense Data Value Read Channel Sensed XXXXXXX1 High on VIN0 XXXXXX1X H...
Page 81 - Branch Offices
© National Instruments Corporation E-1 PC-OPDIO-16 User Manual Appendix ECustomer Communication For your convenience, this appendix contains forms to help you gather the information necessaryto help us solve technical problems you might have as well as a form you can use to comment onthe product doc...
Page 82 - Technical Support Form
Technical Support Form Photocopy this form and update it each time you make changes to your software or hardware, and use the completedcopy of this form as a reference for your current configuration. Completing this form accurately before contactingNational Instruments for technical support helps ou...
Page 84 - Documentation Comment Form
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. Thisinformation helps us provide quality products to meet your needs. Title: PC-OPDIO-16 User Manual Edition Date: May 1995 Part Number: 320937A-01 Please comment on the complet...
Page 85 - Prefix
© National Instruments Corporation Glossary-1 PC-OPDIO-16 User Manual Glossary ____________________________________________________ Prefix Meaning 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 12 ° degrees Ω ohms / per % percent ± plus ...
Page 87 - Index
© National Instruments Corporation Index- 1 PC-OPDIO-16 User Manual Index Numbers/Symbols +5 V signal, 3-324 V inputs, reducing forward current for, 3-8 A AC voltages, sensing, 3-7advanced VIs, 5-5 B base I/O address selection, 2-2, C-1bit descriptions Digital Control Register, C-3Port A Register, C...
Page 90 - See theory of operation.
Index PC-OPDIO-16 User Manual Index- 4 © National Instruments Corporation Visual Basic for Windows, 6-3 to 6- 4 status codes, 6-1using for isolated digital I/O, 5-4variable data types, 6-1 primary types (table), 6-2 NI-DAQ libraries, 4-8NI-PNP.EXE utility, 2-5 O operating environment specifications,...
Page 92 - variable data types for NI-DAQ
Index PC-OPDIO-16 User Manual Index- 6 © National Instruments Corporation U unpacking the PC-OPDIO-16, 1-4 to 1-5 V variable data types for NI-DAQ functions, 6-1 primary types (table), 6-2 VCCO<0..7> signal description (table), 3-3exceeding voltage limits (warning), 3-4isolation from output ch...