Home
DT9836 Series User`s Manual - Cole
Contents
1. Synchronous Simultaneous A Ds Analog Isolated Ind 16 Bit Power ADC USB 2 0 Interface y e e e 5V 15V e e e e e e Analog 500 V Isolation In 11 na 16 Bit Barrier ADC Input FIFO Synchronous Digital In NADEL 15 0 16 Bit Digital p ial rd Analog gt 16 Bit Oe D A Analog Clock 1 0 Output 16 Bit Out 1 B o 32 Bit FIFO D A d Gate 1 0 Counter FP Timers poof bw Out 1 0 Digital lt Out Digital Encoder 0 s Q Encoder 1 dona die Encoder 2 rsd InputClock Ext A D Trig psu p Ext A D Clk p ur ogic Ext D A Trig OutputClock Boos Ext D A Clk gt 72 Figure 18 Block Diagram of the DT9836 Series Modules Principles of Operation Analog Input Features This section describes the following features of analog input A D operations on the DT9836 Series module Input resolution described below Analog input channels described below 6 Input ranges described on page 76 Input sample clock sources described on page 77 Analog input conversion modes described on page 78 Input triggers described on page 80 e Data format and transfer described on page 81 Error conditions described on page 82 Input Resolution Input resolution is fixed at 16 bits you cannot sp
2. 6 65 Testing Single Value Digital Output 06 66 Testing Frequency Measurement 00 eee 67 Testing Pulse Oubpul esee rp eh eemper e eterna 68 59 Chapter 5 Prepare to Use a Module see Chapter 2 starting on page 25 Set Up and Install the Module see Chapter 3 starting on page 31 Wire Signals to the BNC Connection Box see Chapter 4 starting on page 39 Verify the Operation of the Module this chapter You can verify the operation of a DT9836 Series module using the Quick Data Acq application Quick Data Acq lets you do the following Acquire data from a single analog input channel or digital input port Acquire data continuously from one or more analog input channels using an oscilloscope strip chart or Fast Fourier Transform FFT view Measure the frequency of events Output data from a single analog output channel or digital output port Output pulses either continuously or as a one shot Savethe input data to disk 60 Verifying the Operation of a Module Installing the Quick Data Acq Application The Quick Data Acq application is installed automatically when you install the driver software See Installing the Software on page 29 Running the Quick Data Acq Application To run the Quick Data Acq application do the following 1 Ifyou have not already done so power up your computer and any attache
3. 005 64 Testing Single Value Digital Input 65 Testing Single Value Digital Output 66 Testing Frequency Measurement 00 cece eee ee 67 Testing Pulse Output 0 0 6 e eee 68 Contents Part 2 Using Your Module 69 Chapter 6 Principles of Operation 71 Analog Input Features 0 06 06 c cece 73 Input Resolution perie terdee eta iie en gaeta aie kpas 73 Analog Input Channels 0 00 cece eee 73 Specifying a Single Analog Input Channel 74 Specifying One or More Analog Input Channels 74 Specifying the Digital Input Port in the Analog Input Channel Gain List lsllseleseeeseeess 75 Specifying Counter Timers in the Analog Input Channel Gain List 000 cece eee ee 75 Input Ranges seeeeeeeeeee teens 76 Input Sample Clock Sources n n nanana nananana if Analog Input Conversion Modes 05 78 Continuous Scan Mode sususss 79 Input LrIgeers ics od oce o ee eame date Te dd etse 80 Data Format and Transfer 0 0 000 e eee eee 81 Error Conditions ics erkene it ke eed kee E Rep er mes 82 Analog Output Features 0 0 eee 83 Output Resolution ssssssss ee 83 Analog Output Channels ssssssssss 83 Specifying a Single Analog Output Channel 84 Specifying Multiple Analog Output Channe
4. 06 36 Configuring the DT9836 Series Device Driver 38 Chapter 4 Wiring Signals to the BNC Connection Box 39 Contents Preparing to Wire Signals 0 000 cee eee eee 41 Wiring Recommendations sess 41 Wiring to the BNC Box 0 00 cece eee eee 42 Wiring Signals to the BNC Connectors 44 Wiring Signals to the D Sub Connectors 45 Digital In Out Connector sssssss 45 CT Enc In Analog Out Clk Trig Connector 46 Connecting Analog Input Signals 0005 48 Connecting Single Ended Voltage Inputs 48 Connecting Analog Output Signals 045 49 Connecting Digital I O Signals 0000004 50 Connecting Counter TimerSignals 604 51 Event Counting epe cence ekee e ee e eee 51 Up Down Counting 5 53 Frequency Measurement 0 0 eee eese 54 Period Pulse Width Measurement 65 55 Edge to Edge Measurement 0 00000 00008 56 Pulse O tp t sc m ek Re IR ek Rer eaa sieges by Chapter 5 Verifying the Operation of a Module 59 Installing the Quick Data Acq Application 61 Running the Quick Data Acq Application 61 Testing Single Value Analog Input 62 Testing Single Value Analog Output 005 63 Testing Continuous Analog Input
5. L 201 About this Manual The first part of this manual describes how to install and set up your DT9836 Series module and device driver and verify that your module is working properly It incorporates the content of the former Getting Started manual The second part of this manual describes the features of the DT9836 Series modules the capabilities of the DT9836 Series Device Driver and how to program the DT9836 Series modules using DT Open Layers software Troubleshooting information is also provided Note The DT9836 Series module is available either installed in a metal BNC connection box or as a board level OEM version that you can install in your own custom application If the information in this manual applies to all versions of the DT9836 Series module the manual uses the product name DT9836 Series module Otherwise the specific product name is mentioned Intended Audience This document is intended for engineers scientists technicians or others responsible for using and or programming the DT9836 Series modules for data acquisition operations in the Microsoft Windows 2000 or Windows XP operating system It is assumed that you have some familiarity with data acquisition principles and that you understand your application 11 About this Manual 12 How this Manual is Organized This manual is organized as follows Chapter 1 Overview describes the major features of the DT9836
6. 7 o DACO DACClock E 3 9 DA I ADClok Q S le O 2 To l DACTrig i Note that the BNC box automatically E connects the Analog Ground signal Q Q o appropriately ADTrig o Figure 8 Connecting Analog Outputs to the BNC Connector Box 49 Chapter 4 Connecting Digital I O Signals Figure 9 shows how to connect digital input signals lines 0 and 1 in this case to the Digital In Out pins TTL mal I D sub pins Figure 9 Connecting Digital Inputs to the D sub Pins Figure 10 shows how to connect a digital output line 0 in this case to the Digital In Out pins i q 37 5V Digital Ground go Um i ep Digital Out 0 D 20 D sub pins Figure 10 Connecting Digital Outputs to the D sub Pins 50 Wiring Signals to the BNC Connection Box Connecting Counter Timer Signals The BNC connection box provides two counter timer channels that you can use to perform the following operations Event counting Up down counting Frequency measurement Pulse width period measurement Edge to edge measurement Pulse output continuous one shot and repetitive one shot This section describes how to connect counter timer signals Refer to Chapter 6 for more information about using the counter timers Event Counting Figure 11 shows how to connect counter timer signals to the CT Enc In Analog Output CIk Trig D sub pins
7. Figure 5 BNC Connection Box You can wire signals to the BNC connection box as follows Refer to Appendix A for information about the required D sub mating connectors if you choose to use the D sub connectors e Analog input signals You can wire analog input signals using the BNC connectors labelled AD Ch0 to AD Ch11 Analog output signals You can wire analog output signals if your DT9836 model supports them in one of the following ways Using the BNC connectors labelled DAC Ch0 to DAC Chl Using the appropriate pins on the CT Enc In Analog Output Clk Trig connector You can access the pins by building your 42 Wiring Signals to the BNC Connection Box own cable panel Refer to page 47 for connector pin assignments Digital I O signals To wire digital I O signals you must use the appropriate pins on the Digital I O connector You can access the pins by building your own cable panel Refer to page 46 for connector pin assignments Counter timer signals To wire counter timer signals you must use the appropriate pins on the CT Enc In Analog Output Clk Trig connector You can access the pins by building your own cable panel Refer to page 47 for connector pin assignments External A D clock or trigger signal You can wire external clock trigger signals in one of the following ways Using the BNC connectors labelled AD Clock for A D clock signals and AD Trig for A D trigger signals Us
8. For the D A subsystem channels 0 DACO 1 DAC1 and 2 digital output port are available For the A D subsystem only use to set up the gain list by specifying the gain for each channel in the channel list v olDaSetGainListEntry Gains of 1 and 2 are supported For D A DIN DOUT and C T channels use a gain of 1 the default 149 Chapter 8 150 Set Clocks and Triggers No Using an internal clock v olDaSetClockSource v olDaSetClockFrequency olDaSetClockSource 4 Y olDaSetTrigger sing analog input trigger Specify OL CLK INTERNAL the default to select the internal clock Use to specify the frequency of the internal clock For the A D and D A subsystems values range from 0 0084 Hz to 500 kHz The driver sets the actual frequency as closely as possible to the number specified Specify OL CLK EXTERNAL to select the external clock Use to specify the initial trigger source OL TRG SOFT the default for the software trigger OL TRG EXTERN for the rising edge external digital TTL trigger OL TRG EXTRA for the falling edge external digital TTL trigger or OL TRG THRESHPOS for a positive threshold trigger from an analog input channel for analog input operations only olDaPutSingleValue Specify the threshold value using D A subsystem 1 Programming Flowcharts Set Up A D Buff
9. Note that you can skip a channel in the list however if you do not want to update it For example if you want to update only DAC and the digital output port specify channels 1 and 2 in the output channel list If you want to update all the DACs and the digital output ports specify channels 0 1 and 2 in the output channel list The channels are output in order from the first entry in the list to the last entry in the list 84 Principles of Operation Note The digital output port is treated like any other channel in the output channel list therefore all the clocking triggering and conversion modes supported for analog output channels are supported for the digital output port if you specify the digital output port in the output channel list Output Ranges and Gains Each DAC on the DT9836 Series module can output bipolar analog output signals in the range of 10 V Output Triggers A trigger is an event that occurs based on a specified set of conditions The DT9836 Series modules support the following output trigger sources e Software trigger A software trigger event occurs when you start the analog output operation Using software specify the trigger source as a software trigger External digital TTL trigger An external digital TTL trigger event occurs when the DT9836 Series module detects a transition high to low or low to high on the DAC Trig BNC connector on the module Using software
10. Table 4 lists the pin assignments for connector J3 on the OEM version of the DT9836 Series module Table 4 Pin Assignments for Connector J3 on the OEM Version of Module J3 Pin J3 Pin Assignment Signal Description Assignment Signal Description 1 Quad 2 C T 4 Index 35 Quad Dec 2 C T 4 B 2 Quad Dec 2 C T 4 A 36 Digital Ground 3 Quad 1 C T 3 Index 37 Quad Dec 1 C T 3 B 4 Quad Dec 1 C T 3 A 38 Digital Ground 5 Quad 0 C T 2 Index 39 Quad Dec 0 C T 2 B 6 Quad Dec 0 C T 2 A 40 Digital Ground 7 Counter 1 Out 41 Counter 1 Gate 8 Counter 1 Clock 42 Digital Ground 9 Counter 0 Out 43 Counter 0 Gate 10 Counter 0 Clock 44 Digital Ground 11 Digital Ground 45 Reserved 12 Digital Input 15 46 Digital Output 15 13 Digital Input 14 47 Digital Output 14 14 Digital Input 13 48 Digital Output 13 15 Digital Input 12 49 Digital Output 12 16 Digital Input 11 50 Digital Output 11 17 Digital Input 10 51 Digital Output 10 18 Digital Input 9 52 Digital Output 9 179 Appendix A 180 Table 4 Pin Assignments for Connector J3 on the OEM Version of Module cont J3 Pin J3 Pin Assignment Signal Description Assignment Signal Description 19 Digital Input 8 53 Digital Output 8 20 Digital Input 7 54 Digital Output 7 21 Digital Input 6 55 Digital Output 6 22 Digital Input 5 56 Digital Output 5 23 Digita
11. Figure 3 Attaching the Module to the Host Computer 4 Click Next and or Finish as required in the wizard Once the firmware is loaded the wizard restarts to initiate the firmware to accept commands Click Next and or Finish again If the power supply and module are attached correctly the LED turns green 5 Repeatthe steps to attach another DT9836 Series module to the host computer if desired 35 Chapter 3 36 Connecting to an Expansion Hub Expansion hubs are powered by their own external power supply Theoretically you can connect up to five expansion hubs to a USB port on the host computer However the practical number of DT9836 Series modules that you can connect to a single USB port depends on the throughput you want to achieve Each of the hubs supports up to four modules To connect multiple DT9836 Series modules to an expansion hub do the following 1 2 Make sure that you have attached a power supply to the module Attach one end of the USB cable to the module and the other end of the USB cable to an expansion hub Connect the power supply for the expansion hub to an external power supply Connect the expansion hub to the USB port on the host computer using another USB cable The operating system automatically detects the USB module and starts the Found New Hardware wizard Click Next and or Finish as required in the wizard Once the firmware is loaded the wizard restarts to initiate the firmw
12. from the buffer when the OLDA WM BUFFER DONE and OLDA WM QUEUE DONE messages are generated No Yes gt Return to page 154 Wait for message 157 Chapter 8 158 Stop the Operation Stop in an Waits until the last sample of the current buffer is filled and then stops The driver orderly olDaStop posts a Buffer Done and way Queue Stopped message Reinitialize olDaReset olDaAbort Use olDaAbort and olDaReset to stop the operation on the subsystem immediately the valid samples are marked and the buffer is placed on the done queue No messages are generated In addition olDaReset reinitializes the subsystem to the driver s default state Programming Flowcharts Clean Up the Operation Use to flush all buffers on the ready and or a olDaFlushBuffers D inprocess queues to the done queue v Use to determine the number of buffers on the olDaGetQueueSize done queue KX v olDaGetBuffer Use to retrieve each buffer on the done queue v Use to free each buffer retrieved from the done olDmFreeBuffer queue Yes More buffers to free No For simultaneous operations only use to v olDaReleaseSSList release the simultaneous start list v olDaReleaseDASS Use to release each subsystem v Use to release the device dr
13. graphical programming language to access the capabilities of the DT9836 Series modules Refer to the Data Translation web site www datatranslation com for information about selecting the right software package for your needs Accessories You can purchase the following optional items from Data Translation for use with the OEM version of the DT9836 Series module EP361 5V power supply and cable EP353 Accessory panel that provides one 37 pin D sub connector for attaching analog input signals and one 26 pin connector for attaching a 5B Series signal conditioning backplane EP355 Screw terminal panel that provides 14 position screw terminal blocks for attaching counter timer digital I O trigger and clock signals Not for analog input use with this module EP356 Accessory panel that provides two 37 pin D sub connectors for attaching digital I O analog output counter timer trigger and clock signals EP333 2 meter shielded cable with two 37 pin connectors that connect an EP356 accessory panel to an STP37 screw terminal panel EP360 2 meter shielded cable with two 37 pin connectors that connect an EP353 accessory panel to an STP37 screw terminal panel Overview Getting Started Procedure The flow diagram shown in Figure 1 illustrates the steps needed to get started using the DT9836 Series module This diagram is repeated in each Getting Started chapter the shaded area in the diagram shows you
14. 156 Deal with D A Messages and Buffers Error returned Report the error Buffer reused Yes message returned Increment a counter if desired Yes M message Report the condition returned C Go to the next page The most likely error messages include OLDA WM UNDERRUN and OLDA WM TRIGGER ERROR The buffer reused message is OLDA WM BUFFER REUSED The queue done messages are OLDA WM QUEUE DONE and OLDA WM QUEUE STOPPED After reporting that the acquisition has stopped you can clean up the operation see page 159 Programming Flowcharts Deal with D A Messages and Buffers cont C Continued from previous page E The buffer done message is OLDA_WM_BUFFER_ DONE Use olDaGetBuffer to retrieve a buffer from the done queue and get a pointer to the buffer olDaGetBuffer message returned v Fill the buffer No y olDmCopyToBuffer gt Vv olDaPutBuffer Use olDaPutBuffer to recycle the buffer so that the subsystem can fill it again in OL WRP NONE or OL WRP MULTIPLE mode only The IO complete message is OLDA_WM_IO_COMPLETE es IO complete It is generated when the last data point has been output message gt from the analog output channel Note that in some cases returned this message is generated well after the data is transferred
15. 19 Chassis Ground Connector J2 Use connector J2 on the EP356 accessory panel to attach analog output counter timer trigger and clock signals You can access the pins on the connector J1 either by using the EP333 cable and STP37 screw terminal panel available from Data Translation or by building your own cable panel To build your own cable panel refer to Appendix C for information about the required mating connectors Table 11 lists the pin assignments for connector J2 on the EP356 panel 193 Appendix A 194 Table 11 EP356 Connector J2 Pin Assignments Pee Signal Description e Ne Signal Description 1 Analog Out 0 20 Analog Out 0 Return 2 Analog Out 1 21 Analog Out 1 Return 3 Reserved 22 Reserved 4 5 V 23 Digital Ground 5 Digital Ground 24 Digital Ground 6 External DAC Clock 25 External DAC Trigger 7 External ADC Clock 26 External ADC Trigger 8 Counter 0 Clock 27 Digital Ground 9 Counter 0 Out 28 Counter 0 Gate 10 Counter 1 Clock 29 Digital Ground 11 Counter 1 Out 30 Counter 1 Gate 12 Quad Dec 0 C T 2 A 31 Digital Ground 13 Quad 0 C T 2 Index 32 Quad Dec 0 C T 2 B 14 Quad Dec 1 C T 3 A 33 Digital Ground 15 Quad 1 C T 3 Index 34 Quad Dec 1 C T 3 B 16 Quad Dec 2 C T 4 A 35 Digital Ground 17 Quad 2 C T 4 Index 36 Quad Dec 2 C T 4 B 18 Digital Ground 37 Digital Ground 19 Chassis Ground a Reserve
16. Low output current 12 mA 2 0 V minimum 0 8 V maximum 12 mA maximum 12 mA maximum Interrupt on change Yes Clocked with sample clock Yes Software I O selectable No Specifications Table 15 lists the specifications for the C T subsystems on the DT9836 Series modules Table 15 C T Subsystem Specifications Feature Specifications Number of channels 5 2 C T 3 quadrature decoders Resolution 32 bits per channel Minimum pulse width minimum 55 5 ns amount of time it takes a C T to recognize an input pulse Logic family LVTTL Inputs Input logic load 1 LVTTL High input voltage Low input voltage Low input current 2 0 V minimum 0 8 V maximum 0 4 mA maximum Outputs Fan out High output Low output High output current Low output current 12mA 2 0 V minimum 0 8 V maximum 12 mA maximum 12 mA maximum 207 Appendix C Table 16 lists the specifications for the external A D and D A triggers on the DT9836 Series modules Table 16 External A D and D A Trigger Specifications Feature Specifications Trigger sources Input termination High input voltage Low input voltage High input current Low input current Internal Software initiated External Software selectable Input type Edge sensitive Logic family LVTTL Inputs Input logic load 1 LVTTL 2 2k pull up to 3 3 V 2 0 V minimum 0 8 V
17. as channel 2 in the output channel list refer to page 84 for more information The analog output clock internal or external paces the update of the digital output port as well as the update of the analog output channels refer to page 86 for more information Interrupt on change operations You can use the Open Layers Control Panel applet to select any of the first eight digital input lines to perform interrupt on change operations Use software to set the digital I O subsystem to continuous mode When any one 92 Principles of Operation of the specified bits changes state the module reads the entire 16 bit digital input value and generates an interrupt Refer to Digital Input Interrupt On Change on page 132 for more information Counter Timer Features 6 This section describes the following features of counter timer C T operations e C T channels described below e C T clock sources described on page 95 Gate types described on page 96 Pulse types and duty cycles described on page 97 e C T operation modes described on page 98 e Quadrature decoders described on page 105 C T Channels The DT9836 Series modules provide five 32 bit counter timers two general purpose counters and three quadrature decoder counters The general purpose counters are numbered 0 and 1 Each general purpose counter accepts a clock input signal and gate input signal and outputs a pulse pulse output signal as shown
18. version 182 continuous analog input how to perform 127 post trigger 111 pre trigger 111 scan operations 79 continuous analog output 111 continuously paced 87 how to perform 129 waveform generation mode 88 continuous counter timer 111 continuous digital I O 92 111 how to perform digital input 131 how to perform digital output 134 Control Panel applet 28 92 121 164 conversion modes continuous analog output 86 continuous scan mode 79 digital I O 92 scan 78 single value analog input 78 single value analog output 86 conversion rate 79 counter timer channels 93 115 clock sources 95 118 edge to edge measurement mode 119 event counting 119 gate types 96 high edge gate type 119 high level gate type 119 high to low output pulse 119 in analog input channel gain list 75 internal gate type 119 low edge gate type 120 low level gate type 119 low to high output pulse 119 one shot mode 119 quadrature decoder 105 120 rate generation mode 119 repetitive one shot mode 119 subsystem specifications 207 up down counting 119 counter timers connecting edge to edge signals 56 connecting event counting signals 51 connecting frequency measurement signals 54 connecting period signals 55 connecting pulse output signals 57 connecting pulse width signals 55 connecting up down counting signals 53 counting events 99 customer service 166 D D A see analog output 204 data encoding 81 89 121 data flow modes con
19. 100 mm 215 9 mm x 105 9 mm x 50 mm 4 6 ounces Environmental Operating temperature range Storage temperature range Relative humidity 0 Cto55 C 25 Cto85 C to 95 noncondensing Specifications Table 20 lists the mating cable connectors for the connectors on the BNC connection box the OEM version of the DT9836 Series module and the EP353 and EP356 accessory panels Table 20 Mating Cable Connectors Part Number on Mating Cable Module Panel Connector Module or Equivalent Connector BNC connection Analog input AMP Tyco 747375 8 AMP Tyco 747917 2 BON Digital 1 0 AMP Tyco 747301 8 AMP Tyco 747916 2 C DAC AMP Tyco 747301 8 AMP Tyco 747916 2 CIk Trig OEM version J2 AMP Tyco 1 104068 8 AMP Tyco 1 111196 7 J3 AMP Tyco 1 104068 8 AMP Tyco 1 111196 7 TB18 PCD Inc ELVH03500 PCD Inc ELVP03100 EP353 J1 AMP Tyco 102321 6 AMP Tyco 746288 6 RECESSO panel f ja AMP Tyco 747375 8 AMP Tyco 747917 2 EP356 J1 AMP Tyco 747301 8 AMP Tyco 747916 2 accessory panal X jg AMP Tyco 747301 8 AMP Tyco 747916 2 a Secondary power connector 211 Appendix C 212 A A D subsystem specifications 202 aborting an operation 158 accessories 20 aliasing 77 analog input calibrating 170 channel gain list 74 channel gain list for counter timers 75 channel gain list for digital input port 75 channels 73 continuous operations 78 conversion modes 78 data f
20. 16 Quad Dec 2 C T 4 A 35 Digital Ground 17 Quad 2 C T 4 Index 36 Quad Dec 2 C T 4 B 18 Digital Ground 37 Digital Ground 19 No Connect 47 Chapter 4 Connecting Analog Input Signals The BNC connection box supports voltage inputs You can connect analog input signals to a BNC connection box in single ended mode In this mode the source of the input should be close to the module and all the input signals are referred to the same common ground This section describes how to connect single ended voltage inputs to a BNC connection box Connecting Single Ended Voltage Inputs Figure 7 shows how to connect single ended voltage inputs channels 0 and 1 in this case to the BNC connectors on the BNC connection box BNC Connection Box Analog In 0 O t O3 Os Signal lt Source Analog In 1 o7 gt A a lt lt A co a OF Note that the BNC box automatically E connects the Analog Ground signal 3 2 appropriately q a Figure 7 Connecting Single Ended Inputs to the BNC Connection Box 48 Wiring Signals to the BNC Connection Box Connecting Analog Output Signals Figure 8 shows how to connect an analog output voltage signal channel 0 in this case to the BNC connectors on the BNC connection box BNC Connection Box Analog Out 0 9 Q Load m
21. OLSSC SUP CTMODE ONESHOT Yes Repetitive One Shot Mode Support OLSSC SUP CTMODE ONESHOT RPT Yes Up Down Counting Mode Support OLSSC SUP CTMODE UP DOWN Yes Edge to Edge Measurement Mode Support OLSSC SUP CTMODE MEASURE Yes Continuous Edge to Edge Measurement Mode Support OLSSC SUP CTMODE CONT MEASURE Yes High to Low Output Pulse Support OLSSC SUP PLS HIGH2LOW Yes Low to High Output Pulse Support OLSSC SUP PLS LOW2HIGH Yes None internal Gate Type Support OLSSC SUP GATE NONE Yes High Level Gate Type Support OLSSC SUP GATE HIGH LEVEL Yes Low Level Gate Type Support OLSSC SUP GATE LOW LEVEL Yes High Edge Gate Type Support OLSSC SUP GATE HIGH EDGE Yes 9 119 Chapter 7 120 Table 18 DT9836 Series Counter Timer Options cont DT9836 Series A D D A DIN DOUT C T Low Edge Gate Type Support OLSSC SUP GATE LOW EDGE Yes Level Change Gate Type Support OLSSC SUP GATE LEVEL High Level Gate Type with Input Debounce OLSSC SUP GATE HIGH LEVEL DEBOUNCE Low Level Gate Type with Input Debounce Support OLSSC SUP GATE LOW LEVEL DEBOUNCE High Edge Gate Type with Input Debounce OLSSC SUP GATE HIGH EDGE DEBOUNCE Low Edge Gate Type with Input Debounce Support OLSSC SUP GATE LOW EDGE DEBOUNCE Level Change Gate Type with Input Debounce OLSSC SUP GATE LEVEL DEBOUNCE Fixed Pulse Width Support OLSSC SUP
22. Series module as well as the supported software and accessories for the modules Chapter 2 Preparing to Use a Module describes how to unpack the DT9836 Series package check the system requirements install the DT9836 Series software under Windows 2000 or Windows XP and view the DT9836 Series documentation online Chapter 3 Setting Up and Installing the Module describes how to install a DT9836 Series module how to apply power to the module and how to configure the device driver Chapter 4 Wiring Signals to the BNC Connection Box describes how to wire signals to a DT9836 Series BNC connection box Chapter 5 Verifying the Operation of a Module describes how to verify the operation of the DT9836 Series module with the Quick Data Acq application Chapter 6 Principles of Operation describes all of the features of the DT9836 Series module and how to use them in your application Chapter 7 Supported Device Driver Capabilities lists the data acquisition subsystems and the associated features accessible using the DT9836 Series Device Driver Chapter 8 Programming Flowcharts describes the processes you must follow to program the subsystems of the DT9836 Series module using DT Open Layers compliant software Chapter 9 Troubleshooting provides information that you can use to resolve problems with the DT9836 Series module and device driver should they occur About this Manua
23. The application displays the entire 16 bit digital input value 0 to FFFF in both the Data box and the Digital Input box In addition application shows the state of the lower eight digital input lines lines 0 to 7 in the graphical display If an indicator light is lit red the line is high if an indicator light is not lit black the line is low Note Although the DT9836 Series modules contain 16 digital input lines the Quick Data Acq application shows indicator lights for the lower eight digital input lines only The 16 bit value is the correct value for all 16 lines 65 Chapter 5 66 Testing Single Value Digital Output Note Although the DT9836 Series modules contain 16 digital output lines the Quick Data Acq application allows you to perform a digital output operation on the lower eight digital output lines lines 0 to 7 only To verify that the module can output a single digital output value do the following 1 Connect a digital output to digital output line 0 on the DT9836 Series module Refer to page 45 for information about how to connect a digital output In the Quick Data Acq application choose Digital Output from the Control menu Select the appropriate DT9836 Series module from the Board list box Click the appropriate indicator lights to select the types of signals to write from the digital output lines If you select a light the module outputs a high level signal if you do not
24. analog input channel gain list This feature is particularly useful when you want to correlate the timing of analog and counter timer events To read a counter timer channel specify the appropriate channel number in the analog input channel gain list refer to Table 4 on page 76 You can enter a channel number anywhere in the list You need two channel gain list entries to read one 32 bit counter value The first entry stores the lower 16 bit word and the second entry stores the upper 16 bit word You must specify both channel gain list entries if you include a counter timer channel Table 4 lists the channel number s to use for each counter timer 75 Chapter 6 Table 4 Using Counter Timers in Analog Input Channel Gain List Channel to Specify in Channel Gain List for Counter Timer Channel Description DT9836 12 DT9836 6 C T 0 LOW Lower 16 bits 0 to 15 of C T O Channel 13 Channel 7 C T 0 HI Upper 16 bits 16 to 31 of C T O Channel 14 Channel 8 C T 1 LOW Lower 16 bits of C T 1 Channel 15 Channel 9 C T 1 HI Upper 16 bits of C T 1 Channel 16 Channel 10 C T 2 LOW Lower 16 bits of Q D 0 C T 2 Channel 17 Channel 11 C T 2 HI Upper 16 bits of Q D 0 C T 2 Channel 18 Channel 12 C T 3 LOW Lower 16 bits of Q D 1 C T 3 Channel 19 Channel 13 C T 3 HI Upper 16 bits of Q D 1 C T 3 Channel 20 Channel 14 C T 4 LOW Lower 16 bits of Q D 2 C T 4 Channel 21 Channel 15 C T 4 HI Upper 16 bit
25. are connected on a DT9836 Series module The TB1 5 V connector is available from the OEM version of a DT9836 Series module only TB1 2 5V 13 5 V The 5 V connector is available from the OEM version and the BNC DGND connection box Earth GND 5 V USB used for o ____ initialization only not DC for power USB USB Interface Interface Power DC DGNDUSB DC DC __ o Earth GND A D and D A Power 15 VIAGND 15V A D and D A System Figure 32 Ground Power and Isolation Connections 199 Appendix B Keep the following in mind Earth ground on the DT9836 module is not connected to DGND or AGND Earth ground is connected to the aluminum case of the BNC connection box You should connect earth ground to the power supply earth You should isolate the 5V DGND input Note that the EP361 power supply shipped with the BNC connection box and available from Data Translation for the OEM version of the module has no connection between 45V DGND and earth ground The USB connector case is connected to earth ground e The USB data lines and USB GND are not connected to earth ground e The USB DGND is connected to the USB GND of the PC USB port 200 Specifications Appendix C 202 Table 12 lists the specifications for the A D subsystem on the DT9836 Series
26. available to provide technical assistance To request technical support go to our web site at http www datatranslation com and click on the Support link When requesting technical support be prepared to provide the following information Your product serial number The hardware software product you need help on The version of the OMNI CD you are using Your contract number if applicable If you are located outside the USA contact your local distributor see our web site www datatranslation com for the name and telephone number of your nearest distributor 165 Chapter 9 166 If Your Module Needs Factory Service If your module must be returned to Data Translation do the following 1 Record the module s serial number and then contact the Customer Service Department at 508 481 3700 ext 1323 if you are in the USA and obtain a Return Material Authorization RMA If you are located outside the USA call your local distributor for authorization and shipping instructions see our web site www datatranslation com for the name and telephone number of your nearest distributor All return shipments to Data Translation must be marked with the correct RMA number to ensure proper processing Using the original packing materials if available package the module as follows Wrap the module in an electrically conductive plastic material Handle with ground protection A static discharge can destroy c
27. case a falling edge on the Counter 0 Gate signal You specify the start edge and the stop edge in software Refer to Edge to Edge Measurement on page 101 for more information Digital Ground Signal 5 Source 1 Counter 0 Gate 28 Signal Counter 0 Clock Source 0 gt D8 D sub Pins Figure 16 Connecting Counter Timer Signals to the D sub Pins for an Edge to Edge Measurement Operation Wiring Signals to the BNC Connection Box Pulse Output Figure 17 shows how to connect counter timer signals to the CT Enc In Analog Output CIk Trig D sub pins to perform a pulse output operation on counter timer 0 in this example an external gate is used Digital Ground External PE Gating Switch o qp 24 Counter 0 Gate TEN gt e 28 Nm Counter 0 Out 4 D9 L e Heater Controller Digital Ground D sub Pins Figure 17 Connecting Counter Timer Signals to the D sub Pins for a Pulse Output Operation Using an External Gate 57 Chapter 4 58 JJ Verifying the Operation of a Module Installing the Quick Data Acq Application 61 Running the Quick Data Acq Application 61 Testing Single Value Analog Input 006 62 Testing Single Value Analog Output 06 63 Testing Continuous Analog Input piis 64 Testing Single Value Digital Input
28. e E teas 112 Ibn cepere 112 Triggered Scan Mode 0 000 113 ecu m m 114 Synchronous Digital 1 O 6 6 eee eee 115 Channels 1 eeteReeiPCbeese Bhi ERR UU RE ERR RUE HE 115 Filters 2ecebie rte eee ex RA eh eese acuden 116 RANGES Pr 116 Contents Resol tiori s sc erc eed Ses eee eee uec P eee 116 Boro Ho 117 dg c 118 Counter Timers 0 0 eee 119 Miscellaneous p Rr eI ERREN A EROR 121 Chapter 8 Programming Flowcharts 123 Single Value Operations 00 esses 125 Continuous A D Operations 6 0 6 127 Continuous D A Operations 0 000 eee ee 129 Continuous Digital Input Operations 131 Digital Input Interrupt On Change 0048 132 Continuous Digital Output Operations 134 Event Counting Operations 6 6 135 Up Down Counting Operations sssssssssse 137 Frequency Measurement Operations 0005 139 Edge to Edge Measurement Operations 141 Pulse Output Operations ssssssssseseeeeeeee 143 Quadrature Decoder Operations 0 200 005 145 Simultaneous Operations 6 06 r nrar eee eee 147 Chapter 9 Troubleshooting esses 161 General Checklist is rocce 0 00 00 00 cee eee eee eee 162 Technical Support 2 2 eme eee emen 165 If Your Module Needs Factory Service ls 166 Ch
29. enabled the counter outputs a pulse of the specified type and frequency continuously As soon as the operation is disabled rate generation stops The period of the output pulse is determined by the C T clock source either internal using a clock divider or external You can output pulses using a maximum frequency of 18 MHz this is the frequency of the Counter n Out signal Refer to page 95 for more information about the C T clock sources Using software specify the counter timer mode as rate generation rate the C T clock source as either internal or external the clock divider for an internal clock the polarity of the output pulses high to low transition or low to high transition the duty cycle of the output pulses and the active gate type low level or high level Refer to page 97 for more information about pulse output signals and to page 96 for more information about gate types Make sure that the signals are wired appropriately Refer to Period Pulse Width Measurement on page 55 for an example of connecting a rate generation application One Shot Use one shot mode to generate a single pulse output signal from the Counter n Out line when the specified edge is detected on the Counter n Gate signal You can use this pulse output signal as an external digital TTL trigger to start other operations such as analog input or analog output operations 103 Chapter 6 104 After the single pulse is output the
30. in Figure 20 93 Chapter 6 94 Clock Input Signal internal or external Counter Pulse Output Signal Gate Input Signal software or external input Figure 20 Counter Timer Channel The quadrature decoder counters are numbered 2 3 and 4 Each quadrature counter accepts an A B and Index input and is used to interface with a quadrature encoder sensor To specify the counter timer to use in software specify the appropriate C T subsystem For example counter timer 0 corresponds to C T subsystem element 0 and quadrature decoder 0 corresponds to C T subsystem element 2 Using software you can also specify one or more of the counter timers in the analog input channel gain list You need two channel gain list entries to read a 32 bit counter or quadrature decoder value The first entry stores the lower 16 bit word and the second entry stores the upper 16 bit word Refer to page 75 for more information about using C Ts in the channel gain list Principles of Operation C T Clock Sources The following clock sources are available for the general purpose counter timers Internal C T clock Through software specify the clock source as internal and specify the frequency at which to pace the operation this is the frequency of the Counter n Out signal This is typically used in rate generation mode External C T clock An externa
31. more information about the input sample clock The sample rate which is the rate at which a single entry in the channel gain list is sampled is the same as the conversion rate due to the simultaneous nature of the module To select continuous scan mode use software to specify the data flow as continuous and to specify the initial trigger the trigger source that starts the operation You can select a software trigger an external TTL trigger or an analog threshold trigger as the initial trigger Refer to page 80 for more information about the supported trigger sources Figure 19 illustrates continuous scan mode using a channel gain list with three entries channel 0 channel 1 and channel 2 In this example analog input data is acquired simultaneously on all channels on each clock pulse of the input sample clock Data is acquired continuously 79 Chapter 6 80 Input Sample Clock Chan 2 Chan 2 Chan 2 Chan 2 Chan 1 Chan 1 Chan 1 Chan 1 Chan 0 Chan 0 Chan 0 Chan 0 Data is acquired continuously Initial trigger event occurs Figure 19 Continuous Scan Mode Input Triggers A trigger is an event that occurs based on a specified set of conditions Acquisition starts when the module detects the initial trigger event and stops when the specified number of samples has been acquired if the buffer wrap mode is none described on page 82 or when you stop the operation Th
32. one shot operation stops All subsequent clock input signals and gate input signals are ignored The period of the output pulse is determined by the C T clock source either internal using a clock divider or external Note that in one shot mode the internal C T clock is more useful than an external C T clock refer to page 95 for more information about the C T clock sources Using software specify the counter timer mode as one shot the clock source as internal recommended the clock divider the polarity of the output pulse high to low transition or low to high transition the duty cycle of the output pulse and the active gate type rising edge or falling edge Refer to page 97 for more information about pulse output types and to page 96 for more information about gate types Note In the case of a one shot operation use a duty cycle as close to 100 as possible to output a pulse immediately Using a duty cycle closer to 0 acts as a pulse output delay Make sure that the signals are wired appropriately Refer to Period Pulse Width Measurement on page 55 for an example of connecting a one shot application Repetitive One Shot Use repetitive one shot mode to generate a pulse output signal from the Counter n Out line whenever the specified edge is detected on the Counter n Gate signal You can use this mode to clean up a poor clock input signal by changing its pulse width and then outputting it Principles of Opera
33. output period is the active portion of the counter timer clock output signal Low to high transitions The high portion of the total pulse output period is the active portion of the counter timer pulse output signal You specify the pulse output type in software The duty cycle or pulse width indicates the percentage of the total pulse output period that is active For example a duty cycle of 50 indicates that half of the total pulse output is low and half of the total pulse output is high You specify the duty cycle in software Figure 21 illustrates a low to high pulse with a duty cycle of approximately 30 97 Chapter 6 Active Pulse Width rat high pulse i low pulse lt Total Pulse Period Figure 21 Example of a Low to High Pulse Output Type Counter Timer Operation Modes Note This section does not apply to quadrature decoders DT9836 Series modules support the following counter timer operation modes 98 Event counting Up down counting Frequency measurement Edge to edge measurement Rate generation One shot Repetitive one shot Principles of Operation Note The active polarity for each counter timer operation mode is software selectable The following subsections describe these modes in more detail Event Counting Use event counting mode if you want to count the number of rising edges that occur on the Counter n Cl
34. select a light the module outputs a low level signal You can also enter an output value for the lower eight digital output lines 0 to FF in the Hex text box Click Send The values of the lower eight digital output lines are output appropriately Verifying the Operation of a Module Testing Frequency Measurement To verify that the module can perform a frequency measurement operation do the following 1 Wire an external clock source to counter timer 0 on the DT9836 Series module Refer to page 51 for an example of how to connect an external clock Note The Quick Data Acq application works only with counter timer 0 2 Inthe Quick Data Acq application choose Measure Frequency from the Acquisition menu 3 Select the appropriate DT9836 Series module from the Board list box 4 Inthe Count Duration text box enter the number of seconds during which events will be counted 5 Click Start to start the frequency measurement operation The operation automatically stops after the number of seconds you specified has elapsed and the frequency is displayed on the screen 6 Click Stop to stop the frequency measurement operation 67 Chapter 5 68 Testing Pulse Output To verify that the module can perform a pulse output operation perform the following steps 1 Connect a scope to counter timer 0 on the DT9836 Series module Refer to page 57 for an example of how to connect a scope a pulse outpu
35. specify the trigger source as external and the polarity as high to low transition or low to high transition 85 Chapter 6 86 Output Clocks DT9836 Series modules allow you to use one of the following clock sources to pace analog output operations Internal DAC clock Using software specify the clock source as internal and the clock frequency at which to pace the operation The minimum frequency supported is 0 75 Samples s the maximum frequency supported is 500 kSamples s External DAC clock An external DAC clock is useful when you want to pace conversions at rates not available with the output sample clock or when you want to pace at uneven intervals Connect an external DAC clock to the DAC Clock BNC connector on the DT9836 Series module Analog output operations start on the rising edge of the external DAC clock signal Using software specify the clock source as external The clock frequency is always equal to the frequency of the external DAC clock signal that you connect to the module Output Conversion Modes DT9836 Series modules support the following conversion modes Single value operations are the simplest to use but offer the least flexibility and efficiency Use software to specify the analog output channel that you want to update and the value to output from that channel For a single value operation you cannot specify a clock source trigger source or buffer Single value operations stop auto
36. to the channels specified in the output channel list The operation repeats continuously until all the data is output from the buffers Make sure that the host computer transfers data to the output channel list fast enough so that the list does not empty completely otherwise an underrun error results To select streaming analog output mode use software to specify the data flow as continuous the buffer wrap mode as none and the trigger source as any of the supported trigger sources Refer to page 85 for more information about the supported trigger sources To stop a streaming analog output operation you can stop sending data to the module letting the module stop when it runs out of data or you can perform either an orderly stop or an abrupt stop using 87 Chapter 6 88 software In an orderly stop the module finishes outputting the current buffer and then stops all subsequent triggers are ignored In an abrupt stop the module stops outputting samples immediately all subsequent triggers are ignored Waveform Generation Use waveform generation mode if you want to output a waveform repetitively Note The waveform pattern size must be the same for all output channels and the total number of samples must be a multiple of the total number of output channels Use software to fill the output buffer with the values that you want to write to the channels in the output channel list For example if your output cha
37. where you are in the getting started procedure E Prepare to Use the Module see Chapter 2 starting on page 25 Set Up and Install the Module see Chapter 3 starting on page 31 Wire Signals to the BNC Connection Box see Chapter 4 starting on page 39 P Verify the Operation of the Module see Chapter 5 starting on page 59 Figure 1 Getting Started Flow Diagram 21 Chapter 1 22 Part 1 Getting Started 2 cc Preparing to Use a Module UD RR EA 27 Checking the System Requirements sess 28 Installing Qe SOIDWAPE i re 6 coos cade Seen ee e ern e 29 Viewing the Documentation Online 000 30 25 Chapter 2 26 C Prepare to Use the Module this chapter Set Up and In stall the Module see Chapter 3 starting on page 31 Wire Signals to the BNC Connection Box see Chapter 4 starting on page 39 C Verify the Operation of the Module see Chapter 5 starting on page 59 Preparing to Use a Module Unpacking Open the shipping box and verify that the following items are present e BNC connection box or OEM version of the DT9836 Series module Data Acquisition OMNI CD Note that if you purchased a BNC connection box a USB cable and an EP361 power supply and power cable should also be included Additionally the BNC box includes a 37 pin mating connector AMP 747917 2 If an item is
38. 10 Digital Input 9 29 Digital Output 9 11 Digital Input 10 30 Digital Output 10 12 Digital Input 11 31 Digital Output 11 13 Digital Input 12 32 Digital Output 12 14 Digital Input 13 33 Digital Output 13 15 Digital Input 14 34 Digital Output 14 16 Digital Input 15 35 Digital Output 15 17 Digital Ground 36 Reserved 18 Digital Ground 37 Digital Ground 19 No Connect CT Enc In Analog Out CIk Trig Connector The CT Enc In Analog Output Clk Trig connector lets you access the counter timer analog output external clock and external trigger 46 Wiring Signals to the BNC Connection Box signals Table 3 lists the pin assignments for this connector on the BNC connection box Table 3 CT Enc In Analog Out Clk Trig Connector Pin Signal Description Pin Signal Description 1 Analog Output 0 20 Analog Output 0 Return 2 Analog Output 1 21 Analog Output 1 Return 3 Reserved 22 Reserved 4 Reserved 23 Reserved 5 Digital Ground 24 Digital Ground 6 External DAC Clock 25 External DAC Trigger 7 External ADC Clock 26 External ADC Trigger 8 Counter 0 Clock 27 Digital Ground 9 Counter 0 Out 28 Counter 0 Gate 10 Counter 1 Clock 29 Digital Ground 11 Counter 1 Out 30 Counter 1 Gate 12 Quad Dec 0 C T 2 A 31 Digital Ground 13 Quad 0 C T 2 Index 32 Quad Dec 0 C T 2 B 14 Quad Dec 1 C T 3 A 33 Digital Ground 15 Quad 1 C T 3 Index 34 Quad Dec 1 C T 3 B
39. 6 Panel 191 Appendix A Connector J1 Use connector J1 on the EP356 accessory panel to attach digital I O signals You can access the pins on the connector J1 either by using the EP333 cable and STP37 screw terminal panel available from Data Translation or by building your own cable panel To build your own cable panel refer to Appendix C for information about the required mating connectors Table 10 lists the pin assignments for connector J1 on the EP356 panel Table 10 EP356 Connector J1 Pin Assignments renee Signal Description acne Signal Description 1 Digital Input O 20 Digital Out 0 2 Digital Input 1 21 Digital Out 1 3 Digital Input 2 22 Digital Out 2 4 Digital Input 3 23 Digital Out 3 5 Digital Input 4 24 Digital Out 4 6 Digital Input 5 25 Digital Out 5 7 Digital Input 6 26 Digital Out 6 8 Digital Input 7 27 Digital Out 7 9 Digital Input 8 28 Digital Out 8 10 Digital Input 9 29 Digital Out 9 11 Digital Input 10 30 Digital Out 10 12 Digital Input 11 31 Digital Out 11 13 Digital Input 12 32 Digital Out 12 14 Digital Input 13 33 Digital Out 13 192 Connector Pin Assignments Table 10 EP356 Connector J1 Pin Assignments cont cm Signal Description e Signal Description 15 Digital Input 14 34 Digital Out 14 16 Digital Input 15 35 Digital Out 15 17 Digital Ground 36 Reserved 18 Digital Ground 37 Digital Ground
40. 60 degrees 4 N where N is the number of pulses generated by the quadrature encoder per rotation For example if every rotation of the quadrature encoder generated 10 pulses and the value read from the quadrature decoder is 20 the rotation of the quadrature encoder is 180 degrees 20 40 x 360 degrees 107 Chapter 6 108 Supported Device Driver Capabilities Data IMO ceri kc Pande ed Rha Sh odes I EFE Lee RA 111 PNAS ie LLL HRCGHEURLU ERR IG RLS th dd hehe a bates 112 T rx 112 Triggered Scan Made eccesso nrbe EE RES RE 113 4 5 MR 114 Synchronous Digital TAD esere ienee eee 115 Channels cci cere E RUE RR PE CPC PE e E 115 lj PORMEMUIMMC tee Pico ddd donee andes aac 116 Ronges CPC 116 Besolutoli esi teer pre ret e paces EE Dae 116 ji pP 117 Gun c ERI eS A EEE 118 Counter Timers sg sca sce ad bedt bees See DRE E gates DER 119 WhiscellaneOus sic eed eG eae e ERR RE LEER 121 109 Chapter 7 110 The DT9836 Series Device Driver provides support for the analog input A D analog output D A digital input DIN digital output DOUT and counter timer C T subsystems For information on how to configure the device driver refer to Chapter 3 Table 5 DT9836 Series Subsystems DT9836 Series A D D A DIN DOUT C T Total Subsystems on Module 1 18 1 1 55 a Zero or one depending upon model purchased excluding the special D A subsystem reserved for analog threshold tr
41. DASS i Specify the clock source as OL CLK EXTERNAL using olDaSetClockSource i Specify the clock divider using olDaSetExternalClockDivider i Specify the mode as OL CTMODE UP DOWN using olDaSetCTMode i Configure the subsystem using olDaConfig ene C Go to the next page Specify the appropriate C T subsystem element The DT9836 Series supports two general non quadrature elements 0 1 Specify a clock divider between 2 the default and 2 147 483 647 The clock divider determines the frequency at which to pace the operation this is the frequency of the Counter n Out signal 137 Chapter 8 Up Down Counting Operations cont Continued from previous page v Start the operation using olDaStart v Read the events counted using olDaReadEvents Get update of events total No v Stop the operation see page 158 v Release each subsystem with olDaReleaseDASS v Release the device driver and terminate N the session with olDaTerminate E 138 Programming Flowcharts Frequency Measurement Operations The following flowchart shows the steps required to perform a frequency measurement operation using the Windows timer If you need more accuracy the Windows timer provides refer to page 100 of this manual or to your DataAcq SDK User s Manual for more info
42. DATA TRANSLATION UM 21551 B DT9836 Series User s Manual Second Edition March 2006 Data Translation Inc 100 Locke Drive Marlboro MA 01752 1192 508 481 3700 www datatranslation com Fax 508 481 8620 E mail info datx com Copyright 2006 by Data Translation Inc All rights reserved Information furnished by Data Translation Inc is believed to be accurate and reliable however no responsibility is assumed by Data Translation Inc for its use nor for any infringements of patents or other rights of third parties which may result from its use No license is granted by implication or otherwise under any patent rights of Data Translation Inc Use duplication or disclosure by the United States Government is subject to restrictions as set forth in subparagraph c 1 ii of the Rights in Technical Data and Computer software clause at 48 C F R 252 227 7013 or in subparagraph c 2 of the Commercial computer Software Registered Rights clause at 48 C F R 52 227 19 as applicable Data Translation Inc 100 Locke Drive Marlboro MA 01752 Data Translation is a registered trademark of Data Translation Inc DT Open Layers DataAcq SDK DataAcq OMNI CD DT LV Link DTx EZ and DT VPI are trademarks of Data Translation Inc All other brand and product names are trademarks or registered trademarks of their respective companies Radio and Television Interference This equipment has
43. FIXED PULSE WIDTH Quadrature Decoder OLSSC SUP QUADRATURE DECODER Yes a On general purpose counter timers only not quadrature decoders b Edge to edge measurement mode is supported on both the gate and clock signals rising and falling edges are both supported c High edge and low edge are supported for one shot and repetitive one shot modes High level and low level are supported for event counting up down counting frequency measurement edge to edge measurement and rate generation modes d On quadrature decoder connectors only Supported Device Driver Capabilities Miscellaneous Table 19 DT9836 Series Miscellaneous Options DT9836 Series A D D A DIN DOUT C T Simultaneous Start List Support OLSSC_SUP_SIMULTANEOUS_START Yes Yes Pause Operation Support OLSSC_SUP_PAUSE Asynchronous Operation Support OLSSC_SUP_POSTMESSAGE Yes Yes Yes Yes Binary Encoding Support OLSSC SUP BINARY Yes Yes Yes Yes Yes Twos Complement Support OLSSC SUP 28COMP Interrupt Support OLSSC SUP INTERRUPT Yes Yes FIFO in Data Path Support OLSSC SUP FIFO Yes Yes Output FIFO Size OLSSC FIFO SIZE IN K 2 128 Data Processing Capability OLSSC SUP PROCESSOR Yes Yes Yes Yes Software Calibration Support OLSSC SUP SWCAL Yes Yes a The DIN subsystem supports the posting of messages only if the digital input port is configured for continuou
44. G DT Connect Support OLSSC SUP DTCONNECT Continuous DT Connect Support OLSSC SUP DTCONNECT CONTINUOUS Burst DT Connect Support OLSSC SUP DTCONNECT BURST a The DIN subsystem supports continuous mode by allowing you to read the digital input port all 16 digital input lines using the analog input channel gain list b The DOUT subsystem supports continuous mode by allowing you to output data from the digital output port all 16 digital output lines using the output channel list c The C T subsystem supports continuous mode by allowing you to read the value of one or more of the 2 general purpose counter timer channels or 3 quadrature decoders using the analog input channel gain list 111 Chapter 7 112 Buffering Table 7 DT9836 Series Buffering Options DT9836 Series A D D A DIN DOUT C T Buffer Support OLSSC SUP BUFFERING Yes Yes Single Buffer Wrap Mode Support OLSSC SUP WRPSINGLE Yes Yes Multiple Buffer Wrap Mode Support OLSSC SUP WRPMULTIPLE Yes Yes Inprocess Buffer Flush Support OLSSC SUP INPROCESSFLUSH Yes Waveform Generation Mode Support OLSSC SUP WAVEFORM MODE Yes a The data from the DT9836 module is transferred to the host in 4 096 byte 2 048 sample segments If the application calls olDaFlushFromBufferInprocess before the module has transferred 2 048 samples to the host the buffer on the done queue will contain 0
45. Get a handle to the C T subsystem with subsystem element The DT9836 Series olDaGetDASS supports two general non quadrature elements 0 1 Specify the clock source as OL_CLK_EXTERNAL using olDaSetClockSource i Vm Specify a clock divider between 2 the pua s eR default and 2 147 483 647 The clock olDasetexternalVlockDivider divider determines the frequency at which to pace the operation this is the frequency of the Counter n Out signal Specify the gate type as high level OL_GATE_HIGH_LEVEL or low level OL_GATE_LOW_LEVEL using olDaSetGateType LA Specify the mode as OL CTMODE COUNT using olDaSetCTMode Y Configure the subsystem using olDaConfig v a Go to the next page X 135 Chapter 8 Event Counting Operations cont Continued from previous page v Start the operation using olDaStart v Read the events counted using olDaReadEvents Y Get update c of events total No Y Stop the operation see page 158 v Release each subsystem with olDaReleaseDASS v Release the device driver and terminate the session with olDaTerminate 136 Programming Flowcharts Up Down Counting Operations 2 Initialize the device driver and get the NE device handle with olDalnitialize Get a handle to the C T subsystem with olDaGet
46. Hu ounter ate gt D 28 Counter 0 Clock 0 8 HD 5 Signal Source Digital igital Ground D sub Pins Figure 14 Connecting Counter Timer Signals to the D sub Pins for a Frequency Measurement Operation Using an External Pulse 54 Wiring Signals to the BNC Connection Box Period Pulse Width Measurement Figure 15 shows how to connect counter timer signals to the CT Enc In Analog Output CIk Trig D sub pins to perform a period pulse width measurement operation on counter timer 0 You specify the active pulse high or low in software The pulse width is the percentage of the total pulse period that is active Refer to Pulse Output Types and Duty Cycles on page 97 for more information about pulse periods and pulse widths Counter 0 Clock gt 5d o Signal Source Digital Ground D sub Pins Figure 15 Connecting Counter Timer Signals to the D sub Pins for a Period Pulse Width Measurement Operation 55 Chapter 4 56 Edge to Edge Measurement Note To use edge to edge measurement mode you need the latest version of DT Open Layers Figure 16 shows how to connect counter timer signals to the CT Enc In Analog Output Clk Trig D sub pins to perform an edge to edge measurement operation on two signal sources The counter measures the time interval between the start edge in this case a rising edge on the Counter 0 Clock signal and the stop edge in this
47. Module Testing Single Value Analog Output To verify that the module can output a single analog output value do the following 1 Connect an oscilloscope or voltmeter to analog output channel 0 on the module Refer to page 49 for an example of how to connect analog output signals In the Quick Data Acq application choose Single Analog Output from the Control menu Select the appropriate DT9836 Series module from the Board list box In the Channel list box select analog output channel 0 In the Range list box select the output range of DACO The default is 10 V Enter an output value or use the slider to select a value to output from DACO Click Send to output a single value from analog output channel 0 The application displays the output value both on the slider and in the text box 63 Chapter 5 Testing Continuous Analog Input 64 To verify that the module can perform a continuous analog input operation do the following 1 Connect known voltage sources such as the outputs of a function generator to analog input channels 0 and 1 on the DT9836 Series module 2 In the Quick Data Acq application choose Scope from the Acquisition menu 3 Select the DT9836 Series module from the Board list box 4 Inthe Sec Div list box select the number of seconds per division 1 to 00001 for the display 5 Inthe Channel list box select analog input channel 1 and then click Add to add the
48. P EXTERNTRIG 117 OLSSC SUP GAPFREE NODMA 112 OLSSC SUP GATE HIGH EDGE 119 OLSSC SUP GATE HIGH LEVEL 119 OLSSC SUP GATE LOW EDGE 120 OLSSC SUP GATE LOW LEVEL 119 OLSSC SUP GATE NONE 119 OLSSC SUP INPROCESSFLUSH 112 OLSSC SUP INTCLOCK 118 OLSSC SUP INTERRUPT 121 OLSSC SUP PLS HIGH2LOW 119 OLSSC SUP PLS LOW2HIGH 119 OLSSC SUP POSTMESSAGE 121 OLSSC SUP PROCESSOR 121 OLSSC SUP PROGRAMGAIN 114 OLSSC SUP RANDOM CCGL 114 OLSSC SUP RETRIGGER EXTRA 113 OLSSC SUP RETRIGGER INTERNA L 113 Index OLSSC_SUP_RETRIGGER_SCAN_ PER_TRIGGER 113 OLSSC_SUP_SEQUENTIAL_CGL 114 OLSSC_SUP_SIMULTANEOUS_CLO CKING 118 OLSSC_SUP_SIMULTANEOUS_STA RT 121 OLSSC_SUP_SINGLEENDED 115 OLSSC_SUP_SINGLEVALUE 111 OLSSC_SUP_SOFTTRIG 117 OLSSC_SUP_SWCAL 121 OLSSC_SUP_SYNCHRONOUS_ DIGITALIO 115 OLSSC_SUP_THRESHTRIGPOS 117 OLSSC_SUP_TRIGSCAN 113 OLSSC_SUP_WRPMULTIPLE 112 OLSSC_SUP_WRPSINGLE 112 OLSSC_SUP_ZEROSEQUENTIAL_C GL 114 OLSSCE_BASECLOCK 118 OLSSCE_MAX_THROUGHPUT 118 OLSSCE_MAXCLOCKDIVIDER 118 OLSSCE_MAXRETRIGGER 113 OLSSCE_MIN_THROUGHPUT 118 OLSSCE_MINCLOCKDIVIDER 118 OLSSCE_MINRETRIGGER 113 one shot pulse output 103 119 online help 61 Open Layers Control Panel applet 28 92 121 164 operation modes continuous digital I O 92 continuous scan 79 single value analog input 78 single value analog output 86 single value digital I O 92 waveform generation 88 output channel list 84 clock sources 86 pulses 119 ranges 85 output p
49. Table 1 Note that all modules provide 16 digital input lines 16 digital output lines 16 bit resolution two counter timers three quadrature decoders and a throughput rate of up to 225 kSamples s Table 1 Summary of DT9836 Series Modules Analog Module Analog Inputs Outputs Packaging DT9836 12 2 OEM 12 single ended 2 OEM DT9836 12 2 BNC 12 single ended 2 BNC DT9836 12 0 OEM 12 single ended 0 OEM DT9836 12 0 BNC 12 single ended 0 BNC DT9836 6 2 OEM 6 single ended 2 OEM DT9836 6 2 BNC 6 single ended 2 BNC DT9836 6 0 OEM 6 single ended 0 OEM DT9836 6 0 BNC 6 single ended 0 BNC Notes e OEM packaging refers to the board level version the power supply is not included e BNC packaging refers to a connection box with BNCs for the specified number of analog inputs 2 BNCs for analog outputs if included 1 BNC for an external A D clock 1 BNC for an external DAC clock 1 BNC for an external A D trigger and 1 BNC for an external DAC trigger Overview Supported Software The following software is available for use with the DT9836 Series modules and is on the Data Acquisition OMNI CD e DT9836 Series Device Driver The device driver allows you to use a DT9836 Series module with any of the supported software packages or utilities Refer to the DT9836 Series Getting Started Manual UM 21553 for more information on loading and configuring the device driver Quick Data Ac
50. _SUP_ZEROSEQUENTIAL_CGL Random Channel Gain List Support OLSSC_SUP_RANDOM_CGL Yes Yes Yes Simultaneous Sample and Hold Support OLSSC_SUP_SIMULTANEOUS_SH Yes Channel List Inhibit Support OLSSC_SUP_CHANNELLIST_INHIBIT Programmable Gain Support OLSSC_SUP_PROGRAMGAIN Yes Number of Gains OLSSC_NUMGAINS Noncontiguous Channels in Channel Gain List OLSSC_NONCONTIGUOUS_CHANNELNUM AutoRanging Support OLSSC_SUP_SINGLEVALUE_AUTORANGE 114 Supported Device Driver Capabilities Synchronous Digital I O Table 11 DT9836 Series Synchronous Digital I O Options DT9836 Series A D D A DIN DOUT C T Synchronous Digital I O Support OLSSC SUP SYNCHRONOUS DIGITALIO Maximum Synchronous Digital I O Value OLSSC_MAX_DIGITALIOLIST_VALUE 0 0 0 0 0 Channels Table 12 DT9836 Series Channel Options DT9836 Series A D D A DIN DOUT C T Number of Channels 17 or OLSSC NUMCHANNELS 232 2 1 1 1 SE Support OLSSC SUP SINGLEENDED Yes SE Channels OLSSC MAXSECHANS 60r12 JO 0 0 0 DI Support OLSSC SUP DIFFERENTIAL Yes Yes Yes Yes DI Channels OLSSC MAXDICHANS 0 2 1 1 1 DT2896 Channel Expansion Support OLSSC SUP EXP2896 DT727 Channel Expansion OLSSC SUP EXP727 a For modules with 6 channels channels 0 to 5 read the analog input channels channel 6 reads all 16 bits from the DIN subsystem channels 7 to 16 read
51. a appears to An open connection Check your wiring and fix any open the appropriate Service Pack installed be invalid exists connections see the instructions in Chapter 4 A transducer is not Check the transducer connections see connected to the the instructions in Chapter 4 channel being read The module is set up Check your wiring and ensure that what for differential inputs you specify in software matches your while the transducers hardware configuration see the are wired as instructions in Chapter 4 single ended inputs or vice versa The DT9836 Series DT9836 Series modules are calibrated at module is out of the factory If you want to readjust the calibration calibration of the analog input or analog output circuitry refer to Chapter 10 starting on page 167 USB 2 0 is not Your operating Ensure that you load the appropriate recognized system does not have Windows Service Pack version 2 for Windows XP or version 4 for Windows 2000 If you are unsure of whether you are using USB 2 0 or USB 1 1 run the Open Layers Control Panel applet described in Chapter 3 Standby mode is enabled on your PC For some PCs you may need to disable standby mode on your system for proper USB 2 0 operation Consult Microsoft for more information 164 Troubleshooting Technical Support If you have difficulty using a DT9832 Series module Data Translation s Technical Support Department is
52. aching Modules to the Computer This section describes how to attach DT9836 Series modules to the host computer Notes Most computers have several USB ports that allow direct connection to USB devices If your application requires more DT9836 Series modules than you have USB ports for you can expand the number of USB devices attached to a single USB port by using expansion hubs For more information refer to page 36 You can unplug a module then plug it in again if you wish without causing damage This process is called hot swapping Your application may take a few seconds to recognize a module once it is plugged back in You must install the device driver before connecting your DT9836 Series module s to the host computer See Installing the Software on page 29 34 Setting Up and Installing the Module Connecting Directly to the USB Ports To connect a DT9836 Series module directly to a USB port on your computer do the following 1 Make sure that you have attached a power supply to the module 2 Attach one end of the USB cable to the USB port on the module 3 Attach the other end of the USB cable to one of the USB ports on the host computer as shown in Figure 3 The operating system automatically detects the USB module and starts the Found New Hardware wizard DT9836 Series Power Cable Module USB Ports E C rs Host Computer
53. ai ads IE CELER ED RE EAE 20 Gelting Started Procedure nuce coe Paden ee EE 21 15 Chapter 1 16 DT9836 Hardware Features The DT9836 Series is a family of high performance multifunction data acquisition modules for the USB Ver 2 0 or Ver 1 1 bus The key hardware features of the DT9836 Series modules are as follows Available either installed in a metal BNC connection box or as a board level OEM version that you can install in your own custom application Simultaneous operation of analog input analog output digital I O and counter timer subsystems Analog input subsystem 16 bit A D converters Throughput rate up to 225 kSamples s Either 12 or 6 single ended separate simultaneous analog input channels The number of channels provided depend on the model you purchase Input ranges of 10 and 5 V 17 or 23 location channel list You can read digital inputs the two 32 bit counters and the three 32 bit quadrature decoders using the A D subsystem and the A D clock This synchronizes digital counter and quadrature decoder inputs with the analog measurements The maximum sampling rate when using the channel list is 225 kSamples s Analog output subsystem Two 16 bit D A converters if your module includes D A converters Output rate up to 500 kSamples s Output range of 10 V The DACs are deglitched to prevent noise from interfering with the output signal Overview Output channel list Y
54. alog Output 1 21 Analog Output 1 Return 3 Reserved 22 Reserved 4 Reserved 23 Reserved 5 Digital Ground 24 Digital Ground 6 External DAC Clock 25 External DAC Trigger 7 External ADC Clock 26 External ADC Trigger 8 Counter 0 Clock 27 Digital Ground 9 Counter 0 Out 28 Counter 0 Gate 10 Counter 1 Clock 29 Digital Ground 11 Counter 1 Out 30 Counter 1 Gate 12 Quad Dec 0 C T 2 A 31 Digital Ground 13 Quad 0 C T 2 Index 32 Quad Dec 0 C T 2 B 14 Quad Dec 1 C T 3 A 33 Digital Ground 15 Quad 1 C T 3 Index 34 Quad Dec 1 C T 3 B 16 Quad Dec 2 C T 4 A 35 Digital Ground 17 Quad 2 C T 4 Index 36 Quad Dec 2 C T 4 B 18 Digital Ground 37 Digital Ground 19 No Connect Connector Pin Assignments EP353 Accessory Panel Connectors To attach an EP353 accessory panel to the OEM version of the DT9836 Series module plug the EP353 panel into connector J2 on the module as shown in Figure 26 EP353 Accessory Panel 26 Pin Connector J1 OEM Version of 37 Pin DT9836 Series Connector J2 Module E o Module TETTE J2 VEU PINE J3 Figure 26 Connecting the EP353 Accessory Panel to Connector J2 Connector J1 Figure 30 shows the orientation of the pins for connector J1 on the EP353 panel Pin 2 Pin 26 BEEN OOOOOOOOOOO00 Pin 1 Pin 25 Figure 27 Orientation of the Pins for Connectors J1 on the EP353 Panel 187 Appendix A 188 You can use connector J1 and an AC1315 cable to atta
55. alue is output to the specified channel DACO or DAC1 using a gain of 1 Ng For the DOUT subsystem the value is output to the 16 bit digital Release the subsystem using output port olDaReleaseDASS i Release the driver and terminate the session using olDaTerminate 126 Programming Flowcharts Continuous A D Operations Initialize the device driver and get the device handle with olDalnitialize Get a handle to the A D subsystem with oIDaGetDASS i Set the data flow using Specify OL DF CONTINUOUS the olDaSetDataFlow default value i Set up the analog input channel gain list see page 149 v Set up the clocks and triggers see page 150 v C Go to the next page S D 127 Chapter 8 Continuous A D Operations cont Continued from previous page Set up buffering see page 151 After you configure the subsystem you can use olDaGetClockFrequency to return the Configure the subsystem using actual frequency of the internal clock you olDaConfig can use olDaGetRetriggerFrequency to return the actual frequency of the internal Vv retrigger clock Start the operation with olDaStart Vv Deal with messages and buffers see page 153 Stop the operation see page 158 v Can up the operation see page D 128 Programming Flowcharts Continuous D A Op
56. an up down counting operation on counter timer 0 The counter keeps track of the number of rising edges that occur on the Counter 0 Clock input The counter increments when the Counter 0 Gate signal is high and decrements when the Counter 0 Gate signal is low Counter 0 Gate 28 Up Down Counter 0 Clock Signal gt z Source u 5 d Z Digital Ground D sub Pins Figure 13 Connecting Counter Timer Signals to the D sub Pins for an Up Down Counting Operation 53 Chapter 4 Frequency Measurement One way to measure frequency is to use the same wiring as a standard event counting application that does not use a gate see Figure 12 on page 52 and then call the ol DaMeasureFrequency function to determine the duration of the frequency measurement The frequency of the Counter 0 Clock signal is the number of counts divided by the duration of the oIDaMeasureFrequency function If you need more accuracy than the olDaMeasureFrequency function provides you can connect a pulse of a known duration such as a one shot output of counter timer 1 to the Counter 0 Gate input Figure 14 shows how to connect counter timer signals to the CT Enc In Analog Output Clk Trig D sub pins In this case the frequency of the Counter 0 clock input is the number of counts divided by the period of the Counter 0 Gate input signal Counter 1 Out p 11 Counter 0 Gat P
57. aneously started on the start list using olDaPutDassToSSList Prestart the subsystems on the simultaneous start list with olDaSimultaneousPreStart Start the subsystems on the simultaneous start list with olDaSimultaneousStart SS C Go to the next page See the previous flow diagrams in this chapter note that you cannot perform single value operations simultaneously 147 Chapter 8 Simultaneous Operations cont Continued from previous page Deal with messages see page 153 for analog input operations see page 156 for analog output operations y Stop the operation see page 158 y Clean up the operation see page 159 148 Programming Flowcharts Set Up Channel List and Channel Parameters Use to specify the size of the analog input or analog output 4 olDaSetChannelListSize channel list gain list synchronous digital I O list and channel inhibit lists if applicable the default is 1 For the A D subsystem channels 0 to 5 or channels 0 to 11 are available You can enter the digital input port as channel 6 or 12 to achieve continuous digital input You can also enter one or more C T channels as channels 7 to 16 or channels 13 to 22 If you are using an analog input channel as the threshold trigger specify the analog input channel used as entry 0 the default y olDaSetChannelListEntry
58. apter 10 Calibration Leere 167 Using the Calibration Utility 00 169 Calibrating the Analog Input Subsystem 170 Connecting a Precision Voltage Source 170 Using the Auto Calibration Procedure 170 Using the Manual Calibration Procedure 171 Contents 10 Calibrating the Analog Output Subsystem 173 Appendix A Connector Pin Assignments 175 OEM Version Connectors 000 eee eee eee eee ee 176 OEM J2 Connector 0 0 02 cece eee eens 177 OEM J3 Connector 00 000 ae eee eee ee 179 OEM Wiring Methods 0 00008 181 OEM TB1 Connector 00 0 c eee eee eee 182 BNC Box Connectors sseseeeeeee eee 183 Digital I O Connector 0 0 00 cece eee eee 183 CT Enc In Analog Out Clk Trig Connector 185 EP353 Accessory Panel Connectors sssuses 187 Connector 1 cepere beet ees 187 Connector 2 bc Rex RR rr EX RE AXE EN EP 189 EP356 Accessory Panel Connectors sssueuu 191 Connector Jl ee tree eth erred 192 Connector 2 2i ert RR ERE Ee ER Y REA 193 EP355 Screw Terminal Assignments suus 195 Appendix B Ground Power and Isolation 197 Secondary Power Connector sss 198 Ground Power and Isolation Connections 199 Appendix C Specifications
59. are to accept commands Click Next and or Finish again If the power supply and module are attached correctly the LED turns green Repeat these steps until you have attached the number of expansion hubs up to five and modules up to four per hub that you require Refer to Figure 4 The operating system automatically detects the USB devices as they are installed Setting Up and Installing the Module DT9836 Series Module Host Computer ccr USB Cable OH oO Power Supply a S Expansion T Power Supply for Module USB Cables U DT9836 Series y EY Module _ USB Cable H for Hub i J Y Power Supply for Hub DT9836 Series DT9836 Series Module Module USB Cables Figure 4 Attaching Multiple Modules Using Expansion Hubs 37 Chapter 3 38 Configuring the DT9836 Series Device Driver To configure the device driver for the DT9836 Series module do the following 1 Ifyou have not already done so power up the host computer and all peripherals 2 From the Windows Start menu select Settings Control Panel 3 From the Control Panel double click Open Layers Control Panel The Data Acquisition Control Panel dialog box appears 4 Click the DT9836 Series module that you want to configure and then click Advanced The Configurable Board Options dialog box appears 5 Ifrequired select the digital input l
60. been tested and found to comply with CISPR EN55022 Class A and EN50082 1 CE requirements and also with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Changes or modifications to this equipment not expressly approved by Data Translation could void your authority to operate the equipment under Part 15 of the FCC Rules Note This product was verified to meet FCC requirements under test conditions that included use of shielded cables and connectors between system components It is important that you use shielded cables and connectors to reduce the possibility of causing interference to radio television and other electronic devices Canadian Department of Communications Statement This digital apparatus does not exceed the Class A limits for radio noise emissions from digital apparatus set out in the Radio Interference Regulations of the Canadian Department of Communications Le pr sen
61. ch a 5B Series signal conditioning backplane to the EP353 accessory panel Table 8 lists the pin assignments for connector J1 on the EP353 accessory panel Table 8 EP353 Connector J1 Pin Assignments J1 Pin J1 Pin Assignment Signal Description Assignment Signal Description 1 Analog In 0 2 Analog In 6 3 Analog Ground 4 Analog In 7 5 Analog In 1 6 Analog Ground 7 Analog In 2 8 Analog In 8 9 Analog Ground 10 Analog In 9 11 Analog In 3 12 Analog Ground 13 Analog In 4 14 Analog In 10 15 Analog Ground 16 Analog In 11 17 Analog In 5 18 Analog Ground 19 Reserved 20 Reserved 21 Analog Ground 22 Reserved 23 Reserved 24 Analog Ground 25 Reserved 26 Reserved a Reserved on DT9836 6 Series modules Connector Pin Assignments Connector J2 Use EP353 connector J2 to attach analog input signals to the EP353 accessory panel Figure 28 shows the orientation of the pins for connector J2 on the EP353 panel Pin 1 Pin 19 OOOOOOOOOOOOOOOOO0 OOOOOOOOOOOOOOOOO0 Pin 20 Pin 37 Figure 28 Orientation of the Pins for Connectors J2 on the EP353 Panel You can access the pins on connector J2 either by using the EP360 cable and STP37 screw terminal panel available from Data Translation or by building your own cable panel Refer to Appendix C for information about the required mating connectors Table 9 lists the pin assignments for connector J2 on the EP353 access
62. channel to the channel list Note that by default channel 0 is included in the channel list 6 Click Config from the Toolbar 7 Inthe Config dialog select ChannelType and then select Single Ended 8 Inthe Config dialog select Range and then select Bipolar 9 Click OK to close the dialog box 10 From the Scope view double click the input range of the channel to change the input range of the module 10 V or 5 V The default is 10 V The display changes to reflect the selected range for all the analog input channels on the module 11 In the Trigger box select Auto to acquire data continuously from the specified channels or Manual to acquire a burst of data from the specified channels Verifying the Operation of a Module 12 Click Start from the Toolbar to start the continuous analog input operation The application displays the values acquired from each channel in a unique color on the oscilloscope view 13 Click Stop from the Toolbar to stop the operation Testing Single Value Digital Input To verify that the module can read a single digital input value do the following 1 Connect a digital input to digital input line 0 on the DT9836 Series module Refer to page 50 for information about how to connect a digital input 2 Inthe Quick Data Acq application choose Digital Input from the Acquisition menu 3 Select the appropriate DT9836 Series module from the Board list 5 box 4 Click Get
63. channels analog input 74 analog output 84 N number of differential channels 115 DMA channels 112 extra clocks 118 extra triggers 117 filters 116 gains 114 I O channels 115 resolutions 116 scans per trigger 113 single ended channels 115 voltage ranges 116 Nyquist Theorem 77 O OEM version connector J2 pin assignments 177 connector J3 pin assignments 179 connector TB1 pin assignments 182 OLDA_WM_BUFFER_ DONE 155 OLDA_WM_BUFFER_DONE 154 157 OLDA_WM_BUFFER_REUSED 153 156 OLDA_WM_EVENT_DONE 133 OLDA_WM_IO_COMPLETE 157 OLDA_WM_OVERRUN 153 OLDA_WM_QUEUE_DONE 153 156 OLDA_WM_QUEUE_STOPPED 153 156 OLDA_WM_TRIGGER_ERROR 153 156 OLDA_WM_UNDERRUN 156 olDaAbort 158 olDaConfig in continuous A D operations 128 in continuous D A operations 130 131 134 in continuous digital input operations 132 in event counting operations 135 137 141 145 in frequency measurement operations 140 in pulse output operations 144 in single value operations 125 olDaFlushBuffers 159 olDaFlushFromBufferInprocess 155 olDaGetBuffer 154 157 159 olDaGetDASS in continuous A D operations 127 in continuous D A operations 129 131 134 in continuous digital input operations 132 in event counting operations 135 137 141 145 in frequency measurement operations 139 in pulse output operations 143 in single value operations 125 Index olDaGetQueueSize 155 159 olDaGetSingleValue 126 olDaGetSSCaps 110 olDaGetSSCapsEx 110 olDaGetSSLi
64. cify a channel gain list clock source trigger source scan mode buffer and buffer wrap mode using software Continuous scan mode is supported This mode is described in the following subsections Using software you can stop a scan by performing either an orderly stop or an abrupt stop In an orderly stop the module finishes acquiring the current buffer stops all subsequent acquisition and transfers the acquired data to host memory any subsequent triggers are ignored In an abrupt stop the module stops acquiring samples immediately the current buffer is not completely filled it is returned to the application only partially filled and any subsequent triggers are ignored Principles of Operation Continuous Scan Mode Use continuous scan mode if you want to accurately control the period between successive simultaneous conversions of all channels in a channel gain list When it detects an initial trigger the module simultaneously samples all of the input channels including the digital inputs counter timers and quadrature decoder counts and converts the analog inputs If the channel is included in the channel gain list the sampled data is placed in the allocated buffer s and the operation continues until the allocated buffers are filled or until you stop the operation Refer to page 81 for more information about buffers The conversion rate is determined by the frequency of the input sample clock refer to page 77 for
65. clock 77 external C T clock 95 external DAC clock 86 internal A D clock 77 118 150 internal A D sample clock 118 Index internal C T clock 95 118 internal DAC clock 86 internal retrigger clock 113 output pulse 102 frequency measurement 54 67 100 how to perform 139 G gain analog output 85 number of 114 gap free data 112 gate type 96 135 143 high edge 119 high level 119 internal 119 low edge 120 low level 119 generating pulses 102 103 104 ground 199 H hardware features 16 help online 61 high edge gate type 119 high level gate type 119 hot swapping 34 j inprocess buffers 112 155 input channels 73 ranges 76 resolution 73 sample clock sources 77 input configuration single ended analog 48 installing the Quick Data Acq application 61 installing the software 29 internal clock 95 118 135 137 139 141 143 150 gate type 119 retrigger 113 interrupt on change operations 92 interrupts 121 IParam 133 isolation 199 J J2 connector pin assignments EP356 47 OEM version 177 J3 connector pin assignments OEM version 179 L LabVIEW 20 LED 35 36 lines digital I O 91 LongtoFreq macro 140 low edge gate type 120 low level gate type 119 M macro 140 measuring frequency 100 217 Index 218 measuring pulses 101 messages dealing with for A D operations 153 dealing with for D A operations 156 error 153 156 multiple buffer wrap mode 112 151 152 multiple
66. d drop test and measurement applications for Data Translation data acquisition devices without programming DataAcq SDK User s Manual UM 18326 For programmers who are developing their own application programs using the Microsoft C compiler this manual describes how to use the DT Open Layers DataAcq SDK to access the capabilities of Data Translation data acquisition devices DTx EZ Getting Started Manual UM 15428 This manual describes how to use the ActiveX controls provided in DTx EZ to access the capabilities of Data Translation data acquisition devices in Microsoft Visual Basic or Visual C DT LV Link Getting Started Manual UM 15790 This manual describes how to use DT LV Link with the LabVIEW graphical programming language to access the capabilities of Data Translation data acquisition devices Microsoft Windows 2000 or Windows XP documentation USB web site http ww w usb org Where To Get Help 14 Should you run into problems installing or using a DT9836 Series module the Data Translation Technical Support Department is available to provide technical assistance Refer to Chapter 9 for more information If you are outside the United States or Canada call your local distributor whose number is listed on our web site www datatranslation com Overview DT9836 Hardware Features 0 0 ee ee eee eee eee 16 Supported Sofware secs cig ta cite ee de wee wage dees 19 JRDUGSSDEIGE Lio ce pada bh
67. d on DT9836 6 0 OEM DT9836 6 0 BNC DT9836 12 0 OEM and DT9836 12 0 BNC modules Connector Pin Assignments EP355 Screw Terminal Assignments The EP355 screw terminal panel is used with the OEM version of the DT9836 Series module on connector J3 of the module The screw terminal assignments correspond to the pin assignments on the J3 connector on the OEM version of the DT9836 Series module itself Refer to Table 4 on page 179 using the pin numbers to reference the screw terminals on the EP355 195 Appendix A 196 Ground Power and Isolation Secondary Power Connector 0 lsescerseteee entes 198 Ground Power and Isolation Connections 199 197 Appendix B Secondary Power Connector The OEM version of the DT9836 Series module provides a secondary power connector which is useful for embedded applications The location of the connector is shown in Figure 31 Secondary Power Connector TB1 Primary J Power Co O EENNNESS SH Connector 321 e OEM Version of LED NN DT9836 Series Module USB Connector O Figure 31 Secondary Power Connector The pin assignments for the secondary power connector TB1 are as follows e Pin1 45V Pin2 Ground e Pin 3 Shield chassis ground 198 Ground Power and Isolation Ground Power and Isolation Connections Figure 32 illustrates how ground power and isolation
68. d peripherals 2 Ensure that you installed the Quick Data Acq application software from the Data Acquisition OMNI CD using the instructions starting on page 29 3 Select Quick Data Acq from the Data Translation Inc Quick Data Acq program group 5 Note The Quick Data Acq application lets you verify basic operations on the module however it may not support all of the module s features For information about each of the supported features use the online help for the Quick Data Acq application by pressing F1 from any view or selecting the Help menu or refer to the DT9836 Series User s Manual 61 Chapter 5 Testing Single Value Analog Input To verify that the module can read a single analog input value do the following 1 Connect a voltage source such as a function generator to analog input channel 0 on the DT9836 Series module Refer to page 48 for an example of how to connect an analog input 2 Inthe Quick Data Acq application choose Single Analog Input from the Acquisition menu 3 Select the appropriate DT9836 Series module from the Board list box 4 Inthe Channel list box select analog input channel 0 5 Inthe Range list box select the range for the channel The default is 10 V 6 Select Single Ended 7 Click Get to acquire a single value from analog input channel 0 The application displays the value on the screen in both text and graphical form 62 Verifying the Operation of a
69. d use connector J2 of the EP356 to attach analog output counter timer trigger and clock signals Refer to page 191 for more information about attaching the EP356 to the OEM version of the DT9836 Series module and for information about the connector pin assignments 181 Appendix A OEM TB1 Connector Table 5 lists the pin assignments for connector TB1 on the OEM version of the DT9836 Series modules Table 5 Pin Assignments for Connector TB1 on the OEM Version of Module Pin rem Signal Description 1 5 V 2 Ground 3 Shield Chassis Ground 182 Connector Pin Assignments BNC Box Connectors This section describes the pin assignments for the D sub connectors on the BNC connection box Note that the BNC connectors are labeled on the box Digital I O Connector Figure 24 shows the orientation of the pins on the Digital In Out connector on the BNC connection box Pin 1 iO Pin 20 0 OOOOOOOOOOOOOOO0 OOOOOOOOOOOOOOCO f Pin 19 Pin 37 Figure 24 Orientation of the Digital In Out Connector on the BNC Connection Box Table 6 lists the pin assignments for the Digital In Out connector on the BNC connection box 183 Appendix A Table 6 BNC Connection Box Digital In Out Connector Pin Assignments UE Signal Description UM Signal Description 1 Digital Input O 20 Digital Output 0 2 Digital Input 1 21 Digi
70. ding an OLDA WM OVERRUN ERROR message to the application program This message indicates that data buffers are not being sent from the host to the module fast enough and so the A D converter ran out of buffers To avoid this error try one or more of the following Reduce the clock rate of the A D Increase the size of the buffers Increase the number of buffers Close any other applications that are running Runthe program on a faster computer If one of these error conditions occurs the module stops acquiring and transferring data to the host computer 82 Principles of Operation Analog Output Features An extra analog output D A subsystem is provided on these modules including those without user D A connectors The highest numbered D A subsystem is dedicated to analog threshold triggering only refer to page 80 for more information on analog threshold triggering This section describes the following features of analog output operations Output resolution described below Analog output channels described below e Output ranges and gains described on page 85 Output triggers described on page 85 e Output clocks described on page 86 e Data format and transfer described on page 89 Error conditions described on page 90 Output Resolution Input resolution is fixed at 16 bits you cannot specify the resolution in software Analog Output Channels Some DT9836 Series modules support two DC l
71. e DT9836 Series module supports the following trigger sources Software trigger A software trigger event occurs when you start the analog input operation the computer issues a write to the module to begin conversions Using software specify the trigger source as a software trigger External digital TTL trigger An external digital TTL trigger event occurs when the DT9836 Series module detects a transition high to low or low to high on the AD Trig BNC connector on the module Using software specify the trigger source as a rising edge external digital trigger external or a falling edge external digital trigger extra Analog threshold trigger An analog threshold trigger event occurs when the signal on the first channel in the analog input Principles of Operation channel gain list rises above low to high transition a programmable threshold level Using software specify the trigger source as a positive threshold trigger threshpos You must use analog input channel 0 as the analog trigger The analog trigger channel must be the first entry in the analog input channel gain list You specify the threshold level in the olDaPutSingleValue function using D A subsystem 1 Specify a value between 0 and 255 where 0 equals 0 V and 255 equals 10 V Data Format and Transfer DT9836 Series modules use offset binary data encoding where 0000 represents negative full scale and FFFFh represents positive full scale Use sof
72. ecify the resolution in software Analog Input Channels You can connect the analog input channels in single ended mode In this mode the source of the input should be close to the module and all the input signals are referred to the same common ground The BNC connection box is shipped in a single ended channel configuration 73 Chapter 6 74 Note To maintain simultaneous operation all analog input connections must have the same lead lengths Do not use the STP37 screw terminal panel with the analog input subsystem The DT9836 Series modules can acquire data from a single analog input channel or from a group of analog input channels Analog input channels are numbered 0 to 11 or 0 to 5 The following subsections describe how to specify the channels Specifying a Single Analog Input Channel The simplest way to acquire data from a single analog input channel is to specify the channel for a single value analog input operation using software refer to page 78 for more information about single value operations You can also specify a single channel using the analog input channel gain list described in the next section Specifying One or More Analog Input Channels You can read data from one or more analog input channels using an analog input channel gain list Because these modules feature simultaneous sampling the order of the channels in the channel gain list does not matter You cannot specify the same channel m
73. ection Preparing to Use a Module Installing the Software To install the software do the following 1 Insert the Data Acquisition OMNI CD into your CD ROM drive Typically the CD runs automatically If the CD does not run automatically select Run from the Windows Start menu Enter x setup exe where x is the letter of your CD ROM drive in the Run dialog box or use the Browse button to locate setup exe and then click OK 2 From the Data Acquisition Software setup program click Install Drivers A list of items that you are about to install appears 3 Click Install now The DT Open Layers Data Acquisition software wizard appears 4 Click Next The installer prompts you for the destination location 5 Either change the directory path and or name using Browse or accept the default directory C Program Files Data Translation and then click Next The installer prompts you to begin file installation 6 Click Next The installer copies the files to the destination directory 7 Click Finish The DT Data Acquisition Software setup program reappears 8 Click Quit Installer Once you have installed the DT9836 Series software you can view the DT9836 Series documentation as described in the next section 29 Chapter 2 30 Viewing the Documentation Online Note To view the documentation you must have Adobe Acrobat Reader 5 0 or greater installed on your system Acrobat Reader is provided on t
74. ecycle the buffer so that the subsystem can fill it again OL WRP NONE or OL WRP MULTIPLE mode only See the next page if you want to transfer data from an inprocess buffer Programming Flowcharts Transfer Data from an Inprocess Buffer FN olDaGetQueueSize olDmAllocBuffer olDmCallocBuffer olDmMallocBuffer olDaFlushFromBufferlnprocess Deal with messages and buffers H Use to determine the number of buffers on the inprocess queue at least one must exist Use to allocate a buffer of the specified number of samples Use to copy the data from the inprocess buffer to the allocated buffer for immediate processing Note that the data from the module is transferred to the host in blocks of at least 512 bytes If the application calls olDaFlushFromBufferlnprocess before the module has transferred a block to the host the buffer on the done queue will contain O samples Your application program must deal with these situations when flushing an inprocess buffer The buffer into which inprocess data was copied was put onto the done queue by the driver resulting in an OLDA_WM_BUFFER_DONE message See page 153 for more information When the inprocess buffer has been filled it too is placed on the done queue and an OLDA_WM_BUFFER_DONE message is posted However the number of valid samples is equal to the queue s maximum samples minus what was copied out 155 Chapter 8
75. efore wiring signals This section provides recommendations and information about wiring signals to the BNC connection box Note If you are using the D sub connectors on the BNC box or the OEM version of the DT9836 Series module use this chapter for conceptual information and then refer to Appendix A for connector pin assignments and accessory panel information Wiring Recommendations Keep the following recommendations in mind when wiring signals to a BNC connection box Separate power and signal lines by using physically different wiring paths or conduits To avoid noise do not locate the box and cabling next to sources that produce high electromagnetic fields such as large electric motors power lines solenoids and electric arcs unless the signals are enclosed in a mumetal shield Prevent electrostatic discharge to the I O while the box is operational Connect all unused analog input channels to analog ground 41 Chapter 4 Wiring to the BNC Box The BNC connection box contains both BNC connectors and 37 pin D sub connectors An example of a BNC connection box is shown in Figure 5 DAC Cho DAC Clock Q 9 o O MB DAC Chi AD Clock Q S lt 6 ME AD Ch6 ADCh7 ADCh8 ADCh9 AD Ch10 AD Ch11 DAC Trig a E o ADChO ADChi ADCh2 ADCh3 ADCh4 ADChs5 AD Trig 9
76. encies after sampling External A D clock An external A D clock is useful when you want to pace acquisitions at rates not available with the internal A D clock or when you want to pace at uneven intervals Connect an external A D clock to the AD Clock BNC connector on the DT9836 Series module Conversions start on the falling edge of the external A D clock input signal Using software specify the clock source as external The clock frequency is always equal to the frequency of the external A D sample clock input signal that you connect to the module 77 Chapter 6 78 Note If you specify the digital input port and or the counter timer or quadrature decoder channels in the channel gain list the input sample clock internal or external also paces the acquisition of the digital input port and or counter timer channels Analog Input Conversion Modes DT9836 Series modules support the following conversion modes Single value operations are the simplest to use Using software you specify the analog input channel The module acquires the data from the specified channel and returns the data immediately For a single value operation you cannot specify a clock source trigger source scan mode or buffer Single value operations stop automatically when finished you cannot stop a single value operation Continuous Scan mode takes full advantage of the capabilities of the DT9836 Series modules For a scan you can spe
77. erations Initialize the device driver and get the device handle with olDalnitialize Get a handle to D A subsystem 0 with oIDaGetDASS Specify OL DF CONTINUOUS with Continuous mode is the default setting olDaSetDataFlow i Set up the output channel list see page 149 i Set up the clocks and triggers see page 150 i Go to the next page 129 Chapter 8 Continuous D A Operations cont Continued from previous page f N S A v Set up buffering see page 152 v Configure the subsystem using olDaConfig i Start the operation with olDaStart t Deal with messages and buffers see page 153 v Stop the operation see page 158 v Clean up the operation see page 159 Ne p 130 Programming Flowcharts Continuous Digital Input Operations Initialize the device driver and get the device handle with olDalnitialize Get a handle to A D subsystem 0 with oIDaGetDASS Set up the analog input Specify channel 6 or 12 as the digital channel gain list see page 149 input port depending on how many analog input channels your board i supports specify a gain of 1 Set up the clocks and triggers see page 150 i Set up buffering see page 151 y Configure the subsystem using olDaConfig y Start the operation with
78. ering Using main window to Yes Use to specify the window in handle gt olDaSetWndHandle which to post messages messages No Use to specify the buffer wrap mode OL_WRP_NONE if buffers are not reused olDaSetWrapMode OL_WRP_ MULTIPLE if all buffers are continuously reused or OL WRP SINGLE if one buffer is continuously reused v Use to allocate a buffer of the specified number of olDmAllocBuffer samples each sample is 2 bytes v olDaPutBuffer Use to put the buffer on the ready queue Allocate more buffers A minimum of three buffers is recommended 151 Chapter 8 152 Set Up D A Buffering Using main window to Yes olDaSetWndHandle Use to specify the window in which to post messages handle messages v olDaSetWrapMode v olDmAllocBuffer v Fill the buffer v olDmSetValidSamples v olDaPutBuffer Allocate more buffers Use to specify the buffer wrap mode OL_WRP_NONE if buffers are not reused OL_WRP_ MULTIPLE if all buffers are continuously reused or OL_WRP_SINGLE if one buffer is continuously reused Use to allocate a buffer of the specified number of samples each sample is 2 bytes Fill the buffers with the data needed by your output channel list Refer to page 84 for more information Use to spec
79. escription Assignment Signal Description 1 5 V Analog 0 5 amps 35 Digital Ground 2 Reserved 36 Analog Ground 3 Analog Ground 37 Analog Ground 4 Reserved 38 Reserved 5 Analog Ground 39 Analog Ground 6 Reserved 40 Reserved 7 Analog Ground 41 Analog Ground 8 Reserved 42 Reserved 9 Analog Ground 43 Analog Ground 10 Reserved 44 Reserved 11 Analog Ground 45 Analog Ground 12 Reserved 46 Reserved 13 Analog Ground 47 Analog Ground 14 Reserved 48 Reserved 15 Analog Ground 49 Analog Ground 16 Reserved 50 Reserved 17 Analog Ground 51 Analog Ground 18 Reserved 52 Reserved 177 Appendix A 178 Table 3 Pin Assignments for Connector J2 on the OEM Version of Module cont J2 Pin J2 Pin Assignment Signal Description Assignment Signal Description 19 Analog Ground 53 Analog Ground 20 Reserved 54 Reserved 21 Analog Ground 55 Analog Ground 22 Reserved 56 Reserved 23 Analog Ground 57 Analog Ground 24 Analog In 5 58 Analog In 11 25 Analog Ground 59 Analog Ground 26 Analog In 4 60 Analog In 10 27 Analog Ground 61 Analog Ground 28 Analog In 3 62 Analog In 92 29 Analog Ground 63 Analog Ground 30 Analog In 2 64 Analog In 8 31 Analog Ground 65 Analog Ground 32 Analog In 1 66 Analog In 7 33 Analog Ground 67 Analog Ground 34 Analog In 0 68 Analog In 62 a Reserved on DT9836 6 series modules Connector Pin Assignments OEM J3 Connector
80. evel analog output channels DACO and DAC1 Refer to Chapter 4 for information about how to wire analog output signals to the module The DACs are deglitched to prevent noise from interfering with the output signal They power up to a value of 0 V 10 mV Unplugging the module resets the DACS to 0 V 83 Chapter 6 The DT9836 Series modules can output data to a single DAC or sequentially to one or more DACs and or the digital output port The following subsections describe how to specify the DACs port Specifying a Single Analog Output Channel The simplest way to output data to a single DAC is to specify the channel for a single value analog output operation using software refer to page 86 for more information about single value operations You can also specify a single DAC using the output channel list described in the next section Specifying Multiple Analog Output Channels and or the Digital Output Port You can output data to one or more DACs and or the digital output port using the output channel list This feature is particularly useful when you want to correlate the timing of analog and digital output events Using software specify the data flow mode as continuous for the D A subsystem described on page 86 and specify the output channels you want to update where 0 is DACO 1 is DAC1 and 2 is the digital output port You can enter a maximum of 3 entries in the output channel list and the channels must be in order
81. event counting and rate generation modes refer to page 98 for more information about these modes Logic high level external gate input Enables a counter timer operation when the Counter n Gate signal is high and disables a counter timer operation when the Counter n Gate signal is low Note that this gate type is used for event counting and rate generation modes refer to page 98 for more information about these modes Falling edge external gate input Enables a counter timer operation when a high to low transition is detected on the Counter n Gate signal In software this is called a low edge gate type Note that this gate type is used for edge to edge measurement one shot and repetitive one shot mode refer to page 98 for more information about these modes Rising edge external gate input Enables a counter timer operation when a low to high transition is detected on the Counter n Gate signal In software this is called a high edge gate type Note that this gate type is used for edge to edge Principles of Operation measurement one shot and repetitive one shot mode refer to page 98 for more information about these modes Specify the gate type in software Pulse Output Types and Duty Cycles Note This section does not apply to quadrature decoders The DT9836 Series modules can output the following types of pulses from each counter timer High to low transitions The low portion of the total pulse
82. g output subsystem 173 running the calibration utility 169 calibration 121 CGL see channel gain list 114 channel type differential 115 single ended 115 channel gain list 149 depth 114 for analog input channels 74 for counter timers 75 for digital input port 75 inhibiting 114 random 114 sequential 114 zero start 114 channels analog input 73 analog output 83 counter timer 93 digital I O 91 number of 115 setting up parameters for 149 cleaning up an operation 159 clock divider 135 137 139 143 clock sources analog input 77 analog output 86 counter timer 95 clocks base frequency 118 clock divider 135 137 139 143 external 118 150 frequency 150 internal 118 135 137 139 141 143 150 maximum external clock divider 118 maximum throughput 118 minimum external clock divider 118 minimum throughput 118 number of extra 118 setting parameters for analog input operations 150 simultaneous 118 specifications 209 connecting signals analog outputs 49 digital inputs and outputs 50 edge to edge measurement 56 event counting 51 frequency measurement 54 period measurement 55 pulse output 57 pulse width measurement 55 single ended analog inputs 48 up down counting 53 Index connecting to the host computer 34 connector J2 pin assignments EP356 47 OEM version 177 connector J3 pin assignments OEM version 179 connector pin assignments BNC connection box 183 EP353 187 EP356 191 192 connector TB1 pin assignments OEM
83. he Data Acquisition OMNI CD If you install Acrobat Reader from this CD make sure that you open Acrobat Reader and accept the license agreement before viewing the documentation You can access the DT9836 Series documentation from the Hardware Documentation program group From the Windows Start menu click Programs Data Translation Inc Hardware Documentation and then select the appropriate document The following may be helpful when using Adobe Acrobat Reader To navigate to a specific section of the document click a heading from the table of contents on the left side of the document Within the document click the text shown in blue to jump to the appropriate reference the pointer changes from a hand to an index finger To go back to the page from which the jump was made click the right mouse button and Go Back or from the main menu click Document and then Go Back To print the document from the main menu click File and then Print To increase or decrease the size of the displayed document from the main menu click View and then Zoom By default Acrobat Reader smoothes text and monochrome images sometimes resulting in blurry images If you wish you can turn smoothing off by clicking File and then Preferences General and unchecking Smooth Text and Images Setting Up and Installing the Module Applying Power to the Module 000 33 Attaching Modules to the Computer as ross rro te
84. he current voltage reading for this channel is displayed in the A D Value window b Adjust the offset by entering values between 0 and 255 in the Offset edit box or by clicking the up down buttons until the A D Value is 0 000 V 2 Adjustthe gain as follows a Verify that 49 375 V is applied to AD Ch0 and that A D Channel Select is set to Channel 0 171 Chapter 10 The current voltage reading for this channel is displayed in the A D Value window b Adjust the gain by entering values between 0 and 255 in the Gain edit box or by clicking the up down buttons until the A D Value is 9 3750 V Note At any time you can click Restore Factory Settings to reset the A D calibration values to their original factory settings This process will undo any auto or manual calibration settings Once you have finished this procedure continue with Calibrating the Analog Output Subsystem 172 Calibration Calibrating the Analog Output Subsystem This section describes how to use the DT9832 DT9836 Calibration Utility to calibrate the analog output subsystem of a DT9836 Series module To calibrate the analog output circuitry you need to connect an external precision voltmeter to analog output channels 0 and 1 of the DT9836 Series module Do the following to calibrate the analog output circuitry 1 Select the D A Calibration tab of the DT9832 DT9836 Calibration Utility 2 Connect an external precision volt
85. ibration Utility The main menu of the DT9832 DT9836 Calibration Utility appears 3 Select the module to calibrate and then click OK Once the DT9832 DT9836 Calibration Utility is running you can calibrate the analog input circuitry either automatically or manually described on page 170 or the analog output circuitry of the DT9836 Series module described on page 173 169 Chapter 10 Calibrating the Analog Input Subsystem This section describes how to use the DT9832 DT9836 Calibration Utility to calibrate the analog input subsystem of a DT9836 Series module The DT9836 Series module has separate calibration for each A D input channel You can choose to calibrate either an individual channel or all channels on the board Connecting a Precision Voltage Source To calibrate the analog input circuitry you need to connect an external 9 3750 V precision voltage source to the DT9836 Series module Connect the precision voltage source to the first channel you want to calibrate for example Analog In 0 AD Ch0 Using the Auto Calibration Procedure Auto calibration is the easiest to use and is the recommended calibration method To auto calibrate the analog input subsystem do the following 1 Select the A D Calibration tab of the DT9832 DT9836 Calibration Utility 2 Choose either a single channel or all channels from the Type of Calibration drop down list box in the Automatic Calibration area 3 Set
86. ify the valid number of data points in the buffer Use to put the buffer on the ready queue Programming Flowcharts Deal with A D Messages and Buffers Error returned Buffer reused message returned message returned Report the error Yes Increment a counter if desired Yes Report the condition a Go to the next page The most likely error messages include OLDA_WM_OVERRUN and OLDA_WM_TRIGGER_ERROR The buffer reused message is OLDA_WM_BUFFER_REUSED The queue done messages are OLDA_WM_QUEUE_DONE and OLDA_WM_QUEUE_STOPPED After reporting that the acquisition has stopped you can clean up the operation see page 159 153 Chapter 8 154 Deal with A D Messages and Buffers cont s Continued from previous page message returned No Wait for message Buffer done Yes Process The buffer done message is OLDA WM BUFFER DONE Use olDaGetBuffer to retrieve the buffer from the done queue and get a pointer to the buffer data olDaGetBuffer olDmGetValidSamples v Use olDmGetValidSamples to determine the number of samples in the buffer olDmCopyFromBuffer y Process the data buffer in your program 1 olDaPutBuffer y Return to page 153 Use olDaPutBuffer to r
87. iggering b Two general purpose counter timers and three quadrature decoders The tables in this chapter summarize the features available for use with the DataAcq SDK and the DT9836 Series modules The DataAcq SDK provides functions that return support information for specified subsystem capabilities at run time The first row in each table lists the subsystem types The first column in each table lists all possible subsystem capabilities A description of each capability is followed by the parameter used to describe that capability in the DataAcq SDK Note Blank fields represent unsupported options The DataAcq SDK uses the functions olDaGetSS Caps for those queries starting with OLSSC and olDaGetSSCapsEx for those queries starting with OLSSCE to return the supported subsystem capabilities for a device For more information refer to the description of these functions in the DataAcq SDK online help See the DataAcq User s Manual for information on launching this help file Supported Device Driver Capabilities Data Flow Table 6 DT9836 Series Data Flow Options DT9836 Series A D D A DIN DOUT C T Single Value Operation Support OLSSC_SUP_SINGLEVALUE Yes Yes Yes Yes Yes Continuous Operation Support OLSSC_SUP_CONTINUOUS Yes Yes Yes Yes Yes Continuous Operation until Trigger Event Support OLSSC SUP CONTINUOUS PRETRIG Continuous Operation before amp after Trigger Event OLSSC SUP CONTINUOUS ABOUTTRI
88. ine s that you want to use for interrupt on change operations When any of the selected lines changes state the module reads the entire 16 bit digital input value and generates an interrupt 6 Click OK 7 Ifyou want to rename the module click Edit Name enter a new name for the module and then click OK The name is used to identify the module in all subsequent applications 8 Repeat steps 4 to 7 for the other modules that you want to configure 9 When you are finished configuring the modules click Close Continue with the instructions on wiring in Chapter 4 starting on page 39 ELE Wiring Signals to the BNC Connection Box Preparing to Wir sienal amp ioc se E peer er DE RR RE 41 Connecting Analog Input Signals 006 48 Connecting Analog Output Signals 06 49 Connecting Digital I O Signals 000 50 Connecting Counter Timer Signals 006 51 39 Chapter 4 40 C Prepare to Use a Module see Chapter 2 starting on page 25 EN a Set Up and Install the Module see Chapter 3 starting on page 31 Wire Signals to the BNC Connection Box this chapter 1 Verify the Operation of the Module see Chapter 5 starting on page 59 Wiring Signals to the BNC Connection Box Preparing to Wire Signals CAUTION To avoid electrostatic sensitivity unplug your BNC connection box from the computer b
89. ing at higher clock frequencies increase your buffer size accordingly As a guideline size the buffers to hold one half second of data By this guideline BufferSize SampleRate NumberOfChannels 2 rounded up to the nearest multiple of 256 Specify one of the following buffer wrap modes in software e None Data is written from multiple output buffers continuously when no more buffers of data are available the operation stops If wrap mode is none the module guarantees gap free data e Single Data is written from a single output buffer continuously when all the data in the buffer is written the module returns to the first location of the buffer and continues writing data This process continues indefinitely until you stop it If wrap mode is single and the allocated output buffer is equal to or less than the size of the FIFO on the module the data is written once to the module The module recycles the data allowing you 89 Chapter 6 90 to output the same pattern continuously without any further CPU or USB bus activity Note If the size of your buffers is less than 128K and you stop the analog output operation the operation stops after the current buffer and the next buffer have been output Error Conditions The DT9836 Series module reports any underrun errors by sending an OLDA_WM_UNDERRUN_ERROR message to the application This message indicates that data buffers are not being sent from the h
90. ing olDaStart v Stop the operation see page 158 v Release each subsystem with olDaReleaseDASS v Release the device driver and terminate the session with olDaTerminate Specify OL CTMODE RATE for rate generation OL CTMODE ONESHOT for one shot or OL CTMODE ONESHOT RPT for repetitive one shot This step is not required for one shot mode Programming Flowcharts Quadrature Decoder Operations Initialize the device driver and get the device handle with olDalnitialize Y Get a handle to the C T subsystem with Use C T sub olDaGetDASS sysiemie mors v Set the clock source to OL CLK EXTERNAL using olDaSetClockSource Set up the quadrature decoder operation using olDaSetQuadDecoder Configure the subsystem using olDaConfig Start the operation using olDaStart 4 Go to the next page D 145 Chapter 8 C Continued from previous page b Read the events counted using olDaReadEvents Yes Get update of events total Stop the operation ssee page 158 i Clean up the subsystem see page 159 y Se 146 Programming Flowcharts Simultaneous Operations Configure the A D and D A subsystem that you want to run simultaneously v Allocate a simultaneous start list using olDaGetSSList v Put each subsystem to be simult
91. ing the appropriate pins on the CT Enc In Analog Output Clk Trig connector You can access the pins by building your own cable panel Refer to page 47 for connector pin assignments External DAC clock or trigger signal If your version of the DT9836 module supports analog output operations you can wire external clock trigger signals in one of the following ways Using the BNC connectors labelled DAC Clock for D A clock signals and DAC Trig for D A trigger signals Using the appropriate pins on the CT Enc In Analog Output Clk Trig connector You can access the pins by building your own cable panel Refer to page 47 for connector pin assignments The following sections describe how to wire signals using the BNC or D sub connectors 43 Chapter 4 Wiring Signals to the BNC Connectors To wire signals using the BNC connectors connect the appropriate BNC connector to the appropriate input output using a BNC cable The number of BNC connectors available on the box varies depending on the version of the box that you are using For example the DT9836 12 BNC version shown in Figure 5 above contains 18 BNC connectors 12 BNC connectors for single ended analog inputs two BNC connectors for analog outputs and four BNC connectors for external clocks and triggers As another example the DT9836 6 BNC version shown in Figure 6 contains 12 BNC connectors six BNC connectors for analog inputs two BNC connectors for analog ou
92. ising edges that occur on the Counter n Clock input over a specified duration Using software specify the counter timer mode as frequency measurement count or event counting count the clock source as external and the time over which to measure the frequency You can use the Windows timer which uses a resolution of 1 ms or if you need more accuracy than the Windows timer provides you can connect a pulse of a known duration such as a one shot output of another user counter to the Counter n Gate input signal If you use a known pulse use software to set up the counter timers as follows 1 Setup one of the counter timers for one shot mode specifying the clock source as internal the clock frequency the gate type that enables the operation as rising edge or falling edge the polarity of the output pulse as high to low transition or low to high transition the pulse width and the duty cycle of the output pulse Principles of Operation 2 Set up the counter timer that will measure the frequency for event counting mode specifying the type of clock pulses to count and the gate type this should match the pulse output type of the counter timer set up for one shot mode 3 Startboth counters pulses are not counted until the active period of the one shot pulse is generated 4 Read the number of pulses counted Allow enough time to ensure that the active period of the one shot occurred and that events have been cou
93. iver and terminate C olDaTerminate b the session 159 Chapter 8 160 Troubleshooting General Checkit uie eee rire hee de eee 162 Technical SUPPO ceris veda tenter ES Ue HERI erg 165 If Your Module Needs Factory Service soco ccor ceesre 166 161 Chapter 9 162 General Checklist Should you experience problems using a DT9836 Series module do the following 1 Read all the documentation provided for your product Make sure that you have added any Read This First information to your manual and that you have used this information Check the Data Acquisition OMNI CD for any README files and ensure that you have used the latest installation and configuration information available Check that your system meets the requirements stated in Chapter 2 Check that you have installed your hardware properly using the instructions in Chapter 3 Check that you have installed and configured the device driver properly using the instructions in Chapter 3 Check that you have wired your signals properly using the instructions in Chapter 4 Search the DT Knowledgebase in the Support section of the Data Translation web site at www datatranslation com for an answer to your problem If you still experience problems try using the information in Table 2 to isolate and solve the problem If you cannot identify the problem refer to page 165 Troubleshooting Table 2 Troubleshooting Problems Sy
94. l Chapter 10 Calibration describes how to calibrate the analog I O circuitry of the DT9836 Series modules Appendix A Connector Pin Assignments shows the pin assignments for the connectors and the screw terminal assignments for the screw terminals on the DT9836 Series modules Appendix B Ground Power and Isolation describes the electrical characteristics of the DT9836 Series module Appendix C Specifications lists the specifications of the DT9836 Series modules Anindex completes this manual Conventions Used in this Manual The following conventions are used in this manual Notes provide useful information or information that requires special emphasis cautions provide information to help you avoid losing data or damaging your equipment and warnings provide information to help you avoid catastrophic damage to yourself or your equipment tems that you select or type are shown in bold Related Information Refer to the following documents for more information on using the DT9836 Series modules Benefits of the Universal Serial Bus for Data Acquisition This white paper describes why USB is an attractive alternative for data acquisition It is available on the Data Translation web site www datatranslation com 13 About this Manual DT Measure Foundry Getting Started Manual UM 19298 and online help These documents describe how to use DT Measure Foundry to build drag an
95. l C T clock is useful when you want to pace counter timer operations at rates not available with the internal C T clock or if you want to pace at uneven intervals The frequency of the external C T clock can range up to 18 MHz Connect the external clock to the Counter n Clock input signal on the DT9836 Series module Counter timer operations start on the rising edge of the clock input signal Note You typically use the external C T clock the clock connected to the Counter n Clock input signal to measure frequency event counting or to measure the time interval between edges measure mode The external C T clock is not generally used for rate generation If you specify a counter timer in the analog input channel gain list the A D clock determines how often you want to read the counter value Refer to page 77 for more information about the A D clock 95 Chapter 6 96 Gate Types Note This section does not apply to quadrature decoders The edge or level of the Counter n Gate signal determines when a counter timer operation is enabled DT9836 Series modules provide the following gate types None A software command enables any counter timer operation immediately after execution Logic low level external gate input Enables a counter timer operation when the Counter n Gate signal is low and disables the counter timer operation when the Counter n Gate signal is high Note that this gate type is used for
96. l Input 4 57 Digital Output 4 24 Digital Input 3 58 Digital Output 3 25 Digital Input 2 59 Digital Output 2 26 Digital Input 1 60 Digital Output 1 27 Digital Input O 61 Digital Output 0 28 External ADC Clock 62 External ADC Trigger 29 External DAC Clock 63 External DAC Trigger 30 Digital Ground 64 Digital Ground 31 5 V 65 Digital Ground 32 Reserved 66 Reserved 33 Analog Out 12 67 Analog Out 1 Return 34 Analog Out 0 68 Analog Out 0 Return a Reserved on DT9836 6 0 OEM DT9836 6 0 BNC DT9836 12 0 OEM and DT9836 12 0 BNC modules Connector Pin Assignments OEM Wiring Methods You can connect signals directly through the J2 and J3 connectors on the OEM version of the DT9836 Series module or you can connect signals using the connectors and screw terminals on the following accessories e EP353 This accessory panel plugs into connector J2 of the OEM version of the DT9836 Series module It provides one 37 pin D sub connector for attaching analog input signals and one 26 pin connector for attaching a AC1315 cable 5B Series signal conditioning backplane Refer to page 187 for more information about attaching the EP353 to the OEM version of the DT9836 Series module and for information about the connector pin assignments e EP356 This accessory panel plugs into connector J3 of the OEM version of the DT9836 Series module It provides two 37 pin D sub connectors Use connector J1 of the EP356 to attach digital I O signals an
97. lease the device driver and terminate C the session with olDaTerminate 142 Programming Flowcharts Pulse Output Operations Initialize the device driver and get the Ne device handle with olDalnitialize i Specify the appropriate C T Get a handle to the C T subsystem with subsystem element The DT9836 Series olDaGetDASS supports two general non quadrature elements 0 1 Using an internal clock No Specify OL_CLK_EXTERNAL using olDaSetClockSource Specify the clock divider using olDaSetExternalClockDivider between 2 the default and 2 147 483 647 Specify OL_CLK_INTERNAL using olDaSetClockSource Specify a clock divider Specify the gate type using Specify OL_GATE_NONE for a software olDaSetGateType internal gate OL_GATE_HIGH_LEVEL for a high level gate ii OL_GATE_LOW_LEVEL for a low level gate OL_GATE_HIGH_EDGE for a high edge gate or OL GATE LOW EDGE for a low edge gate Go to the next page P m 143 Chapter 8 144 Pulse Output Operations cont E Continued from previous page i Specify the mode using olDaSetCTMode LA Specify the output pulse type using olDaSetPulseType pe Specify the duty cycle of the output pulse using olDaSetPulseWidth i Configure the subsystem using olDaConfig v Start the operation us
98. ls and or the Digital Output Port 84 Output Ranges and Gains ssssssssessssssee 85 Output TIpSetS ivo kver te eae RR ep S paras 85 Output Clocks eere RE Uer ipee tele wen betes 86 Output Conversion Modes sssssessssseee 86 Streaming Analog Output 000 87 Waveform Generation ssssss esses 88 Contents Data Format and Transfer 0000 eee eee 89 Error Conditions 00 00 cee cece cece 90 Digital 1 O Features ccc secte 91 Digital I O Eines ertet IER RT ERR RR edi 91 Operation Modes 6 0 6 ccc cence eee eee 92 Counter Timer Features 0 00 00 e cece eee eens 93 C T Channels eere e rete emere e e 93 C T Clock Sources n nuuanu nunnana 95 Gate Types scoop eth PES EEa e pg erdt dpa res 96 Pulse Output Types and Duty Cycles 97 Counter Timer Operation Modes ssuuses 98 Event Counting 2 0 6 cece ccc cece ees 99 Up Down Counting 6 eee 99 Frequency Measurement esses 100 Edge to Edge Measurement 00 101 Rate Generation 0 0 0 e cee eee eee eee 102 One Shot eem eee RA ee E RC EY 103 Repetitive One Shot ssssseelsseeeess 104 Quadrature Decoders 0 00 ccc cece eee 105 Chapter 7 Supported Device Driver Capabilities 109 Data Flow ees shee cds UR bI deo weed EA RUE 111 Buffering ous eem RR RR Rer E RE
99. matically when finished you cannot stop a single value operation Continuous analog output operations take full advantage of the capabilities of the DT9836 Series modules In this mode you can specify an output channel list clock source trigger source buffer and buffer wrap mode Two continuous analog output modes are supported streaming and waveform generation mode These modes are described in the following subsections Principles of Operation Note that in waveform mode each channel in the output channel list must write the same number of values use the same output clock refer to page 86 and use the same output trigger refer to page 85 Streaming Analog Output Use streaming analog output mode if you want to accurately control the period between conversions of individual channels in the output channel list refer to page 84 for information on specifying the output channel list Use software to fill the output buffer with the values that you want to write to the DACs and to the digital output port if applicable For example if your output channel list contains only DACO and the digital output port specify the values in the output buffer as follows the first output value for DACO the first output value for the digital output port the second output value for DACO the second output value for the digital output port and so on When it detects a trigger the module starts writing the values from the output buffer
100. maximum 25 Amaximum 0 25 mA maximum Minimum pulse width High 25 ns Low 25 ns Triggering modes Single scan Yes Continuous scan Yes Triggered scan No 208 Specifications Table 17 lists the specifications for the internal A D and D A clocks on the DT9836 Series modules Table 17 Internal A D and D A Clock Specifications Feature Specifications Reference frequency 36 MHz Divisor range 3 to 4 294 967 295 Usable range A D clock 0 00838 Hz to 225 kHz D A clock 0 00838 Hz to 500 kHz Table 18 lists the specifications for the external A D and D A clocks on the DT9836 Series modules Table 18 External A D and D A Clock Specifications Feature Specifications Input type Edge sensitive rising or falling edge programmable Logic family LVTTL Inputs Input logic load 1LVTTL Input termination 2 2k pull up to 43 3 V High input voltage 2 0V Low input voltage 0 8V Low input current 1 2 mA Oscillator frequency DC to 225 kHz A D DC to 500 kHz D A Minimum pulse width High 25 ns Low 25 ns 209 Appendix C 210 Table 19 lists the power physical and environmental specifications for the DT9836 Series modules Table 19 Power Physical and Environmental Specifications Feature Specifications Power 5 V 5 2 A maximum Physical Dimensions OEM Dimensions BNC Weight OEM 190 mm x
101. mber of 116 W waveform generation mode 88 wiring signals analog outputs 49 digital inputs and outputs 50 edge to edge measurement 56 event counting 51 frequency measurement 54 period measurement 55 preparing 41 pulse output 57 pulse width measurement 55 recommendations 41 single ended analog inputs 48 to the BNC connection box 42 up down counting 53 wrap mode 151 152 analog input 81 analog output 89 writing programs in C C 19 in Visual Basic 19 in Visual C 19 Z zero start sequential channel gain list 114 223 Index 224
102. meter to Analog Output 0 DAC Ch0 of the DT9836 Series module 3 In the DAC Output Voltage box select 9 375 V 4 Adjust the offset by entering values between 0 and 255 in the DAC 0 Offset edit box or by clicking the up down buttons until the voltmeter reads 9 375 V 5 Inthe DAC Output Voltage box select 9 375 V 6 Adjustthe gain by entering values between 0 and 255 in the DAC 0 Gain edit box or by clicking the up down buttons until the voltmeter reads 9 375 V 7 Connect an external precision voltmeter to Analog Output 1 DAC Ch1 of the DT9836 Series module 8 Inthe DAC Output Voltage box select 9 375 V 9 Adjust the offset by entering values between 0 and 255 in the DAC 1 Offset edit box or by clicking the up down buttons until the voltmeter reads 9 375 V 10 In the DAC Output Voltage box select 9 375 V 11 Adjust the gain by entering values between 0 and 255 in the DAC 1 Gain edit box or by clicking the up down buttons until the voltmeter reads 9 375 V 173 Chapter 10 Note At any time you can click Restore Factory Settings to reset the D A calibration values to their original factory settings This process will undo any D A calibration settings Once you have finished this procedure the analog output circuitry is calibrated To close the DT9832 DT9836 Calibration Utility click the close box in the upper right corner of the window 174 m Connector Pin Assignments OEM Version Con
103. missing or damaged contact Data Translation If you are in the United States call the Customer Service Department at 508 481 3700 An application engineer will guide you through the appropriate steps for replacing missing or damaged items If you are located outside the United States call your local distributor listed on Data Translation s web site www datatranslation com Once you have unpacked your module check the system requirements as described in the next section 27 Chapter 2 28 Checking the System Requirements For reliable operation your DT9836 Series module requires the following PC with Pentium 233 MHz or higher processor Windows 2000 or Windows XP Professional Edition operating system For USB Ver 2 0 support make sure that you install Service Pack 2 for Windows XP or Service Pack 4 for Windows 2000 In addition for some systems you may have to disable standby mode If you are not sure whether you are using USB Ver 1 1 or Ver 2 0 run the Open Layers Control Panel applet described on page 38 One or more USB ports Ver 2 0 or Ver 1 1 USB Ver 2 0 is strongly recommended USB Ver 1 1 will severely degrade performance 64 MB or more of RAM 128 MB or more recommended One or more CD ROM drives Super VGA 800 x 600 or higher resolution display monitor Once you have verified that your system meets the system requirements install the software as described in the next s
104. modules Table 12 A D Subsystem Specifications Feature Specifications Number of analog input channels 6 or 12 single ended Simultaneous Resolution 16 bits Range 10 V 5 V Throughput per channel 225 kSamples s Channel bandwidth 2 5 MHZ to 3 dB point Sample and hold Aperture uncertainty 1 ns Aperture delay 35 ns Aperture match 5ns Gain match x 0 015 Zero match z1 5mV System accuracy to of FSR Gain 1 0 015 Bipolar input range 10V 5V Data encoding Offset binary Maximum input voltage without damage Power on 30 V Power off 20 V Input impedance 100M 10pF Input bias current 1 nA Integral nonlinearity 0 015 Differential nonlinearity 0 003 Specifications Table 12 A D Subsystem Specifications cont Feature Specifications Inherent quantizing error 1 2 LSB Drift Zero 25 V C Gain 50 ppm of FSR C ESD protection Arc 8 kV Contact AkV a The the number of channels available depends on the model you purchase 203 Appendix C Table 13 lists the specifications for the D A subsystem on the DT9836 Series modules Table 13 D A Subsystem Specifications Feature Specifications Number of analog output channels 2 Simultaneous Resolution 16 bits Settling time to 0 01 of FSR 2 0 s 100 mV steps 5 0 s 10 V steps Thr
105. mptom Possible Cause Possible Solution Module does not respond The module configuration is incorrect Check the configuration of your device driver see the instructions in Chapter 3 The module is damaged Contact Data Translation for technical support refer to page 165 Intermittent operation Loose connections or vibrations exist The module is overheating Check your wiring and tighten any loose connections or cushion vibration sources see the instructions in Chapter 4 Check environmental and ambient temperature consult the module s specifications on page 210 of this manual and the documentation provided by your computer manufacturer for more information Electrical noise exists Check your wiring and either provide better shielding or reroute unshielded wiring see the instructions in Chapter 4 Device failure error reported The DT9836 Series module cannot communicate with the Microsoft bus driver or a problem with the bus driver exists Check your cabling and wiring and tighten any loose connections see the instructions in Chapter 4 The DT9836 Series module was removed while an operation was being performed Ensure that your DT9836 Series module is properly connected see the instructions in Chapter 3 163 Chapter 9 Table 2 Troubleshooting Problems cont Symptom Possible Cause Possible Solution Dat
106. n however the concepts apply to all DT Open Layers software Note that many steps represent several substeps if you are unfamiliar with the detailed operations involved with any one step refer to the indicated page for detailed information Optional steps appear in shaded boxes Programming Flowcharts Single Value Operations Initialize the device driver and get the device handle with olDalnitialize Specify A D subsystem 0 for an analog input operation D A subsystem 0 for an analog output Get a handle to the subsystem with operation DIN subsystem 0 for a digital input olDaGetDASS operation or DOUT subsystem 0 for a digital v output operation Set the data flow to OL DF SINGLEVALUE using olDaSetDataFlow Y For A D subsystem 0 only set the range using olDaSetRange i Configure the subsystem using olDaConfig C Go to the next page D 125 Chapter 8 Single Value Operations cont C Continued from previous page 3 For the A D subsystem read a single analog input value from the specified channel 0 to 5 or 0 to 11 using the specified gain 1 Acquire a single value using or 2 For the DIN subsystem olDaGetSingleValue read the value of the 16 bit digital Acquiring data input port Acquire Ves Output a single value using output olDaPutSingleValue another value For the D A subsystem the v
107. ndle 132 151 152 olDaSetWrapMode 151 152 olDaSimultaneousPreStart 147 olDaSimultaneousStart 147 olDaStart 132 in continuous A D operations 128 in continuous D A operations 130 131 134 in event counting operations 136 138 142 145 in pulse output operations 144 219 Index 220 olDaStop 158 olDaTerminate in continuous A D operations 159 in continuous D A operations 159 in event counting operations 136 138 142 in frequency measurement operations 140 in pulse output operations 144 in single value operations 126 olDmAllocBuffer 151 152 155 olDmCallocBuffer 155 olDmCopyFromBuffer 154 olDmCopyToBuffer 157 olDmFreeBuffer 159 olDmGetValidSamples 154 olDmMallocBuffer 155 olDmSetValidSamples 152 OLSSC_CGLDEPTH 114 OLSSC_FIFO_SIZE_IN_K 121 OLSSC_MAX_DIGITALIOLIST_VAL UE 115 OLSSC MAXDICHANS 115 OLSSC MAXMULTISCAN 113 OLSSC MAXSECHANS 115 OLSSC NUMCHANNELS 115 OLSSC NUMDMACHANS 112 OLSSC NUMEXTRACLOCKS 118 OLSSC NUMEXTRATRIGGERS 117 OLSSC NUMFILTERS 116 OLSSC NUMGAINS 114 OLSSC_NUMRANGES 116 OLSSC NUMRESOLUTIONS 116 OLSSC SUP BINARY 121 OLSSC SUP BUFFERING 112 OLSSC SUP CHANNELLIST INHIBIT 114 OLSSC SUP CONTINUOUS 111 OLSSC SUP CONTINUOUS PRETRI G 111 OLSSC SUP CTMODE COUNT 119 OLSSC SUP CTMODE MEASURE 119 OLSSC SUP CTMODE ONESHOT 119 OLSSC SUP CTMODE ONESHOT RPT 119 OLSSC SUP CTMODE RATE 119 OLSSC SUP CTMODE UP DOWN 119 OLSSC SUP DIFFERENTIAL 115 OLSSC SUP EXTCLOCK 118 OLSSC SU
108. nectors sisse eet emet 176 BNC Box Connectors cedo essei e Re err tex 183 EP353 Accessory Panel Connectors 000 000005 187 EP356 Accessory Panel Connectors 00000005 191 EP355 Screw Terminal Assignments oces coec eroare rass 193 175 Appendix A OEM Version Connectors This section describes the pin assignments for the J2 and J3 connectors on the OEM version of the DT9836 Series modules as well as the secondary power connector TB1 You can access these pins by building your own cable and screw terminal panel refer to Appendix C for information about the required mating connectors Figure 23 shows the orientation of the pins on these connectors TB1 Secondary Connector J3 Connector J2 Power Connector see page 198 for OPin 35 Pin68 OQ Pin35 Pin 68 more info Pin1 Pin 34 Pin 1 Pin 34 OEM Version of TT o Om DT9836 Series Module e Figure 23 Connectors on OEM Version of DT9836 Module Note If you are using the BNC connection box refer to Chapter 4 and BNC Box Connectors on page 183 for wiring information 176 Connector Pin Assignments OEM J2 Connector Table 3 lists the pin assignments for connector J2 on the OEM version of the DT9836 Series module Table 3 Pin Assignments for Connector J2 on the OEM Version of Module J2 Pin J2 Pin Assignment Signal D
109. nnel list contains only DACO and the digital output port specify the values in the output buffer as follows the first output value for DACO the first output value for the digital output port the second output value for DACO the second output value for the digital output port and so on When it detects a trigger the host computer transfers the entire waveform pattern to the module and the module starts writing output values to the output channels as determined by the output channel list A single buffer is output repeatedly Use software to allocate the memory and specify the waveform pattern To select waveform generation mode use software to specify the data flow as continuous the buffer wrap mode as single refer to page 89 and the trigger source as any of the supported trigger sources refer to page 85 Principles of Operation Data Format and Transfer Data from the host computer must use offset binary data encoding for analog output signals where 0000 represents 10 V and FFFFh represents 10 V Using software specify the data encoding as binary Before you begin writing data to the output channels you must allocate and fill buffers with the appropriate data A Buffer Done message is returned whenever a buffer is transferred to the module This allows you to reuse that buffer and refill it with additional output data Note We recommend that you allocate buffers that are even multiples of 256 Also if runn
110. nted 5 Determine the measurement period using the following equation Measurement period 1 Active Pulse Width Clock Frequency 6 Determine the frequency of the clock input signal using the following equation Frequency Measurement _Number of Events Measurement Period Make sure that the signals are wired appropriately One way to wire a frequency measurement operation is to use the same wiring as an event counting application but not use an external gate signal Refer to Frequency Measurement on page 54 for an example of connecting a frequency measurement application Edge to Edge Measurement Use edge to edge measurement mode if you want to measure the time interval between a specified start edge and a specified stop edge The start edge and the stop edge can occur on the rising edge of the Counter n Gate input the falling edge of the Counter n Gate input the rising edge of the Counter n Clock input or the falling edge of the Counter n Clock input When the start edge is detected the 101 Chapter 6 counter timer starts incrementing and continues incrementing until the stop edge is detected The C T then stops incrementing until it is enabled to start another measurement You can use edge to edge measurement to measure the following Pulse width of a signal pulse the amount of time that a signal pulse is in a high or a low state or the amount of time between a rising edge and a falling edge or bet
111. ock input when the Counter n Gate signal is active low level or high level Refer to page 96 for information about specifying the active gate type You can count a maximum of 4 294 967 296 events before the counter rolls over to 0 and starts counting again Using software specify the counter timer mode as event counting count the C T clock source as external and the active gate type as low level or high level Make sure that the signals are wired appropriately Refer to Event Counting on page 51 for an example of connecting an event counting application Up Down Counting Use up down counting mode if you want to increment or decrement the number of rising edges that occur on the Counter n Clock input depending on the level of the Counter n Gate signal If the Counter n Gate signal is high the C T increments if the specified gate signal is low the C T decrements 99 Chapter 6 100 Using software specify the counter timer mode as up down counting up down and the C T clock source as external Note that you do not specify the gate type in software Make sure that the signals are wired appropriately Refer to Up Down Counting on page 53 for an example of connecting an up down counting application Note Initialize the counter timer so that the C T never increments above FFFFFFFFh or decrements below 0 Frequency Measurement Use frequency measurement mode if you want to measure the number of r
112. olDaStart v Deal with messages and buffers see page 153 v Stop the operation see page 158 y Clean up the operation see page 189 131 Chapter 8 132 Digital Input Interrupt On Change Initialize the device driver and get the device handle with olDalnitialize v Get a handle to the DIN subsystem with olDaGetDASS Set the data flow to OL_DF_CONTINUOUS using olDaSetDataFlow Using main Yes Specify element 0 window to handle olDaSetWndHandle Specify the window in which to post messages messages olDaSetNotificationProcedure Specify the procedure to handle Windows messages SE Configure the subsystem using olDaConfig i Start the operation with olDaStart C Go to the next page Programming Flowcharts C Continued from previous page The event done message is OLDA WM EVENT DONE In olDaSetWndHandle or olDaSetNotificationProcedure the subsystem handle HDASS is returned in the wParam parameter this allows one window to handle messages from both subsystems The subsystem status is returned in the Param parameter Table 1 Subsystem Status in IParam Get event done message Bits Definition Low Bits 0 to 7 of this 32 bit word represent the Byte actual state of the digital input lines of the board Bit O corres
113. omponents on the module Place in a secure shipping container Return the module to the following address making sure the RMA number is visible on the outside of the box Customer Service Dept Data Translation Inc 100 Locke Drive Marlboro MA 01752 1192 10 Using the Calibration Utility eci 0 0 4 4066 occa meme 169 Calibrating the Analog Input Subsystem 170 Calibrating the Analog Output Subsystem 173 167 Chapter 10 DT9836 Series modules are calibrated at the factory and should not require calibration for initial use We recommend that you check and if necessary readjust the calibration of the analog input and analog output circuitry on the DT9836 Series modules every six months using the DT9832 DT9836 Calibration Utility Note Ensure that you installed the DT9836 Series Device Driver prior to using the DT9832 DT9836 Calibration Utility Refer to Chapter 2 for more information on installing the device driver This chapter describes how to calibrate the analog input and output subsystems of DT9836 Series modules using the DT9832 DT9836 Calibration Utility 168 Calibration Using the Calibration Utility Start the DT9832 DT9836 Calibration Utility as follows 1 Ensure that you installed the software using the instructions in Chapter 2 2 Click Start from the Task Bar and then select Programs Data Translation Inc Calibration Utilities DT9836 Cal
114. ore than once in the list Using software specify the channels you want to sample You can enter up to 23 entries in the channel gain list 17 for the 6 channel version of the module including digital input two 32 bit counter timers and three 32 bit quadrature decoders Channels 0 11 or 0 5 are reserved for analog input Refer to page 78 for more information about the supported conversion modes Principles of Operation Specifying the Digital Input Port in the Analog Input Channel Gain List The DT9836 Series modules allow you to read the digital input port all 16 digital input lines using the analog input channel gain list This feature is particularly useful when you want to correlate the timing of analog and digital events To read the digital input port specify channel 6 or channel 12 in the analog input channel gain list Use channel 6 for modules with 6 channels use channel 12 for modules with 12 channels You can enter channel 6 or 12 anywhere in the list The digital input port is treated like any other channel in the analog input channel gain list therefore all the clocking triggering and conversion modes supported for analog input channels are supported for the digital input port if you specify them this way Specifying Counter Timers in the Analog Input Channel Gain List The DT9836 Series modules allow you to read the value of the 32 bit counter timer channels including quadrature decoders using the
115. ormat and transfer 81 error conditions 82 ranges 76 resolution 73 sample clock sources 77 single ended operations 78 triggers 80 analog inputs 62 64 single ended configuration 48 wiring 48 analog output calibrating 173 channel list 84 channels 83 clock sources 86 continuous operations 86 conversion modes 86 Index data format and transfer 89 error conditions 90 gain 85 ranges 85 resolution 83 single value operations 86 subsystem specifications 204 analog outputs 49 63 analog threshold trigger 80 applet Open Layers Control Panel 28 92 121 164 application wiring analog outputs 49 digital inputs and outputs 50 edge to edge measurement 56 event counting 51 frequency measurement 54 period measurement 55 pulse output 57 pulse width measurement 55 single ended analog inputs 48 up down counting 53 applications DT Measure Foundry 19 DT LV Link 20 Quick Data Acq 19 B base clock frequency 118 binary data encoding 121 BNC box connectors 183 buffers 112 151 152 213 Index 214 cleaning up 159 dealing with for A D operations 153 dealing with for D A operations 156 inprocess flush 112 multiple wrap mode 112 151 152 setting up for A D operations 151 setting up for D A operations 152 single wrap mode 112 151 152 transferring from inprocess 155 waveform generation mode 112 C C C programs 19 C T see counter timer 207 cables USB 35 36 calibrating the module analog input subsystem 170 analo
116. ort OLSSC SUP TIMEREVENTTRIG Number of Extra Triggers OLSSC NUMEXTRATRIGGERS 1 1 0 0 0 a OL TRG EXTERN is the rising edge external digital TTL trigger input OL TRG EXTRA is the falling edge digital external TTL trigger input OL TRG THRESHPOS is the positive edge analog threshold trigger from an analog input channel 117 Chapter 7 118 Clocks Table 17 DT9836 Series Clock Options DT9836 Series A D D A DIN DOUT C T Internal Clock Support OLSSC SUP INTCLOCK Yes Yes Yes Yes External Clock Support OLSSC SUP EXTCLOCK Yes Yes Yes Simultaneous Input Output on a Single Clock Signal OLSSC SIMULTANEOUS CLOCKING Yes Yes Number of Extra Clocks OLSSC NUMEXTRACLOCKS 0 0 0 0 0 Base Clock Frequency OLSSCE BASECLOCK 36 MHz 36 MHz 0 0 36 MHz Maximum Clock Divider 2 147 OLSSCE MAXCLOCKDIVIDER 0 0 1 1 483 647 Minimum Clock Divider OLSSCE MINCLOCKDIVIDER 0 0 1 1 2 Maximum Throughput OLSSCE MAXTHROUGHPUT 225 kHz 500 kHz 0 0 18 MHz Minimum Throughput 0 0084 0 0084 0 0084 OLSSCE MINTHROUGHPUT Hz Hz 0 0 Hz Supported Device Driver Capabilities Counter Timers Table 18 DT9836 Series Counter Timer Options DT9836 Series A D D A DIN DOUT C T Cascading Support OLSSC SUP CASCADING Event Count Mode Support OLSSC SUP CTMODE COUNT Yes Generate Rate Mode Support OLSSC SUP CTMODE RATE Yes One Shot Mode Support
117. ory panel 189 Appendix A 190 Table 9 EP353 Connector J2 Pin Assignments a Reserved on DT9836 6 Series modules Pea Signal Description phen Signal Description 1 Analog In 0 20 Analog In 6 2 Analog In 1 21 Analog In 7 3 Analog In 2 22 Analog In 8 4 Analog In 3 23 Analog In 9 5 Analog In 4 24 Analog In 10 6 Analog In 5 25 Analog In 11 7 Reserved 26 Reserved 8 Reserved 27 Reserved 9 Reserved 28 Reserved 10 Reserved 29 Reserved 11 Reserved 30 Reserved 12 Reserved 31 Reserved 13 Reserved 32 Reserved 14 Reserved 33 Reserved 15 Reserved 34 Reserved 16 Reserved 35 Reserved 17 Reserved 36 Analog Ground 18 5 V Analog 37 Digital Ground 19 Chassis Ground Connector Pin Assignments EP356 Accessory Panel Connectors To attach an EP356 accessory panel to the OEM version of the DT9836 Series module plug the EP356 panel into connector J3 on the module as shown in Figure 29 EP356 Accessory Panel 37 Pin Connector J1 OEM Version of DT9836 Series Module 37 Pin Connector J2 Connector J2 Conn ctor J3 Figure 29 Connecting the EP356 Panel to the OEM Module Figure 30 shows the orientation of the pins for connectors J1 and J2 on the EP356 panel Pin 20 Pin 37 OOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOQ Pin 1 Pin 19 Figure 30 Orientation of the Pins for Connectors J1 and J2 of the EP35
118. ost to the module fast enough and so the D A converter ran out of data To avoid this error try one or more of the following Reduce the clock rate of the D A Increase the size of the buffers Increase the number of buffers Close any other applications that are running Run the program on a faster computer Principles of Operation Digital I O Features This section describes the following features of digital I O operations Digital I O lines described below Operation modes described on page 92 Digital I O Lines DT9836 Series modules support one digital input port consisting of 16 digital input lines lines 0 to 15 and one digital output port consisting of 16 digital output lines lines 0 to 15 You can read all 16 digital input lines or write all 16 digital output lines with a single value digital I O operation Refer to page 92 for more information about single value operations In addition you can specify the digital input port in an analog input channel gain list to perform a continuous digital input operation or you can specify the digital output port in an output channel list to perform a continuous digital output operation Refer to page 92 for more information about continuous digital I O operations A digital line is high if its value is 1 a digital line is low if its value is 0 On power up or reset a low value 0 is output from each of the digital output lines The DT9836 Series modules allo
119. ou can cycle through the output channel list using continuous output mode or waveform generation mode Digital I O subsystem One digital input port consisting of 16 digital input lines You can program any of the first eight digital input lines to perform interrupt on change operations You can read the value of the digital input port using the analog input channel gain list One digital output port consisting of 16 digital output lines You can output the value of the digital output port using the output channel list Two 32 bit counter timer C T channels that perform event counting up down counting frequency measurement edge to edge measurement continuous pulse output one shot and repetitive one shot operations You can read the value of one or more of the C T channels using the analog input channel list Three 32 bit quadrature decoders that can provide relative or absolute position of quadrature encoder input and calculate rotational speed You can read the value of one or more of the quadrature decoder channels using the analog input channel list e External or internal clock source Trigger operations using a software command an analog threshold value or an external digital trigger e 500 V galvanic isolation barrier that prevents ground loops to maximize analog signal integrity and protect your computer 17 Chapter 1 18 The key differences among the DT9836 Series modules are summarized in
120. oughput 500 kSamples s per channel Slew rate 10V s Glitch energy 12 nV s typical Output range 10 V Data encoding Offset binary Output current 5 mA maximum load Output impedance 0 1 maximum Capacitive driver capability 0 004 F Protection Short circuit to analog ground Integral nonlinearity 1 0 LSB Differential nonlinearity 1 0 LSB Inherent quantizing error 1 2 LSB Error Zero Gain Adjustable to 0 Adjustable to 0 204 Specifications Table 13 D A Subsystem Specifications cont Feature Specifications Drift Zero bipolar 10 ppm of FSR C Gain 30 ppm of FSR C FIFO 128 kSamples total ESD protection Arc 8 kV Contact AkV 205 Appendix C Table 14 lists the specifications for the DIN DOUT subsystems on the DT9836 Series modules Table 14 DIN DOUT Subsystem Specifications Feature Specifications Number of digital I O lines 32 16 in 16 out Number of ports 2 16 bits each Input termination Inputs tied to 3 3 V through 15 k pull up resistors Logic family LVTTL Logic sense Positive true Inputs Input type Level sensitive Input logic load High input voltage Low input voltage Low input current 1 LVTTL 2 0 V minimum 0 8 V maximum 0 4 mA maximum Outputs Fan out High output Low output High output current
121. ponds to digital input Y es line 0 bit 7 corresponds to digital input line 7 If a bit is set to 1 the associated y digital input line is active Process data High Bits 8 to 15 of this 32 bit word represent Byte the digital input lines that caused the interrupt to occur Bit 8 corresponds to digital input line 0 bit 15 corresponds to digital input line 7 If a bit is set to 1 the associated digital input line caused the interrupt to occur i e changed state v Stop the operation see page 158 Clean up the operation see page 159 133 Chapter 8 Continuous Digital Output Operations Initialize the device driver and get the device handle with olDalnitialize i Get a handle to the D A subsystem with olDaGetDASS Set up the analog output channel list see page 149 i Set up the clocks and triggers see page 150 Specify channel 2 as the digital output port specify a gain of 1 y Set up buffering see page 152 LA Configure the subsystem using olDaConfig v Start the operation with olDaStart y Stop the operation see page 158 v Clean up the operation see page 159 134 Programming Flowcharts Event Counting Operations Initialize the device driver and get the device handle with olDalnitialize i Specify the appropriate C T
122. q application The Quick Data Acq application provides a quick way to get up and running using a DT9836 Series module Using this application you can verify key features of the modules display data on the screen and save data to disk Refer to the DT9836 Series Getting Started Manual UM 21553 for more information on using the Quick Data Acq application DT Measure Foundry An evaluation version of this software is included or provided via a link on the Data Acquisition OMNI CD DT Measure Foundry is a drag and drop test and measurement application builder designed to give you top performance with ease of use development Order the full development version of this software package to develop your own application using real hardware e DataAcq SDK Use the Data Acq SDK if you want to develop your own application software for the DT9836 Series modules using the Microsoft C compiler the DataAcq SDK complies with the DT Open Layers standard e DTx EZ DTx EZ provides ActiveX controls which allow you to access the capabilities of the DT9836 Series modules using Microsoft Visual Basic or Visual C DTx EZ complies with the DT Open Layers standard DAO Adaptor for MATLAB Data Translation s DAQ Adaptor provides an interface between the MATLAB Data Acquisition DAQ subsystem from The MathWorks and Data Translation s DT Open Layers architecture 19 Chapter 1 20 DT LV Link Use DT LV Link if you want to use the LabVIEW
123. rmation 2 Initialize the device driver and get the V device handle with olDalnitialize J v Specify the appropriate C T Get a handle to the C T subsystem with subsystem element The DT9836 Series olDaGetDASS supports two general non quadrature elements 0 1 v Specify the clock source as OL CLK EXTERNAL using olDaSetClockSource i Specify a clock divider between 2 the E default and 2 147 483 647 The clock Specify the clock divider using divider determines the frequency at which olDaSetExternalClockDivider to pace the operation this is the frequency I of the Counter n Out signal Specify the mode as OL CTMODE COUNT using olDaSetCTMode Go to the next page N P 139 Chapter 8 Frequency Measurement Operations cont C Continued from previous page p Configure the subsystem using olDaConfig Start the frequency measurement operation using olDaMeasureFrequency Message is in the form OLDA WM MEASURE DONE Use the LongtoFreq IParam macro to get the measured frequency value float Freq Freq LongtoFreq lParam message returned v Release each subsystem with olDaReleaseDASS v Release the device driver and terminate C the session with olDaTerminate 140 Programming Flowcharts Edge to Edge Measurement Operations a Initialize
124. rssi 34 Configuring the DT9836 Series Device Driver 38 Chapter 3 Prepare to Use the Module see Chapter 2 starting on page 25 Set Up and Install the Module this chapter Wire Signals to the BNC Connection Box see Chapter 4 starting on page 39 C Verify the Operation of the Module N see Chapter 5 starting on page 59 E Note The DT9836 Series module is factory calibrated If you decide that you want to recalibrate the analog input or analog output circuitry refer to the instructions in Chapter 10 32 Setting Up and Installing the Module Applying Power to the Module The BNC connection box is shipped with an EP361 5V power supply and cable For the OEM version of the DT9836 Series module you must provide your own 5 V power source or purchase the EP361 power supply and cable from Data Translation To apply power to the module do the following 1 Connect the 5 V power supply to the power connector on the DT9836 Series module Refer to Figure 2 EP361 5 V Power Connector Power Supply DT9836 Series LED Module To wall outlet USB Port Figure 2 Attaching a 5 V Power Supply to the DT9836 Series Module 2 Plug the power supply into a wall outlet For more detailed information about ground power and isolation connections on a DT9836 Series module refer to Appendix B starting on page 197 33 Chapter 3 Att
125. s mode and if you used the Open Layers Control Panel applet to select any of the first eight digital input lines to perform interrupt on change operations The device driver posts the OLDA WM EVENTDONE WITH DATA message when a bit changes state The 16 bit value of the digital input port is also returned b DT9836 Series modules are calibrated at the factory If you want to readjust the calibration of the analog input or analog output circuitry refer to Chapter 10 starting on page 167 121 Chapter 7 122 Programming Flowcharts Single Value Operations coo soe eee te danse 125 Continuous A D Operations o c ceis cesio eee eee eee 127 Continuous D A Operations ceci ce cece e ee meet 129 Continuous Digital Input Operations 131 Digital Input Interrupt On Change 000 132 Continuous Digital Output Operations 134 Event Counting Operations cccisssese se sn eee esten es 135 Up Down Counting Operations 137 Frequency Measurement Operations sss 139 Edge to Edge Measurement Operations 141 Pulse Output Operations occisis er t9 e res 143 Quadrature Decoder Operations icc cete bee en 145 Simultaneous Operations cilio le de c Rr rms 147 123 Chapter 8 124 The following flowcharts show the steps required to perform data acquisition operations using DT Open Layers For illustration purposes the DataAcq SDK functions are show
126. s of Q D 2 C T 4 Channel 22 Channel 16 The counter timer channel is treated like any other channel in the analog input channel gain list therefore all the clocking triggering and conversion modes supported for analog input channels are supported for the counter timers if you specify them this way Input Ranges The DT9836 Series modules provide an input range of 10 to 10 V or 5 to 5 V Use software to specify the range as 10 to 10 V or 5 to 5 V 76 Principles of Operation Note This is the range for the entire analog input subsystem not the range per channel You do not need to and cannot set gain values for DT9836 Series modules The gain is preset at 1 Input Sample Clock Sources DT9836 Series modules allow you to use one of the following clock sources to pace analog input operations Internal A D clock Using software specify the clock source as internal and the clock frequency at which to pace the operation The minimum frequency supported is 0 75 Samples s the maximum frequency supported is 225 kSamples s According to sampling theory Nyquist Theorem specify a frequency that is at least twice as fast as the input s highest frequency component For example to accurately sample a 20 kHz signal specify a sampling frequency of at least 40 kHz Doing so avoids an error condition called aliasing in which high frequency input components erroneously appear as lower frequ
127. samples Your application program must deal with these situations when flushing an inprocess buffer DMA Table 8 DT9836 Series DMA Options DT9836 Series A D D A DIN DOUT C T Number of DMA Channels OLSSC_NUMDMACHANS 0 0 0 0 0 Supports Gap Free Data with No DMA OLSSC SUP GAPFREE NODMA Yes Yes Supports Gap Free Data with Single DMA OLSSC SUP GAPFREE SINGLEDMA Supports Gap Free Data with Dual DMA OLSSC SUP GAPFREE DUALDMA Supported Device Driver Capabilities Triggered Scan Mode Table 9 DT9836 Series Triggered Scan Mode Options DT9836 Series A D D A DIN DOUT C T Triggered Scan Support OLSSC SUP TRIGSCAN Maximum Number of CGL Scans per Trigger OLSSC MAXMULTISCAN 1 0 0 0 0 Supports Scan per Trigger Event Triggered Scan OLSSC SUP RETRIGGER SCAN PER TRIGGER Supports Internal Retriggered Triggered Scan OLSSC SUP RETRIGGER INTERNAL Extra Retrigger Support OLSSC SUP RETRIGGER EXTRA Maximum Retrigger Frequency OLSSCE MAXRETRIGGER 0 0 0 0 0 Minimum Retrigger Frequency OLSSCE MINRETRIGGER 0 0 0 0 0 113 Chapter 7 Gain Table 10 DT9836 Series Gain Options DT9836 Series Maximum Channel Gain List Depth OLSSC_CGLDEPTH A D 17 or 23 D A DIN DOUT C T Sequential Channel Gain List Support OLSSC_SUP_SEQUENTIAL_CGL Yes Yes Zero Start Sequential Channel Gain List Support OLSSC
128. st 147 olDalInitialize in continuous A D operations 127 in continuous D A operations 129 131 134 in continuous digital input operations 132 in event counting operations 135 137 141 145 in frequency measurement operations 139 in pulse output operations 143 in single value operations 125 olDaMeasureFrequency 140 olDaPutBuffer 151 152 154 157 olDaPutDassToSSList 147 olDaPutSingleValue 126 150 olDaReadEvents 136 138 146 olDaReleaseDASS in continuous A D operations 159 in continuous D A operations 159 in event counting operations 136 138 142 in frequency measurement operations 140 in pulse output operations 144 in single value operations 126 olDaReleaseSSList 159 olDaReset 158 olDaSetChannelListEntry 149 olDaSetChannelListSize 149 olDaSetClockFrequency 150 olDaSetClockSource 135 137 139 141 143 145 150 olDaSetCTMode in event counting operations 135 137 141 in frequency measurement operations 139 in pulse output operations 144 olDaSetDataFlow in continuous A D operations 127 in continuous D A operations 129 in continuous digital input operations 132 in single value operations 125 olDaSetExternalClockDivider 135 137 139 143 olDaSetGainListEntry 149 olDaSetGateType 135 143 olDaSetMeasureStartEdge 141 olDaSetMeasureStopEdge 141 olDaSetNotificationProcedure 132 olDaSetPulseType 144 olDaSetPulseWidth 144 olDaSetQuadDecoder 145 olDaSetRange in single value operations 125 olDaSetTrigger 150 olDaSetWndHa
129. start list 121 single buffer wrap mode 112 151 152 single channel analog input 74 analog output 84 single ended channels 115 number of 115 single ended inputs 48 single value operations 111 125 analog input 78 analog output 86 digital I O 92 how to perform 125 software trigger 80 85 117 specifications 201 analog input 202 analog output 204 clocks 209 counter timer specifications 207 digital I O 206 environmental 210 physical 210 power 210 triggers 208 stopping an operation 78 87 158 subsystem status 133 synchronous digital I O 115 maximum value 115 system requirements 28 T TB1 connector pin assignments OEM version 182 technical support 165 Index threshold trigger 117 throughput maximum 118 minimum 118 transferring data analog input 81 analog output 89 triggered scan 113 extra retrigger 113 internal retrigger 113 number of scans per trigger 113 retrigger frequency 113 scan per trigger 113 triggers 150 analog input 80 analog threshold 80 117 external 80 85 117 number of extra 117 setting parameters for 150 software 80 85 117 specifications 208 troubleshooting procedure 162 technical support 165 troubleshooting table 163 TTL trigger 80 85 U units counter timer 93 unpacking 27 up down counting 99 119 up down counting wiring 53 USB cable 35 36 USB expansion hub 36 V Visual Basic programs 19 Visual C programs 19 voltage ranges 76 nu
130. t to counter timer 0 Note The Quick Data Acq application works only with counter timer 0 In the Quick Data Acq application choose Pulse Generator from the Control menu Select the appropriate DT9836 Series module from the Board list box Select either Continuous to output a continuous pulse stream or One Shot to output one pulse Select either Low to high to output a rising edge pulse the high portion of the total pulse output period is the active portion of the signal or High to low to output a falling edge pulse the low portion of the total pulse output period is the active portion of the signal Under Pulse Width enter a percentage or use the slider to select a percentage for the pulse width The percentage determines the duty cycle of the pulse Click Start to generate the pulse s The application displays the results both in text and graphical form Click Stop to stop a continuous pulse output operation One shot pulse output operations stop automatically Part 2 Using Your Module D Principles of Operation Analog Input Peatutes coeli edt bb re eee phe e 73 Analog Output Features oi ccs cio Ss osse ese e eyed 83 Digital I O Features o cedri rcir bee e Rae nee es ees 91 Counter Timer Festures cssc mero eve o Pade ea ae ee eee E 93 71 Chapter 6 Figure 18 shows a block diagram of the DT9836 Series modules
131. t appareil num rique n met pas de bruits radio lectriques d passant les limites applicables aux appareils num riques de la class A prescrites dans le R glement sur le brouillage radio lectrique dict par le Minist re des Communications du Canada Table of Contents About this Manual esee 11 Intended Audience 0 00 c eee eee nes 11 How this Manual is Organized 0 000 ee 12 Conventions Used in this Manual s suus 13 Related Information 000 cece eee eese eres 13 Where To Get Help 00 14 Chapter 1 Overview 20000 cece eee eee eee 15 DT9836 Hardware Features 0 0 0 e eee eee eee 16 Supported Software isses 19 Accesses vis ives diab dw bade Sob Gee ee E ER PESE 20 Getting Started Procedure 0 0000 e eee 21 Part 1 Getting Started 23 Chapter 2 Preparing to Use a Module 25 Unpacking i005 ene er er EEEE ER 27 Checking the System Requirements sssssuss 28 Installing the Software 0 0000 e eee eee ee eee 29 Viewing the Documentation Online 000 30 Chapter 3 Setting Up and Installing the Module 31 Applying Power to the Module isses 33 Attaching Modules to the Computer 04 34 Connecting Directly to the USB Ports 35 Connecting to an Expansion Hub
132. tal Output 1 3 Digital Input 2 22 Digital Output 2 4 Digital Input 3 23 Digital Output 3 5 Digital Input 4 24 Digital Output 4 6 Digital Input 5 25 Digital Output 5 7 Digital Input 6 26 Digital Output 6 8 Digital Input 7 27 Digital Output 7 9 Digital Input 8 28 Digital Output 8 10 Digital Input 9 29 Digital Output 9 11 Digital Input 10 30 Digital Output 10 12 Digital Input 11 31 Digital Output 11 13 Digital Input 12 32 Digital Output 12 14 Digital Input 13 33 Digital Output 13 15 Digital Input 14 34 Digital Output 14 16 Digital Input 15 35 Digital Output 15 17 Digital Ground 36 Reserved 18 Digital Ground 37 Digital Ground 19 No Connect 184 Connector Pin Assignments CT Enc In Analog Out CIk Trig Connector Figure 24 shows the orientation of the pins on the CT Enc In Analog Out Clk Trig connector on the BNC connection box Pin 1 gt Pin 20 OOOOOOOOOOOOOOOO OOOOOOOOOOOOOOO O Pin 19 LX O pin 37 Figure 25 Orientation of the CT Enc In Analog Out Clk Trig Connector on the BNC Connection Box Table 7 lists the pin assignments for the CT Enc In Analog Out Clk Trig connector on the BNC connection box 185 Appendix A 186 Table 7 BNC Connection Box CT Enc In Analog Out CIK Trig Connector Pin Assignments rie Signal Description MM Signal Description 1 Analog Output 0 20 Analog Output 0 Return 2 An
133. the C T channels For modules with 12 channels channels 0 to 11 read the analog input channels channel 12 reads all 16 bits from the DIN subsystem channels 13 to 22 read the C T channels Chapter 7 Filters Table 13 DT9836 Series Filter Options DT9836 Series Filter Channel Support OLSSC_SUP_FILTERPERCHAN A D D A DIN DOUT C T Number of Filters OLSSC_NUMFILTERS Ranges Table 14 DT9836 Series Range Options DT9836 Series Number of Voltage Ranges OLSSC NUMRANGES A D D A DIN DOUT C T Range per Channel Support OLSSC SUP RANGEPERCHANNEL Resolution Table 15 DT9836 Series Resolution Options DT9836 Series Software Programmable Resolution OLSSC SUP SWRESOLUTION A D D A DIN DOUT C T Number of Resolutions OLSSC NUMRESOLUTIONS 116 Supported Device Driver Capabilities Triggers Table 16 DT9836 Series Trigger Options DT9836 Series A D D A DIN DOUT C T Software Trigger Support OLSSC_SUP_SOFTTRIG Yes Yes Yes Yes Yes External Trigger Support OLSSC_SUP_EXTERNTRIG Yes Yes Yes Positive Threshold Trigger Support OLSSC SUP THRESHTRIGPOS Yes Negative Threshold Trigger Support OLSSC SUP THRESHTRIGNEG Analog Event Trigger Support OLSSC SUP ANALOGEVENTTRIG Digital Event Trigger Support OLSSC SUP DIGITALEVENTTRIG Timer Event Trigger Supp
134. the device driver and get the N V device handle with olDalnitialize J i Get a handle to the C T subsystem with olDaGetDASS i Specify the mode as OL CTMODE MEASURE using olDaSetCTMode M Specify the clock source as OL CLK INTERNAL using olDaSetClockSource i Specify the start edge using olDaSetMeasureStartEdge i Specify the stop edge using olDaSetMeasureStopEdge Configure the subsystem using olDaConfig i Go to the next page Specify the appropriate C T subsystem element The DT9836 Series supports two general non quadrature elements 0 1 Specify OL GATE RISING for a rising edge on the Counter n Gate input OL GATE FALLING for a falling edge on the Counter n Gate input OL CLOCK RISING for a rising edge on the Counter n Clock input or OL CLOCK FALLING for a falling edge on the Counter n Clock input 141 Chapter 8 Edge to Edge Measurement Operations cont C Continued from previous page v Start the operation using olDaStart Message is in the form OLDA_WM_EVENT_DONE Note that if you want to perform another Event done edge to edge measurement you message can call olDaStart again or use the returned OLDA_WM_EVENT_DONE handler to call olDaStart again The LParam parameter of the message contains the count i Release each subsystem with olDaReleaseDASS i rn Re
135. the voltage supply on your selected channel to 0 000V 4 Click the Auto Calibration Start button A message appears notifying you to verify that 0 000 V is applied to the channel 5 Verify that the supplied voltage to your selected channel is 0 000 V and then click OK The offset value is calibrated When the offset calibration is complete a 170 Calibration message appears notifying you to set the input voltage of the channel to 9 375 V 6 Check that the supplied voltage to your selected channel is 9 375 V and then click OK The gain value is calibrated and a completion message appears 7 Ifyou chose to calibrate all channels then the preceeding four steps repeat for all other A D channels on the board the calibration utility prompts you to attach the precision voltage source to the next channel Follow the on screen prompts to proceed through the rest of the channels Note At any time you can click Restore Factory Settings to reset the A D calibration values to their original factory settings This process will undo any auto or manual calibration settings Using the Manual Calibration Procedure If you want to manually calibrate the analog input circuitry instead of auto calibrating it do the following for each channel substitute the appropriate channel number as you go 1 Adjust the offset as follows a Verify that 0 000 V is applied to AD Ch0 and that A D Channel Select is set to Channel 0 T
136. tinuous analog input 127 215 Index 216 continuous analog output 129 continuous C T 111 continuous digital input 111 continuous post trigger 111 continuous pre trigger 111 single value 111 125 data format and transfer analog input 81 analog output 89 data processing 121 DataAcq SDK 19 device driver 19 38 differential channels 115 digital I O 91 lines 91 operation modes 92 subsystem specifications 206 Digital In Out connector pin assignments 46 digital input port 92 in analog input channel gain list 75 digital inputs 50 65 digital output port 92 in output channel list 84 digital outputs 50 66 digital trigger 80 85 DT Measure Foundry 19 DT LV Link 20 DTx EZ 19 duty cycle 97 E edge to edge measurement mode 101 119 edge to edge measurement wiring 56 encoding data 81 89 environmental specifications 210 EP353 accessory panel 187 EP355 screw terminal 195 EP356 accessory panel 191 EP356 accessory panel connector pin assignments 192 EP356 pin assignments 47 errors analog input 82 153 analog output 90 156 event counting 99 119 how to perform 135 137 141 event counting wiring 51 expansion hub 36 external clock 95 118 150 external clock divider maximum 118 minimum 118 external digital trigger 80 85 117 extra retrigger 113 F factory service 166 features 16 flowcharts quadrature decoder 145 formatting data analog input 81 analog output 89 frequency base clock 118 external A D
137. tion The module continues to output pulses until you stop the operation Note that any Counter n Gate signals that occur while the pulse is being output are not detected by the module The period of the output pulse is determined by the C T clock source either internal using a clock divider or external Note that in repetitive one shot mode the internal C T clock is more useful than an external clock refer to page 95 for more information about the C T clock sources Using software specify the counter timer mode as repetitive one shot oneshot rpt the polarity of the output pulses high to low transition or low to high transition the duty cycle of the output pulses the C T clock source as internal recommended the clock divider and the active gate type rising edge or falling edge Refer to page 97 for more information about pulse output types and to page 96 for more information about gates Note Inthe case of a repetitive one shot operation use a duty cycle as close to 10076 as possible to output a pulse immediately Using a duty cycle closer to 076 acts as a pulse output delay Make sure that the signals are wired appropriately Refer to Period Pulse Width Measurement on page 55 for an example of connecting a repetitive one shot application Quadrature Decoders The counter timer subsystem includes three quadrature decoders which allow simultaneous decoding of three quadrature encoded inputs The quadra
138. to perform an event counting operation on counter timer 0 using an external gate The counter counts the number of rising edges that occur on the Counter 0 Clock input when the Counter 0 Gate signal is in the active state as specified by software Refer to Counter Timer Operation Modes on page 98 for more information 51 Chapter 4 Digital Ground External EN Gating Switch 9 D 24 Counter 0 Gate p 28 f Ne n Counter 0 Clock Q8 55 Signal Source Digital Ground D sub Pins Figure 11 Connecting Counter Timer Signals to the D sub Pins for an Event Counting Operation Using an External Gate Figure 12 shows how to connect counter timer signals to the CT Enc In Analog Output CIk Trig D sub pins to perform an event counting operation on counter timer 0 without using a gate The counter counts the number of rising edges that occur on the Counter 0 Clock input Counter 0 Clock q 8 D 5 Signal Source Digital igital Ground D sub Pins Figure 12 Connecting Counter Timer Signals to the D sub Pins for an Event Counting Operation Without Using a Gate 52 Wiring Signals to the BNC Connection Box Up Down Counting Note To use up down counting mode you need the latest version of DT Open Layers Figure 13 shows how to connect counter timer signals to the CT Enc In Analog Output CIk Trig D sub pins to perform
139. tputs and four BNC connectors for external clocks and triggers Ol GJ GJ AD Ch0 ADChi ADCh2 ADCh3 ADCh4 ADCh5 AD Trig DAC Ch0 DAC Clock Q O o s DAC Chi AD Clock o o i g LI o e DAC Trig a e ul o O Figure 6 DT9836 6 BNC Version of the BNC Connection Box Wiring Signals to the BNC Connection Box Wiring Signals to the D Sub Connectors If want to connect digital I O or counter timer signals to the BNC connection box you can use the 37 pin D sub connectors These connectors are described in the following sections Note D sub connectors are not available on the BNC connection box for analog input Digital In Out Connector The Digital In Out connector allows you to access the digital I O signals Table 2 lists the pin assignments for the Digital In Out connector on the BNC connection box 45 Chapter 4 Table 2 Digital In Out Connector Pin Assignments Pin Signal Description Pin Signal Description 1 Digital Input O 20 Digital Output 0 2 Digital Input 1 21 Digital Output 1 3 Digital Input 2 22 Digital Output 2 4 Digital Input 3 23 Digital Output 3 5 Digital Input 4 24 Digital Output 4 6 Digital Input 5 25 Digital Output 5 7 Digital Input 6 26 Digital Output 6 8 Digital Input 7 27 Digital Output 7 9 Digital Input 8 28 Digital Output 8
140. ture decoders may be used to provide relative or absolute position or determine rotational speed by calculating the difference between samples 105 Chapter 6 Each quadrature decoder supports A B and Index inputs The A and B input relationships are used to increment or decrement the positional count the Index input can be used to zero out the positional count Figure 22 shows an example of a quadrature decoder mode In this case the A input leads the B input up counting with a 90 degree Index Sample Cock 0g nnmnnn Encoder A Input __ p ee Encoder B Input o pe Encoder Index Input m 106 Figure 22 Example Quadrature Decoder Mode Program quadrature decoder operation using the olDaSetQuadDecoder function in DT OpenLayers Using software you can specify the following parameters for a quadrature decoder operation e The pre scale value that is used to filter the onboard clock Using a pre scale value can remove ringing edges and unwanted noise for more accurate data The mode of operation X1 or X4 mode to match the quadrature encoder mode The index mode which either enables the Index signal or disables the Index signal You can read the value of the counter timer subsystem to determine relative or absolute position and or rotational speed To determine the rotation of a quadrature encoder use the following formula Principles of Operation Rotation degrees Count x 3
141. tware to specify the data encoding as binary The ADC outputs FFFFh for above range signals and 0000 for below range signals Before you begin acquiring data you must allocate buffers to hold the data A Buffer Done message is returned whenever a buffer is filled This allows you to move and or process the data as needed Note We recommend that you allocate buffers that are even multiples of 256 Also if running at higher clock frequencies increase your buffer size accordingly As a guideline size the buffers to hold one half second of data By this guideline BufferSize SampleRate NumberOfChannels 2 rounded up to the nearest multiple of 256 We recommend that you allocate a minimum of three buffers for analog input operations specifying one of the following buffer wrap modes in software 81 Chapter 6 e None Data is written to multiple allocated input buffers continuously when no more empty buffers are available the operation stops If wrap mode is none the module guarantees gap free data Multiple Data is written to multiple allocated input buffers continuously if no more empty buffers are available the module overwrites the data in the current buffer starting with the first location in the buffer This process continues indefinitely until you stop it If wrap mode is multiple the module does not guarantee gap free data Error Conditions The DT9836 Series module reports any overrun errors by sen
142. ulses 57 68 outputting pulses 102 103 104 P period 102 period measurement wiring 55 physical specifications 210 pin assignments Digital In Out connector 46 EP356 47 OEM version connector J2 177 OEM version connector J3 179 OEM version connector TB1 182 ports digital I O 91 positive threshold trigger 117 post trigger acquisition mode 111 power 33 198 199 power specifications 210 power supply 33 preparing to wire signals 41 pre trigger acquisition mode 111 programmable gain 114 pulse output how to perform 143 one shot 103 rate generation 102 repetitive one shot 104 types 97 pulse outputs 57 68 pulse width 97 102 pulse width measurement wiring 55 221 Index 222 Q quadrature decoder 105 120 quadrature decoder flowcharts 145 Quick Data Acq application 19 installing 61 running 61 R random channel gain list 114 ranges analog input 76 analog output 85 number of 116 rate generation 102 119 recommendations for wiring 41 repetitive one shot pulse output 104 119 requirements 28 resetting an operation 158 resolution analog input 73 analog output 83 number of 116 retrigger clock frequency 113 returning boards to the factory 166 RMA 166 S sample clock sources 77 sample rate 79 scan operations analog input 78 scan per trigger 113 screw terminal assignments EP355 195 SDK 19 sequential channel gain list 114 simultaneous clocking 118 simultaneous operations 147 simultaneous
143. w you to program the first eight digital input lines to perform interrupt on change operations Refer to page 92 for more information 91 Chapter 6 Operation Modes The DT9836 Series modules support the following digital I O operation modes Single value operations are the simplest to use but offer the least flexibility and efficiency You use software to specify the digital I O port and a gain of 1 the gain is ignored Data is then read from or written to all the digital I O lines For a single value operation you cannot specify a clock or trigger source Single value operations stop automatically when finished you cannot stop a single value operation Continuous digital I O takes full advantage of the capabilities of the DT9836 Series modules using the analog I O clock source scan mode trigger source buffer and buffer wrap mode Digital input For digital input operations enter the digital input port all 16 digital input lines as channel 6 for modules with 6 A D channels or 12 for modules with 12 A D channels in the analog input channel gain list refer to page 75 for more information The analog input sample clock internal or external paces the reading of the digital input port as well as the acquisition of the analog input and counter timer channels refer to page 77 for more information Digital output For digital output operations enter the digital output port all 16 digital output lines
144. ween a falling edge and a rising edge You can calculate the pulse width as follows Pulse width Number of counts 18 MHz Period of a signal pulse the time between two occurrences of the same edge rising edge to rising edge or falling edge to falling edge You can calculate the period as follows Period 1 Frequency Period Number of counts 18 MHz Frequency of a signal pulse the number of periods per second You can calculate the frequency as follows Frequency 18 MHz Number of Counts When the operation is complete you can read the value of the counter Using software specify the counter timer mode as edge to edge measurement mode measure the C T clock source as internal the start edge type and the stop edge type Make sure that the signals are wired appropriately Refer to Edge to Edge Measurement on page 56 for an example of connecting an edge to edge measurement application Rate Generation Use rate generation mode to generate a continuous pulse output signal from the Counter n Out line this mode is sometimes referred 102 Principles of Operation to as continuous pulse output or pulse train output You can use this pulse output signal as an external clock to pace other operations such as analog input analog output or other counter timer operations The pulse output operation is enabled whenever the Counter n Gate signal is at the specified level While the pulse output operation is
Download Pdf Manuals
Related Search
Related Contents
svlib user guide and specification User Manual • Benutzerhandbuch • Manuel de l`utilisateur • Manuale COMBIVERT 取扱説明書 Istruzioni per l`uso HDMI EDID Emulator USER MANUAL - VMW Scooters Copyright © All rights reserved.
Failed to retrieve file