Home
X Series User Manual
Contents
1. ao Al 0 Al 0 34 Als Al 0 P0 30 1135 D GND Al GND 33 Al1 Al 1 P0 28 2 36 DGND Al 9 Al 1 32 Al GND P0 25 3 37 Po 24 Al 2 Al 2 31 Al 10 Al 2 5 E D GND 4 38 P0 23 Al GND 30 Al3 Al 3 c g P0 22 5 39 post Al 11 Al3 29 AI GND pe 5 P0 21 6 40 Po 29 Al SENSE 28 Al 4 Al 4 pa Le D GND 7 41 Po 20 Al 12 Al 4 27 Al GND ZS Zs 5V 8 42 Po 19 Al 5 Al 5 26 Al 13 Al 5 o 98 D GND 9 43 Po 18 Al GND 25 Al 6 Al 6 TIN P0 17 10 44 D GND Al 14 Al 6 24 AI GND P0 16 11 45 Po 26 Al 7 Al 7 23 A115 A17 TERMINAL 68 ff teRMINAL 35 2 GND 12 46 Po 27 Al GND 22 A00 D GND 13 47 Po 11 AO GND 211 a01 TERMINAL 34 TERMINAL1 45V 14 48 pois AO GND 20 NC D GND 15 49 Po 10 D GND 19 P0 4 P0 14 16 50 D GND P0 0 18 D GND P0 9 17 51 P0 13 P0 5 17 Po 1 D GND 18 52 pos D GND 16 Po 6 P0 12 19 53 D GND P0 2 15 D GND NC 20 54 AO GND o 14 SAM TERMINAL 1 TERMNaL 34 408 21 85 ey P0 3 13 D GND AO2 22156 Al GND PFI 11 P2 3 12 DGND TERMINAL 35 aly TERMINAL 68 Al 31 Al 23 23 57 Al 23 Al 23 PFI 10 P2 2 11 PFI O P1 0 Al GND 24 58 Al 30 Al 22 D GND 10 PFI41 P1 1 Al 22 Al 22 25 59 al GND PFI 2 P1 2 9 D GND Al 29 Al 21 26 60 Al 21 Al 21 PFI 3 P1 3 8
2. aoaoga AT SZ 444 are aren sap Sil 42 ais Aio 21 Spt 4112 l4 ar a4 cal 16 34 SII SI 5 AI GND 3 I Si 29 Al GND Al GND 35 si Si 2 At Al14 4 QP S22 AMSAl5 al 47 ar 174 36 Kl SI 52 ASA 5 S21 AUB AIS alos ar17 37 Kl SI 5 Al GND ell Si 22 A GND Al GND 38 S Sil 54 A22 7 It S23 Aee Asanes sol Isl S5 Al 10 Al2 8 I Sil 24 A114 A16 al 26 al 18 40 K 58 Al GND otis S25 AI GND Al GND atti S57 Al3 Al3 10 I S26 A17 A174 al tg 19 42 Kl S58 A a3 11 S S27 A157 arayan al S S5 AIGND 121 S28 A GND Al GND 44 S 6 AISENSE 13 QI SI 22 NC AISENSE2 45 I Sj amp AI GND 14 S Sli 30 Al GND Al GND 46 S Gl 62 Sl 31 Ao 1 Gl 63 AO 0 15 1 Slaan AO 2 azl IS alll ca AOGND 16 S AOGND 48 SJ A ee a y O 81 PFI 8 P2 0 113 most esac moar Sin p05 67 IN Sf 83 PFI 9 P2 1 oma N 115 P0 3 68l S Si 84 D GND P0 11 100 IS TE a e9 N Sf 85_PF1 10 P2 2 IN 117 PO 5 70 I Si 86 D GND P0 13 102 IS as ae FAIS Sif PFI 11 P2 3 IN 119 P07 72 I Si 88 D GND P0 15 104 IS 20 PFIOP1 0 7319 S 89 PFI 12 P2 4 P0 16 105S Ua PFI 1 P11 74 S 90 D GND P0 17 106 S 122 PFI2 P1 2 75 x Si 91 PF 13 P2 5 P0 18 107 S 123 PFI 3 P1 3 76 S22 2 anD P0 19 108 IS ted PFI 4P1 4 77 S Sip 93 PFI 14 P2 6 P0 20 109 IS 12 PFIs P1 5 78 Sj 94 OGND P0 21 110 IS eS PFI6 P1 6 79 IS a Pr 502 7 P0
3. PFI O PFI 2 PFI O PFI 2 Source Source D GND I O Connector X Series Device Figure 8 2 PFI Input Signal Connections You can enable a programmable debouncing filter on each PFI RTSI PXI_STAR or PXIe DSTAR lt A B gt signal When the filters are enabled your device samples the input on each rising edge of a filter clock X Series devices use an onboard oscillator to generate the filter clock The following is an example of low to high transitions of the input signal High to low transitions work similarly Assume that an input terminal has been low for a long time The input terminal then changes from low to high but glitches several times When the filter clock has sampled the signal high on N consecutive edges the low to high transition is propagated to the rest of the circuit The value of N depends on the filter setting refer to Table 8 1 National Instruments Corporation 8 5 X Series User Manual Chapter 8 PFI Table 8 1 Filters N Filter Clocks Pulse Width Pulse Width Needed to Guaranteed to Guaranteed to Filter Setting Filter Clock Pass Signal Pass Filter Not Pass Filter None 90 ns 100 MHz 9 90 ns 80 ns short 5 12 us 100 MHz 512 5 12 us 5 11 us medium 2 56 ms 100 kHz 256 2 56 ms 2 55 ms high Custom User N N timebase N 1 timebase configurable The filter setting for
4. Al lt 0 31 gt 2 ux 2 DIFF RSE yi E 5 or NRSE NI PGIA ADC Al FIFO Al Data O O Al SENSE Input Range Al GND Selection oe Al Terminal Configuration Selection Figure 4 1 MIO X Series Analog Input Circuitry The main blocks featured in the MIO X Series device analog input circuitry are as follows e I O Connector You can connect analog input signals to the MIO X Series device through the I O connector The proper way to connect analog input signals depends on the analog input ground reference settings described in the Analog Input Ground Reference Settings section Also refer to Appendix A Device Specific Information for device I O connector pinouts National Instruments Corporation 4 1 X Series User Manual Chapter 4 Analog Input Analog Input Range Mux Each MIO X Series device has one analog to digital converter ADC The multiplexers mux route one AI channel at a time to the ADC through the NI PGIA Ground Reference Settings The analog input ground reference settings circuitry selects between differential referenced single ended and non referenced single ended input modes Each AI channel can use a different mode Instrumentation Amplifier NI PGIA The NI programmable gain instrumentation amplifier NI PGIA is a measurement and instrument class amplifier that minimizes settling times for all input ranges The NI PGIA can amplify or attenuat
5. Free Running Used on External Clock X Series User Manual Figure 4 33 Halt Internal Clock and Free Running External Clock Using a Digital Source To use AI Pause Trigger specify a source and a polarity The source can be any of the following signals PFI lt 0 15 gt RTSI lt 0 7 gt PXI_STAR PXIe DSTAR lt A B gt Counter n Internal Output Counter n Gate AO Pause Trigger ao PauseTrigger DI Pause Trigger di PauseTrigger DO Pause Trigger do PauseTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an Analog Source When you use an analog trigger source the internal sample clock pauses when the Analog Comparison Event signal is low and resumes when the signal goes high or vice versa 4 60 ni com Chapter 4 Analog Input Routing Al Pause Trigger Signal to an Output Terminal You can route AI Pause Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt PXI_STAR or PXIe DSTARC terminal ay Note Pause triggers are only sensitive to the level of the source not the edge Getting Started with Al Applications in Software You can use the Simultaneous MIO X Series device in the following analog input applications e Simultaneous sampling e Single point analog input e Finite analog input e Continuous analog input
6. SOURCE OUT i Counter Armed Figure 7 33 Continuous Pulse Train Generation Continuous pulse train generation is sometimes called frequency division If the high and low pulse widths of the output signal are M and N periods then the frequency of the Counter n Internal Output signal is equal to the frequency of the Source input divided by M N National Instruments Corporation 7 35 X Series User Manual Chapter 7 Counters For information about connecting counter signals refer to the Default Counter Timer Pinouts section Buffered Pulse Train Generation X Series counters can use the FIFO to perform a buffered pulse train generation This pulse train can use implicit timing or sample clock timing When using implicit timing the pulse idle time and active time changes with each sample you write With sample clocked timing each sample you write updates the idle time and active time of your generation on each sample clock edge Idle time and active time can also be defined in terms of frequency and duty cycle or idle ticks and active ticks Note On buffered implicit pulse trains the pulse specifications in the DAQmx Create Counter Output Channel are ignored so that you generate the number of pulses defined in the multipoint write On buffered sample clock pulse trains the pulse specifications in the DAQmx Create Counter Output Channel are gener
7. NI PGIA ADC 5 eS e Al FIFO 5 Al Data O Q ADC Analog Input Timing Signals Figure 4 25 Simultaneous MIO X Series Analog Input Circuitry On Simultaneous MIO X Series devices each channel uses its own instrumentation amplifier FIFO multiplexer mux and A D converter ADC to achieve simultaneous data acquisition The main blocks featured in the Simultaneous MIO X Series device analog input circuitry are as follows e T O Connector You can connect analog input signals to the Simultaneous MIO X Series device through the I O connector Refer to Appendix A Device Specific Information for device I O connector pinouts e Instrumentation Amplifier NI PGIA The NI programmable gain instrumentation amplifier NI PGIA can amplify or attenuate an AI signal to ensure that you get the maximum resolution of the ADC The NI PGIA also allows you to select the input range e ADC The analog to digital converter ADC digitizes the AI signal by converting the analog voltage into a digital number e Analog Input Timing Signals For information about the analog input timing signals available on Simultaneous MIO X Series devices refer to the Analog Input Timing Signals section National Instruments Corporation 4 41 X Series User Manual Chapter 4 Analog Input e AI FIFO Simultaneous MIO X Series devices can perform both single and multiple A D conversions of a fixed
8. Input e Battery devices Differential DIFF Oy AKESE AlO V1 if aio _ yy gt 7 o 1 Al0O0 R Al GND AGND X Series User Manual Refer to the Analog Input Terminal Configuration section for descriptions of the input modes Types of Signal Sources When configuring the input channels and making signal connections first determine whether the signal sources are floating or ground referenced Floating Signal Sources A floating signal source is not connected in any way to the building ground system and instead has an isolated ground reference point Some examples of floating signal sources are outputs of transformers thermocouples battery powered devices optical isolators and isolation amplifiers An instrument or device that has an isolated output is a floating signal source You must connect the ground reference of a floating signal to the AI ground of the device to establish a local or onboard reference for the signal Otherwise the measured input signal varies as the source floats outside the common mode input range Ground Referenced Signal Sources A ground referenced signal source is connected in some way to the building system ground and is therefore already connected to a common ground point with respect to 4 46 ni com Chapter 4 Analog Input the device assuming that the computer is plugged into the same power system as the source Non isolated outputs of instruments and d
9. Figure 7 8 Single On Demand Pulse Measurement National Instruments Corporation 7 9 X Series User Manual Chapter 7 Counters Implicit Buffered Pulse Measurement In an implicit buffered pulse measurement on each edge of the Gate signal the counter stores the count in the FIFO A DMA controller transfers the stored values to host memory The counter begins counting when it is armed The arm usually occurs between edges on the Gate input but the counting does not start until the desired edge You can select whether to read the high pulse or low pulse first using the StartingEdge property in NI DAQmx Figure 7 9 shows an example of an implicit buffered pulse measurement Gate Source Buffer Counter Armed H L i iH L IH Li IH L 4 2 4 2 4 2 4 2 4 4 4 4 4 4 6 2 6 2 2 2 X Series User Manual Figure 7 9 Implicit Buffered Pulse Measurement Sample Clocked Buffered Pulse Measurement A sample clocked buffered pulse measurement is similar to single pulse measurement but a buffered pulse measurement takes measurements over multiple pulses correlated to a sample clock The count
10. Analog Output Channels AO 2 e Channel 2 AO GND V nO Channel 3 X Series Device Figure 5 2 Analog Output Connections Analog Output Timing Signals Figure 5 3 summarizes all of the timing options provided by the analog output timing engine 100 MHz Timebase DSTAR lt A B gt PFI RTSI PXI_STAR Analog Comparison Event 20 MHz Timebase 100 kHz Timebase PXI_CLK10 Analog Comparison Event AO Sample Clock Timebase Ctr n Internal Output DSTAR lt A B gt PFI RTSI PXI_STAR Programmable Clock Divider AO Sample Clock X Series User Manual Figure 5 3 Analog Output Timing Options X Series devices feature the following analog output waveform generation timing signals e AO Start Trigger Signal e AO Pause Trigger Signal ni com Chapter 5 Analog Output e AO Sample Clock Signal e AO Sample Clock Timebase Signal Signals with an support digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information AO Start Trigger Signal Use the AO Start Trigger ao StartTrigger signal to initiate a waveform generation If you do not use triggers you can begin a generation with a software command Retriggerable Analog Output The AO Start Trigger can be configured to be retriggerable The timing engine will generate the sample clock for the configur
11. Figure 7 1 X Series Counter 0 and Frequency Generator Counters have eight input signals although in most applications only a few inputs are used For information about connecting counter signals refer to the Default Counter Timer Pinouts section Each counter has a FIFO that can be used for buffered acquisition and generation Each counter also contains an embedded counter Embedded Ctrn for use in what are traditionally two counter measurements and National Instruments Corporation 7 1 X Series User Manual Chapter 7 Counters generations The embedded counters cannot be programmed independent of the main counter signals from the embedded counters are not routable Counter Timing Engine Unlike analog input analog output digital input and digital output X Series counters do not have the ability to divide down a timebase to produce an internal counter sample clock For sample clocked operations an external signal must be provided to supply a clock source The source can be any of the following signals e AI Sample Clock e AI Start Trigger e AI Reference Trigger e AO Sample Clock e DI Sample Clock e DI Start Trigger e DO Sample Clock e CTR n Internal Output e Freq Out e PFI lt 0 15 gt e PXI Trig lt 0 7 gt e PXIe DSTAR lt A B gt e Change Detection Event e Analog Comparison Event Not all timed counter operations require a sample clock For example a simple buffered pulse
12. Figure 7 38 Pulse Generation for ETS For information about connecting counter signals refer to the Default Counter Timer Pinouts section Counter Timing Signals X Series devices feature the following counter timing signals e Counter n Source Signal e Counter n Gate Signal e Counter n Aux Signal e Counter nA Signal e Counter n B Signal e Counter n Z Signal e Counter n Up_Down Signal National Instruments Corporation 7 41 X Series User Manual Chapter 7 Counters e Counter n HW Arm Signal e Counter n Sample Clock Signal e Counter n Internal Output Signal e Counter n TC Signal e Frequency Output Signal Note All counter timing signals can be filtered Refer to the PFI Filters section of Chapter 8 PFI for more information In this section n refers to the X Series Counter 0 1 2 or 3 For example Counter n Source refers to four signals Counter 0 Source the source input to Counter 0 Counter 1 Source the source input to Counter 1 Counter 2 Source the source input to Counter 2 or Counter 3 Source the source input to Counter 3 Each of these signals supports digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information Counter n Source Signal X Series User Manual The selected edge of the Counter n Source signal increments and decrements the counter value depending on the application the counter is performing Table 7 8 lists how this terminal is used in
13. National Instruments Corporation 6 9 X Series User Manual Chapter 6 Digital I O Using an Analog Source When you use an analog trigger source the acquisition begins on the first rising or falling edge of the Analog Comparison Event signal Routing DI Start Trigger to an Output Terminal You can route DI Start Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The output is an active high pulse All PFI terminals are configured as inputs by default The device also uses DI Start Trigger to initiate pretriggered DAQ operations In most pretriggered applications a software trigger generates DI Start Trigger Refer to the DI Reference Trigger Signal section for a complete description of the use of DI Start Trigger and DI Reference Trigger in a pretriggered DAQ operation DI Reference Trigger Signal Use the DI Reference Trigger di ReferenceTrigger signal to stop a measurement acquisition To use a reference trigger specify a buffer of finite size and a number of pretrigger samples samples that occur before the reference trigger The number of posttrigger samples samples that occur after the reference trigger desired is the buffer size minus the number of pretrigger samples Once the acquisition begins the DAQ device writes samples to the buffer After the DAQ device captures the specified number of pretrigger samples the DAQ device begins to look for the reference trigger condition If the
14. AISENSE2 45 AIGND 14 S SP 80 A GND AIGND 46 II S 62 ALGND E EE E AOGND 16 AOGND 481 a i P0 0 RS S 81 PFI 8 P2 0 E S S 113 P0 24 S 82 D GND XI 114 D GND P0 1 66 S P0 9 98 IS P0 2 671 IS Gl 83 PFI 9 P2 1 P010 99 X Sli 115 P0 25 i S 84 D GND i I 116 D GND P0 3 68 IS P0 11 100 IS P0 4 69 I S 85 PFI 10 P2 2 Po 12 101 NI Si 117 Po26 amp 86 D GND Gi 118 D GND P0 5 70 S P0 13 102 IS P06 alka Sil 87 PFI 11 P2 3 Dota toal IN Si 119 Po 27 88 D GND i _ Sil 120 D GND P0 7 72 S P0 15 104 S PFIOP1 0 73M9 S 89 PFI 12 P2 4 pode qos NI SI 121 P0 28 PFI 1 P1 1_ 74 9 S20 P GND Po 17 106 ISI Gi 122 D GND Pri2ip1 2 75 KS S21 PFI 13 P2 5 pots 107 N Si 123 Po 29 PFI 3 P1 3 76 S S 92 P GND P019 108 NI Si 124 D GND PFI4 P1 4 77 S9 SI 99 PFI 14 P2 6 pozo 109 NI SII 125_Po 30 PFis P1 5 78 S S 94 2 GND Po21 110 N S 126 D anD PrieiPt 6 79 Si 9 Pri 15 P2 7 po22 111 NII S 127 0 31 PFI7 P1 7 80 S 98 Y Po23 112 I Sil 128 D GND Figure A 9 NI USB 6353 6363 Pinout Note Refer to Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information Appendix A Device Specific Information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help NI 6353 6363 S
15. Enable Enable Change Detection Event P2 7 Synch Enable Ea Enable X Series User Manual Figure 6 11 DI Change Detection You can enable the DIO change detection circuitry to detect rising edges falling edges or either edge individually on each DIO line The DAQ devices synchronize each DI signal to the 100 MHz Timebase and then sends the signal to the change detectors The circuitry ORs the output of all enabled change detectors from every DI signal The result of this OR is the Change Detection Event signal Change detection performs bus correlation by considering all changes within a 50 ns window one change detection event This keeps signals on the same bus synchronized in samples and prevents overruns The Change Detection Event signal can do the following e Drive any RTSI lt 0 7 gt PFI lt 0 15 gt or PXI_STAR signal e Drive the DO Sample Clock or DI Sample Clock e Generate an interrupt The Change Detection Event signal also can be used to detect changes on digital output events 6 24 ni com Chapter 6 Digital I O DI Change Detection Applications The DIO change detection circuitry can interrupt a user program when one of several DIO signals changes state You also can use the output of the DIO change detection circuitry to trigger a DI or counter acquisiti
16. 5V Al GND 27 61 Al 28 Al 20 PFI 4 P1 4 7 D GND Al 20 Al 20 28 62 al SENSE 2 PFI 13 P2 5 6 PFI 5 P1 5 Al GND 29 63 Al 27 Al 19 PFI 15 P2 7 5 PFI 6 P1 6 Al 19 Al 19 30 64 Ai GND PFI 7 P1 7 4 D GND Al 26 Al 18 31 65 Al 18 Al 18 PFI 8 P2 0 3 PFI 9 P2 1 Al GND 32 66 Al 25 Al 17 D GND 2 PFI 12 P2 4 Al 17 Al 17 33 67 Al GND D GND 1 PFI 14 P2 6 Al 24 Al 16 34 68 Al 16 Al 16 Le NC No Connect NC No Connect National Instruments Corporation Figure A 4 NI PCle 6323 6343 Pinout A 9 X Series User Manual Appendix A Device Specific Information B Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help Figure A 5 shows the pinout of the NI USB 6343 For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information X Series User Manual A 10 ni com Appendix A Device Specific Information
17. National Instruments Corporation A 5 X Series User Manual Appendix A Device Specific Information ee AlO Al 0 68 34 Al8 Al 0 Al GND 67 33 Al 1 Al 1 Al9 Al 1 66 32 Al GND Al2 Al 2 65 31 Al 10 Al 2 S Al GND 64 30 AI 3 Al 3 oD Al 11 Al 3 63 29 Al GND on Al SENSE 62 28 Al 4 Al 4 ws Al 12 al4 61127 AI GND 57 AI5 Al5 60 26 Al 13 AI 5 Q Al GND 59 25 Al 6 Al 6 O Al 14 Al 6 58 24 AI GND Al 7 Al 7 57 23 Al 15 AI 7 TERMINAL 68 TERMINAL 34 Al GND 56 22 Aoo AO GND 55 21 AO1 AO GND 54 20 NC D GND 53 19 P0 4 P0 0 52 18 D GND P0 5 51 17 Po 1 D GND 50 16 Po 6 P0 2 49 15 D GND P0 7 48 14 45V P0 3 47 13 D GND PFI 11 P2 3 4612 DGND TERMINAL 35 TERMINAL 1 PFI 10 P2 2 45 11 PFIO P1 0 D GND 44 10 PFI 1 P1 1 Q PFI 2 P1 2 43 9 D GND PFI 3 P1 3 42 8 45v PFI 4 P1 4 41 7 DGND PFI 13 P2 5 40 6 PFI5 P1 5 PFI 15 P2 7 39 5 PFI6 P1 6 PFI 7 P1 7 38 4 D GND PFI 8 P2 0 37 3 PFI9 P2 1 D GND 36 2 PFI12 P2 4 D GND 35 1 PFI14 P2 6 x NC No Connect Figure A 2 NI PCle 6321 and NI PCle PXle 6341 Pinout 3 Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for
18. 3 A common reference point for an electrical system A form of triggering where you set the start time of an acquisition and gather data at a known position in time relative to a trigger signal Lag between making a change and the effect of the change Input Output The transfer of data to from a computer system involving communications channels operator interface devices and or data acquisition and control interfaces 1 The electrical characteristic of a circuit expressed in ohms and or capacitance inductance 2 Resistance G 8 ni com instrument driver instrumentation amplifier interface kS L LabVIEW LED lowpass filter LSB measurement measurement device National Instruments Corporation G 9 Glossary A set of high level software functions that controls a specific GPIB VXI or RS232 programmable instrument or a specific plug in DAQ device Instrument drivers are available in several forms ranging from a function callable language to a virtual instrument VI in LabVIEW A circuit whose output voltage with respect to ground is proportional to the difference between the voltages at its two inputs An instrumentation amplifier normally has high impedance differential inputs and high common mode rejection Connection between one or more of the following hardware software and the user For example hardware interfaces connect two other pieces of hardware Current output high Curren
19. An analog or digital trigger can initiate these actions All X Series devices support digital triggering but some do not support analog triggering To find your device s triggering options refer to the specifications document for your device Refer to the DO Start Trigger Signal and DO Pause Trigger Signal sections for more information about these triggering actions Digital Waveform Generation X Series User Manual You can generate digital waveforms on the Port 0 DIO lines The DO waveform generation FIFO stores the digital samples X Series devices have a DMA controller dedicated to moving data from the system memory to the DO waveform generation FIFO The DAQ device moves samples from the FIFO to the DIO terminals on each rising or falling edge of a clock signal DO Sample Clock You can configure each DIO signal to be an input a static output or a digital waveform generation output The FIFO supports a retransmit mode In the retransmit mode after all the samples in the FIFO have been clocked out the FIFO begins outputting all of the samples again in the same order For example if the FIFO contains five samples the pattern generated consists of sample 1 2 3 4 5 1 2 3 4 5 1 and so on X Series devices feature the following DO waveform generation timing signals e DO Sample Clock Signal e DO Sample Clock Timebase Signal e DO Start Trigger Signal e DO Pause Trigger Signal Signals with an s
20. Q4 Figure A 6 NI PCle 6351 and NI PCle PXle 6361 Pinout National Instruments Corporation A 13 X Series User Manual Appendix A Device Specific Information B Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help Figure A 7 shows the pinout of the NI USB 635 1 6361 For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information Al O Al 0 Al 8 Al 0 Al GND Al 1 Al 1 Al9 Al 1 Al GND Al 2 Al 2 Al 10 Al 2 Al GND AI 3 Al 3 Al 11 Al 3 Al GND Al SENSE Al GND AOO AO GND 1 2 3 4 5 6 7 8 APA BWQWP O A AP P PA DADOP 10 11 12 13 14 15 16 2000000c 20000000 AAAA AAAA AAA AAAA Al 4 Al 4 599 RIIS S 81 PFI 8 P2 0 A por e6 RII QPS BOND Al 5 Al 5 koa 67 IS Gj 84 D GND i Al 13 Al 5 Pos 68 IS GI 85 PFI 10 P2 2 Al GND po c N Gj 86 D GND i Al 6 Al 6 59g mS GI 87 PFI 11 P2 3 AAG ag io E Prise Al 7 Al 7 Poe is Gj 90 D GND Al 15 Al 7 PFI 1 P1 1_74 IS 91 PFI 13 P2 5 IEND PFI 2 P1 2_75 X ll 92 D
21. Seconds Samples Signal Conditioning Carriers A compact modular form factor for signal conditioning modules National Instruments Corporation G 13 X Series User Manual Glossary SCXI sensor signal conditioning signal source single trigger mode single buffered single ended input single ended output software applications software triggering X Series User Manual Signal Conditioning eXtensions for Instrumentation The National Instruments product line for conditioning low level signals within an external chassis near sensors so that only high level signals are sent to DAQ devices in the noisy PC environment A device that responds to a physical stimulus heat light sound pressure motion flow and so on and produces a corresponding electrical signal Primary characteristics of sensors are sensitivity frequency range and linearity 1 Electronic equipment that makes transducer or other signals suitable in level and range to be transmitted over a distance or to interface with voltage input instruments 2 The manipulation of signals to prepare them for digitizing A generic term for any instrument in the family of signal generators When the arbitrary waveform generator goes through the staging list only once Describes a device that acquires a specified number of samples from one or more channels and returns the data when the acquisition is complete A circuit that responds to the volta
22. There are several different methods of continuous generation that control what data is written These methods are regeneration FIFO regeneration and non regeneration modes Regeneration is the repetition of the data that is already in the buffer Standard regeneration is when data from the PC buffer is continually downloaded to the FIFO to be written out New data can be written to the PC buffer at any time without disrupting the output With FIFO regeneration the entire buffer is downloaded to the FIFO and regenerated from there Once the data is downloaded new data cannot be written to the FIFO To use FIFO regeneration the entire buffer must fit within the FIFO size The advantage of using FIFO regeneration is that it does not require communication with the main host memory once the operation is started thereby preventing any problems that may occur due to excessive bus traffic With non regeneration old data will not be repeated New data must be continually written to the buffer If the program does not write new data to the buffer at a fast enough rate to keep up with the generation the buffer will underflow and cause an error 7 38 ni com Chapter 7 Counters Continuous Buffered Sample Clocked Pulse Train Generation This function generates a continuous train of pulses with variable idle and active times Instead of generating a set number of data samples and stopping a continuous generation continues until you stop the o
23. Al External Sample Clock Al Sample Clock Al Convert Clock Al Pause Trigger Halt Used on Internal Clock Free Running Used on External Clock Figure 4 24 Halt Internal Clock and Free Running External Clock Using a Digital Source To use AI Pause Trigger specify a source and a polarity The source can be any of the following signals PFI lt 0 15 gt RTSI lt 0 7 gt PXI_STAR PXIe DSTAR lt A B gt Counter n Internal Output Counter n Gate AO Pause Trigger ao PauseTrigger DO Pause Trigger do PauseTrigger DI Pause Trigger di PauseTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information National Instruments Corporation 4 39 X Series User Manual Chapter 4 Analog Input Using an Analog Source When you use an analog trigger source the internal sample clock pauses when the Analog Comparison Event signal is low and resumes when the signal goes high or vice versa Routing Al Pause Trigger Signal to an Output Terminal You can route AI Pause Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt PXI_STAR or PXIe DSTARC terminal a
24. For information about other technical support options in your area Visit ni com services or contact your local office at ni com contact Training and Certification Visit ni com training for self paced training eLearning virtual classrooms interactive CDs and Certification program information You also can register for instructor led hands on courses at locations around the world System Integration If you have time constraints limited in house technical resources or other project challenges National Instruments Alliance Partner members can help To learn more call your local NI office or visit ni com alliance Declaration of Conformity DoC A DoC is our claim of compliance with the Council of the European Communities using C 1 X Series User Manual Appendix C Technical Support and Professional Services the manufacturer s declaration of conformity This system affords the user protection for electromagnetic compatibility EMC and product safety You can obtain the DoC for your product by visiting ni com certification e Calibration Certificate If your product supports calibration you can obtain the calibration certificate for your product at ni com calibration If you searched ni com and could not find the answers you need contact your local office or NI corporate headquarters Phone numbers for our worldwide offices are listed at the front of this manual You also can visit the Worldwide Offices sectio
25. NI 6351 6361 Pinout Figure A 6 shows the pinout of the NI PClIe 6351 and NI PCle PXIe 6361 For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information Al 0 Al 0 Al GND Al 9 Al 1 Al 2 Al 2 Al GND Al 11 Al 3 Al SENSE Al 12 Al 4 AI 5 AI 5 Al GND Al 14 Al 6 Al 7 Al 7 Al GND AO GND AO GND D GND P0 0 P0 5 D GND P0 2 P0 7 P0 3 PFI 11 P2 3 PFI 10 P2 2 D GND PFI 2 P1 2 PFI 3 P1 3 PFI 4 P1 4 PFI 13 P2 5 PFI 15 P2 7 PFI 7 P1 7 PFI 8 P2 0 D GND D GND yer 68 34 67 33 66 32 65 31 64 30 63 29 62 28 61 27 60 26 59 25 58 24 57 23 56 22 55 21 54 20 53 19 52 18 51 17 50 16 49 15 48 14 47 13 46 12 45 11 44 10 43 42 41 40 39 38 37 36 35 Kej A ojNjo Al 8 Al 0 Al 1 Al 1 Al GND Al 10 Al 2 Al 3 Al 3 Al GND Al 4 Al 4 Al GND Al 13 Al 5 Al 6 Al 6 Al GND Al 15 Al 7 AO 0 AO 1 APFI 0 P0 4 D GND PO 1 P0 6 D GND 5V D GND D GND PFI 0 P1 0 ral de ilal D GND 5V D GND RRS Paks PFI 6 P1 6 D GND PFI 9 P2 1 PFI 12 P2 4 PFI 14 P2 6 TERMINAL 68 TERMINAL 35 NECTOR 0 10 15 N A N O TERMINAL 34 TERMINAL 1
26. gt LO a LALALA LALA Oo 1 2 3 4 5 SOURCE Counter Value 0 Figure 7 3 Single Point On Demand Edge Counting with Pause Trigger X Series User Manual 7 4 ni com Chapter 7 Counters Buffered Sample Clock Edge Counting With buffered edge counting edge counting using a sample clock the counter counts the number of edges on the Source input after the counter is armed The value of the counter is sampled on each active edge of a sample clock and stored in the FIFO A DMA controller transfers the sampled values to host memory The count values returned are the cumulative counts since the counter armed event That is the sample clock does not reset the counter You can configure the counter to sample on the rising or falling edge of the sample clock Figure 7 4 shows an example of buffered edge counting Notice that counting begins when the counter is armed which occurs before the first active edge on Sample Clock Counter Armed Sample Clock Sample on Rising Edge j source M FLA LALELALA LS Counter Value 0 1 2 3 4 5 6 7 H 13 3 Buffer m 6 Figure 7 4 Buffered Sample Clock Edge Counting Controlling the Direction of Counting In edge counting applications the counter can count up or down You can configure the counter to do the following e Always count
27. o Al SENSE Al GND 4 MIO X Series Device Configured in Differential Mode National Instruments Corporation Figure 4 6 Differential Connections for Floating Signal Sources with Balanced Bias Resistors Both inputs of the NI PGIA require a DC path to ground in order for the NI PGIA to work If the source is AC coupled capacitively coupled the NI PGIA needs a resistor between the positive input and AI GND If the source has low impedance choose a resistor that is large enough not to significantly load the source but small enough not to produce significant input offset voltage as a result of input bias current typically 100 kQ to 1 MQ In this case connect the negative input directly to AI GND If the source has high output impedance balance the signal path as previously described using the same value resistor on both the positive and negative inputs be aware that there is some gain error from loading down the source as shown in Figure 4 7 4 17 X Series User Manual Chapter 4 Analog Input X Series User Manual AC Coupling MIO X Series Device H Al AC Coupled Floating Signal vs Source Al o Al SENSE Al GND Figure 4 7 Differential Connections for AC Coupled Floating Sources with Balanced Bias Resistors Using Non Referenced Single Ended NRSE Connections for Floating Signal Sources It is important to connect the negative lead
28. the DAQ device begins to look for the reference trigger condition If the reference trigger condition occurs before the DAQ device captures the specified number of pretrigger samples the DAQ device ignores the condition If the buffer becomes full the DAQ device continuously discards the oldest samples in the buffer to make space for the next sample This data can be accessed with some limitations before the DAQ device discards it Refer to the KnowledgeBase document Can a Pretriggered Acquisition be Continuous for more information To access this KnowledgeBase go to ni com info and enter the Info Code rdcanq When the reference trigger occurs the DAQ device continues to write samples to the buffer until the buffer contains the number of posttrigger samples desired Figure 4 23 shows the final buffer Reference Trigger Pretrigger Samples Posttrigger Samples l l T Complete Buffer Figure 4 32 Reference Trigger Final Buffer X Series User Manual 4 58 ni com Chapter 4 Analog Input Using a Digital Source To use AI Reference Trigger with a digital source specify a source and an edge The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Change Detection Event e Counter n Internal Output e DI Reference Trigger di ReferenceTrigger e AO Start Trigger ao StartTrigger e DO Start Trigger do StartTrigger
29. A 20 NI PXIe 6358 6368 pinout A 23 NI USB 6341 pinout A 7 NI USB 6343 pinout A 10 NI USB 635 1 6361 pinout A 14 NI USB 6353 6363 pinout A 17 NI USB 6356 6366 pinout A 21 I O protection 6 22 8 7 implicit buffered pulse width measurement 7 7 semi period measurement 7 12 improving analog trigger accuracy 11 8 input signals using PFI terminals as 8 2 using RTSI terminals as 9 7 insertion of grounded channels between signal channels MIO X Series devices 4 8 installation hardware 1 2 NI DAQ 1 1 other software 1 1 instrument drivers NI resources C 1 instrumentation amplifier MIO X Series devices 4 2 Simultaneous MIO X Series devices 4 41 interface bus 10 1 internal source less than 40 MHz 7 54 National Instruments Corporation l 9 Index K KnowledgeBase C 1 L LabVIEW documentation xvi LabWindows CVI documentation xvii LED patterns USB devices 3 5 low impedance sources MIO X Series devices 4 7 Measurement Studio documentation xvii measurements buffered two signal edge separation 7 29 choosing frequency 7 18 frequency 7 13 implicit buffered pulse width 7 7 implicit buffered semi period 7 12 period 7 23 position 7 23 pulse width 7 6 semi period 7 12 single pulse width 7 6 single semi period 7 12 single two signal edge separation 7 28 two signal edge separation 7 27 using quadrature encoders 7 24 using two pulse encoders 7 26 measuri
30. Byte Eight related bits of data an eight bit binary number Also used to denote the amount of memory required to store one byte of data Bayonet Neill Concelman A type of coaxial connector used in situations requiring shielded cable for signal connections and or controlled impedance applications 1 Temporary storage for acquired or generated data 2 A memory device that stores intermediate data between two devices The group of electrical conductors that interconnect individual circuitry in a computer Typically a bus is the expansion vehicle to which I O or other devices are connected Examples of PC buses are the PCI AT ISA and EISA bus Celsius The process of determining the accuracy of an instrument In a formal sense calibration establishes the relationship of an instrument s measurement to the value provided by a standard When that relationship is known the instrument may then be adjusted calibrated for best accuracy A precise traceable signal source used to calibrate instruments Process of extending the counting range of a counter chip by connecting to the next higher counter X Series User Manual Glossary channel clock CMOS CMRR common mode rejection common mode signal connector convert rate count counter counter timer X Series User Manual Pin or wire lead to which you apply or from which you read the analog or digital signal Analog signals can be single ended or di
31. MIO X Series devices 4 7 other software installing 1 1 output signal glitches B 3 minimizing 5 3 terminal routing analog comparison events 11 5 outputs using RTSI as 9 6 overview 2 1 P pause trigger 7 51 PCI Express disk drive power connector 3 4 period measurement 7 23 PFI 8 1 connecting input signals 8 4 exporting timing output signals using PFI terminals 8 3 National Instruments Corporation counter default 7 48 device 1 7 NI PClIe PXIe 6341 A 5 NI PClIe PXIe 6361 A 13 NI PClIe PXIe 6363 A 16 NI PCIe 6320 A 2 NI PCIe 6321 A 5 NI PClIe 6323 6343 A 9 NI PCIe 635 1 6361 A 13 A 14 NI PCIe 6353 6363 A 16 NI PXIe 6356 6366 A 20 NI PXIe 6358 6368 A 23 NI USB 6343 A 10 NI USB 635 1 6361 A 14 NI USB 6353 6363 A 17 NI USB 6356 6366 A 21 RTSI connector 3 5 9 5 pins default 7 48 position measurement 7 23 buffered 7 26 power 5 V 3 3 connector PCI Express disk drive 3 4 power up states 6 23 8 7 prescaling 7 52 programmable function interface PFI 8 1 power up states 6 23 8 7 programmed I O 10 2 programming devices in software 2 10 programming examples NI resources C 1 X Series User Manual Index pulse encoders 7 26 generation for ETS 7 40 train generation 7 32 continuous 7 35 pulse width measurement implicit buffered 7 7 single 7 6 PXI and PXI Express 10 3 clock 10 3 clock and trigger signals 9 8 trigger signals 10 3 triggers 9 8 PXI
32. Replace the computer cover and plug in and power on the computer RTSI Connector Pinout PCI Express X Series Devices Refer to the RTS Connector Pinout section of Chapter 9 Digital Routing and Clock Generation for information about the RTSI connector on PCI Express X Series devices USB Device LED Patterns USB X Series Devices USB X Series devices have LEDs labeled ACTIVE and READY The ACTIVE LED indicates activity over the bus The READY LED indicates whether or not the device is configured Table 3 2 shows the behavior of the LEDs Table 3 2 LED Patterns ACTIVE READY LED LED USB Device State Off Off The device is not powered Off On The device is configured but there is no activity over the bus On On The device is configured and there is activity over the bus Blinking On National Instruments Corporation 3 5 X Series User Manual Analog Input Refer to one of the following sections depending on your device e Analog Input on MIO X Series Devices NI 632x 634x 635 1 6353 6361 6363 devices can be configured for single ended and differential analog input measurements e Analog Input on Simultaneous MIO X Series Devices NI 6356 6358 6366 6368 devices can be configured for differential analog input simultaneous sampled measurements Analog Input on MIO X Series Devices Figure 4 1 shows the analog input circuitry of MIO X Series devices
33. Signals RTSI Bus Signal Terminal RTSI 7 34 RTSI 6 32 RTSI 5 30 RTSI 4 28 RTSI 3 26 National Instruments Corporation 9 5 X Series User Manual Chapter 9 Digital Routing and Clock Generation Table 9 1 RTSI Signals Continued RTSI Bus Signal Terminal RTSI 2 24 RTSI 1 22 RTSI O 20 Not Connected Do not connect 1 18 signals to these terminals D GND 19 21 23 25 27 29 31 33 Using RTSI as Outputs X Series User Manual RTSI lt 0 7 gt are bidirectional terminals As an output you can drive any of the following signals to any RTSI terminal e AI Start Trigger ai StartTrigger e Al Reference Trigger ai ReferenceTrigger e AT Convert Clock ai ConvertClock e AI Sample Clock ai SampleClock e AIT Pause Trigger ai PauseTrigger e AO Sample Clock ao SampleClock e AO Start Trigger ao StartTrigger e AO Pause Trigger ao PauseTrigger e DI Start Trigger di StartTrigger e DI Sample Clock di SampleClock e DI Pause Trigger di PauseTrigger e DI Reference Trigger di ReferenceTrigger e DO Start Trigger do StartTrigger e DO Sample Clock do SampleClock e DO Pause Trigger do PauseTrigger e 10 MHz Reference Clock e Counter n Source Gate Z Internal Output e Change Detection Event e Analog Comparison Event e FREQ OUT e PFI lt 0 5 gt 9 6 ni com Chapter 9 Digital Routing and Clock Generation B Note Signals with
34. The AI Convert Clock Timebase ai ConvertClockTimebase signal is divided down to provide one of the possible sources for AI Convert Clock Use one of the following signals as the source of AI Convert Clock Timebase e AI Sample Clock Timebase e 100 MHz Timebase AI Convert Clock Timebase is not available as an output on the I O connector Al Hold Complete Event Signal The AI Hold Complete Event ai HoldCompleteEvent signal generates a pulse after each A D conversion begins You can route AI Hold Complete Event out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The polarity of AI Hold Complete Event is software selectable but is typically configured so that a low to high leading edge can clock external 4 34 ni com Chapter 4 Analog Input AI multiplexers indicating when the input signal has been sampled and can be removed Al Start Trigger Signal Use the AI Start Trigger ai StartTrigger signal to begin a measurement acquisition A measurement acquisition consists of one or more samples If you do not use triggers begin a measurement with a software command Once the acquisition begins configure the acquisition to stop e When a certain number of points are sampled in finite mode e After a hardware reference trigger in finite mode e With a software command in continuous mode An acquisition that uses a start trigger but not a reference trigger is sometimes referred to as a posttriggered a
35. The source also can be one of several internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the measurement acquisition stops on the rising edge or falling edge of AI Reference Trigger Using an Analog Source When you use an analog trigger source the acquisition stops on the first rising edge of the Analog Comparison Event signal Routing Al Reference Trigger Signal to an Output Terminal You can route AI Reference Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt PXI_Trig lt 0 7 gt or PXIe DSTARC terminal All PFI terminals are configured as inputs by default Al Pause Trigger Signal Use the AI Pause Trigger ai PauseTrigger signal to pause and resume a measurement acquisition The internal sample clock pauses while the external trigger signal is active and resumes when the signal is inactive You can program the active level of the pause trigger to be high or low as shown in Figure 4 33 In the figure T represents the period and A represents the unknown time between the clock pulse and the posttrigger National Instruments Corporation 4 59 X Series User Manual Chapter 4 Analog Input Al Sample Clock Al Pause Trigger Al External Sample Clock Al Sample Clock Al Pause Trigger Halt Used on Internal Clock
36. USB Signal Stream hardware and software technology to achieve high throughput rates and increase system utilization in USB devices X Series USB devices have eight fully independent USB Signal Stream for high performance transfers of data blocks These channels are assigned to the first eight measurement acquisition circuits that request one Programmed I O Programmed I O is a data transfer mechanism where the user s program is responsible for transferring data Each read or write call in the program initiates the transfer of data Programmed I O is typically used in software timed on demand operations Refer to the Analog Output Data Generation Methods section of Chapter 5 Analog Output for more information 10 2 ni com Chapter 10 Bus Interface PXI Express Considerations PXI clock and trigger signals are only available on PXI Express devices PXI and PXI Express Clock and Trigger Signals Refer to the PX7_CLK10 PXI Triggers PXI_LSTAR Trigger PXI_ STAR Filters PXIe DSTAR lt A C gt PXIe_CLK100 and PXIe_SYNC100 sections of Chapter 9 Digital Routing and Clock Generation for more information about PXI and PXI Express clock and trigger signals PXI Express PXI Express X Series devices can be installed in any PXI Express slot in PXI Express chassis PXI Express specifications are developed by the PXI System Alliance www pxisa org National Instruments Corporation 10 3 X Series User Manual Triggerin
37. X Series USB Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQm x Help or the LabVIEW Help NI 6321 6341 Specifications Refer to the NI 632x Specifications for more detailed information about the NI 6321 device Refer to the NI 634x Specifications for more detailed information about the NI 6341 device National Instruments Corporation A 7 X Series User Manual Appendix A Device Specific Information NI 6321 6341 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information X Series User Manual A 8 ni com Appendix A Device Specific Information NI 6323 6343 The following sections contain information about the NI PClIe 6323 NI PCle 6343 and NI USB 6343 devices NI 6323 6343 Pinout Figure A 4 shows the pinout of the NI PCIe 6323 6343 The I O signals appear on two 68 pin connectors For a detailed description of each signal refer to the I O Connector Signal Descriptions section of Chapter 3 Connector and LED Information
38. and P2 lt 0 7 gt are referenced to D GND You can individually program each line as an input or output Figure 6 16 shows P1 lt 0 3 gt configured for digital input and P1 lt 4 7 gt configured for digital output Digital input applications include receiving TTL signals and sensing external device states such as the state of the switch shown in the figure Digital output applications include sending TTL signals and driving external devices such as the LED shown in the figure X Series User Manual 6 28 ni com Chapter 6 Digital I O 5V LED Lag AM o j4 gt gt iY TTL Signal gt 5 V M gt Switch y V D GND 1 O Connector X Series Device Figure 6 16 Digital I O Connections UN Caution Exceeding the maximum input voltage ratings which are listed in the specifications document for each X Series device can damage the DAQ device and the computer NI is not liable for any damage resulting from such signal connections Getting Started with DIO Applications in Software You can use the X Series device in the following digital I O applications e Static digital input e Static digital output e Digital waveform generation e Digital waveform acquisition e DI change detection 3 Note For more information about programming digital I O applications and triggers in software refer to the NI DAQmx Help or th
39. between clocks Counter Armed e lt _ gt o a o_o a a a E a sowe UUU UU U ENE E e Buffer 6 AO A Figure 7 16 Sample Clocked Buffered Frequency Measurement Non Averaging National Instruments Corporation 7 17 X Series User Manual Chapter 7 Counters With sample clocked frequency measurements ensure that the frequency to measure is twice as fast as the sample clock to prevent a measurement overflow Hardware Timed Single Point Frequency Measurement hardware timed single point HWTSP frequency measurements can either be a single frequency measurement or an average between sample clocks Use CI Freq EnableA veraging to set the behavior For hardware timed single point the default is False Refer to the Sample Clocked Buffered Frequency Measurement section for more information Counter Armed Gate source i LU Sample Clock UUA UL nL Latched Value Figure 7 17 Hardware Timed Single Point Frequency Measurement 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations X Series User Manual Choosing a Method for Measuring Frequency The best method to measure frequency depends on sev
40. com info and enter the Info Code feedback 2009 2010 National Instruments Corporation All rights reserved Important Information Warranty X Series devices are warranted against defects in materials and workmanship for a period of one year from the date of shipment as evidenced by receipts or other documentation National Instruments will at its option repair or replace equipment that proves to be defective during the warranty period This warranty includes parts and labor The media on which you receive National Instruments software are warranted not to fail to execute programming instructions due to defects in materials and workmanship for a period of 90 days from date of shipment as evidenced by receipts or other documentation National Instruments will at its option repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty period National Instruments does not warrant that the operation of the software shall be uninterrupted or error free A Return Material Authorization RMA number must be obtained from the factory and clearly marked on the outside of the package before any equipment will be accepted for warranty work National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty National Instruments believes that the information in this document is accurate The document has been c
41. controlling counting direction 7 3 conventions used in the manual xv counter input and output 7 48 output applications 7 30 terminals default 7 48 Counter n A signal 7 45 Counter n Aux signal 7 44 Counter n B signal 7 45 Counter n Gate signal 7 43 Counter n HW Arm signal 7 45 Counter n Internal Output signal 7 47 Counter n Sample Clock signal 7 46 Counter n Source signal 7 42 Counter n TC signal 7 47 Counter n Up_Down signal 7 45 Counter n Z signal 7 45 counter signals Counter n A 7 45 Counter n Aux 7 44 Counter n B 7 45 Counter n Gate 7 43 Counter n HW Arm 7 45 Counter n Internal Output 7 47 Counter n Source 7 42 Counter n TC 7 47 National Instruments Corporation l 5 Index Counter n Up_Down 7 45 FREQ OUT 7 48 Frequency Output 7 48 counters 7 1 cascading 7 52 connecting terminals 7 48 edge counting 7 3 generation 7 30 input applications 7 3 other features 7 52 output applications 7 30 prescaling 7 52 pulse train generation 7 32 retriggerable single pulse generation 7 33 simple pulse generation 7 31 single pulse generation 7 31 single pulse generation with start trigger 7 31 synchronization modes 7 53 timing signals 7 41 triggering 7 51 troubleshooting B 3 counting edges 7 3 crosstalk when sampling multiple channels B 1 CtrnSampleClock 7 46 custom cabling 2 7 D DACs 5 1 DAQ hardware 2 1 system 2 1 DAQ 6202 2 2 DAQ STC3 2 2 data acquisit
42. e AI Pause Trigger Signal Signals with an support digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information 4 52 ni com Chapter 4 Analog Input Aggregate versus Single Channel Sample Rates Simultaneous MIO X Series devices have one ADC per channel so the single channel maximum sample rate can be achieved on each channel The maximum single channel rate is the fastest you can acquire data on the device from a single or multiple channels and still achieve accurate results The total aggregate determines the maximum bus bandwidth used by the device The total aggregate sample rate is the product of the maximum sample rate for a single channel multiplied by the number of AI channels that the device support Table 4 7 shows the single channels and total aggregate rates for Simultaneous MIO X Series devices Table 4 7 Analog Input Rates for Simultaneous MIO X Series Devices Analog Input Rat Simultaneous MIO Sus N X Series Device Single Channel Total Aggregate NI 6356 1 25 MS s 10 MS s NI 6358 1 25 MS s 20 MS s NI 6366 2 MS s 16 MS s NI 6368 2 MS s 32 MS s Note On Simultaneous MIO X Series devices each channel has an ADC so each channel can be acquired at the maximum single channel rate Al Sample Clock Signal Use the AI Sample Clock ai SampleClock signal to initiate a set of measurements Your Simultaneous MIO X Series device samples the AI s
43. or Visual C node depending on which language you want to create the project in and select Measurement Studio 3 Choose a project type You add DAQ tasks as a part of this step ANSI C without NI Application Software The NJ DAQmx Help contains API overviews and general information about measurement concepts Select Start All Programs National Instruments NI DAQ NI DAQm x Help The NJ DAQmx C Reference Help describes the NI DAQmx Library functions which you can use with National Instruments data acquisition devices to develop instrumentation acquisition and control applications Select Start All Programs National Instruments NI DAQ Text Based Code Support NI DAQm x C Reference Help NET Languages without NI Application Software X Series User Manual With the Microsoft INET Framework version 1 1 or later you can use NI DAQmx to create applications using Visual C and Visual Basic NET without Measurement Studio You need Microsoft Visual Studio NET 2003 or later for the API documentation to be installed The installed documentation contains the NI DAQmx API overview measurement tasks and concepts and function reference This help is fully integrated into the Visual Studio documentation To view the NI DAQmx NET documentation go to Start All Programs National Instruments NI DAQ Text Based Code Support NI DAQmx NET Help For function reference refer to the NationalInstruments DAQmx Namespace and NationalI
44. or high amplification for proper and accurate operation Therefore most computer based measurement systems include some form of signal conditioning in addition to plug in data acquisition DAQ devices Sensors and Transducers Sensors can generate electrical signals to measure physical phenomena such as temperature force sound or light Some commonly used sensors are strain gauges thermocouples thermistors angular encoders linear encoders and resistance temperature detectors RTDs To measure signals from these various transducers you must convert them into a form that a DAQ device can accept For example the output voltage of most thermocouples is very small and susceptible to noise Therefore you may need to amplify or filter the thermocouple output before digitizing it The manipulation of signals to prepare them for digitizing is called signal conditioning For more information about sensors refer to the following documents e For general information about sensors visit ni com sensors e Ifyou are using LabVIEW refer to the LabVIEW Help by selecting Help Search the LabVIEW Help in LabVIEW and then navigate to the Taking Measurements book on the Contents tab e Ifyou are using other application software refer to Common Sensors in the NI DAQmx Help or the LabVIEW Help Signal Conditioning Options X Series User Manual SCXI SCXI is a front end signal conditioning and switching system for various measurement
45. 22 111 ISl Mel PFI7 P1 7 80 cs Po 23 112 NC No Connect Al 20 Al 20 Al 28 Al 20 Al GND Al 21 Al 21 Al 29 Al 21 Al GND Al 22 Al 22 Al 30 Al 22 Al GND Al 23 Al 23 Al 31 Al 23 Al GND NC Al GND AO 3 AO GND P0 24 D GND P0 25 D GND P0 26 D GND P0 27 D GND P0 28 D GND P0 29 D GND P0 30 D GND P0 31 D GND Figure A 5 NI USB 6343 Pinout 3 Note Refer to Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information National Instruments Corporation A 11 X Series User Manual Appendix A Device Specific Information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQm x Help or the LabVIEW Help NI 6323 6343 Specifications Refer to the NI 632x Specifications for more detailed information about the NI 6323 device Refer to the NI 634x Specifications for more detailed information about the NI 6343 device NI 6323 6343 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information X Series User Manual A 12 ni com NI 6351 6361 Appendix A Device Specific Information The following sections contain information about the NI PCIe 6351 NI USB 6351 NI PCle PXIe 6361 and NI USB 6361 devices
46. 50 your measurement time is 0 01 ms but your error is now 0 1 The error with a sample clocked frequency measurement is not as dependent on the measured frequency so at 50 k and 5 M with a measurement time of 1 ms the error percentage is still close to 0 001 One of the disadvantages of a sample clocked frequency measurement is that the frequency to be measured must be at least twice the sample clock rate to ensure that a full period of the frequency to be measured occurs between sample clocks e Low frequency measurements with one counter is a good method for many applications However the accuracy of the measurement decreases as the frequency increases e High frequency measurements with two counters is accurate for high frequency signals However the accuracy decreases as the frequency of the signal to measure decreases At very low frequencies this method may be too inaccurate for your application Another disadvantage of this method is that it requires two counters if you cannot provide an external signal of known width An advantage of X Series User Manual Chapter 7 Counters high frequency measurements with two counters is that the measurement completes in a known amount of time e Measuring a large range of frequencies with two counters measures high and low frequency signals accurately However it requires two counters and it has a variable sample time and variable error dependent on the input signal e Again the m
47. 7 Counters Other Counter Features The following sections list the other counter features available on X Series devices Cascading Counters Prescaling X Series User Manual You can internally route the Counter n Internal Output and Counter n TC signals of each counter to the Gate inputs of the other counter By cascading two counters together you can effectively create a 64 bit counter By cascading counters you also can enable other applications For example to improve the accuracy of frequency measurements use reciprocal frequency measurement as described in the Large Range of Frequencies with Two Counters section Prescaling allows the counter to count a signal that is faster than the maximum timebase of the counter X Series devices offer 8X and 2X prescaling on each counter prescaling can be disabled Each prescaler consists of a small simple counter that counts to eight or two and rolls over This counter can run faster than the larger counters which simply count the rollovers of this smaller counter Thus the prescaler acts as a frequency divider on the Source and puts out a frequency that is one eighth or one half of what it is accepting External Signal Prescaler Rollover Used as Source by Counter Counter Value 0 X 1 Figure 7 39 Prescaling Prescaling is intended to be used for freq
48. Clock Timebase divided down e Counter n Internal Output e Change Detection Event e Counter n Sample Clock e AO Sample Clock ao SampleClock e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock A programmable internal counter divides down the AI Convert Clock Timebase to generate AI Convert Clock The counter is started by AI Sample Clock and continues to count down to zero produces an AI Convert Clock reloads itself and repeats the process until the sample is finished It then reloads itself in preparation for the next AI Sample Clock pulse Several other internal signals can be routed to AI Convert Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information National Instruments Corporation 4 31 X Series User Manual Chapter 4 Analog Input Using an External Source Use one of the following external signals as the source of AI Convert Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXISTAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger Routing Al Convert Clock Signal to an Output Terminal You can route AI Convert Clock as an active low signal out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal All PFI terminals are configured as inputs by default Using a Delay from Sample Clock to Convert Clock When using the AI timing engine to generate your Convert Clock you also c
49. DAQmx a collection of one or more channels timing and triggering and other properties that apply to the task itself Conceptually a task represents a measurement or generation you want to perform See terminal count An object or region on a node through which data passes The highest value of a counter Gate hold time Gate setup time Gate pulse width The reference signals for controlling the basic accuracy of time or frequency based measurements For instruments timebase refers to the accuracy of the internal clock Output delay time A device that responds to a physical stimulus heat light sound pressure motion flow and so on and produces a corresponding electrical signal See also sensor X Series User Manual Glossary trigger USB X Series User Manual 1 Any event that causes or starts some form of data capture 2 An external stimulus that initiates one or more instrument functions Trigger stimuli include a front panel button an external input voltage pulse or a bus trigger command The trigger may also be derived from attributes of the actual signal to be acquired such as the level and slope of the signal Source clock period Source pulse width Transistor Transistor Logic A digital circuit composed of bipolar transistors wired in a certain manner A typical medium speed digital technology Nominal TTL logic levels are 0 and 5 V Universal Serial Bus A 480 Mbit s serial bus with up
50. Express and PXI 10 3 chassis compatibility 10 3 clock 10 3 clock and trigger signals 9 8 considerations 10 3 PXIe_CLK100 9 8 PXIe_SYNC100 9 8 PXIe DSTAR lt A C gt 9 9 PXI_CLK10 9 8 PXI_STAR filters 9 9 trigger 9 9 PXIe_CLK100 9 8 PXIe_SYNC100 9 8 PXIe DSTAR lt A C gt 9 9 Q quadrature encoders 7 24 R range analog input MIO X Series devices 4 2 real time system integration bus 9 4 reciprocal frequency measurement 7 15 X Series User Manual I 12 reference clock 10 MHz 9 3 external 9 2 referenced single ended connections using with floating signal sources MIO X Series devices 4 19 when to use with floating signal sources MIO X Series devices 4 14 when to use with ground referenced signal sources MIO X Series devices 4 21 related documentation xvi retriggerable single pulse generation 7 33 routing analog comparison event to an output terminal 11 5 clock 9 1 digital 9 1 RSE configuration MIO X Series devices 4 19 RSE connections using with floating signal sources MIO X Series devices 4 19 when to use with floating signal sources MIO X Series devices 4 14 when to use with ground referenced signal sources MIO X Series devices 4 21 RTSLI 9 4 connector pinout 3 5 9 5 filters 9 7 using as outputs 9 6 using terminals as timing input signals 9 7 rubber feet 1 3 S sample clock edge counting 7 5 measurement 7 26 ni com scanning speed MIO X Series devices 4 9 SC
51. External Clock Figure 6 6 Halt Internal Clock and Free Running External Clock X Series User Manual 6 12 ni com Chapter 6 Digital I O Using a Digital Source To use DI Pause Trigger specify a source and a polarity The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Counter n Internal Output e Counter n Gate e Al Pause Trigger ai PauseTrigger e AO Pause Trigger ao PauseTrigger e DO Pause Trigger do PauseTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an Analog Source When you use an analog trigger source the internal sample clock pauses when the Analog Comparison Event signal is low and resumes when the signal goes high or vice versa Routing DI Pause Trigger Signal to an Output Terminal You can route DI Pause Trigger out to any RTSI lt 0 7 gt PFI lt 0 15 gt PXI_STAR or PXIe DSTARC terminal 3 Note Pause triggers are only sensitive to the level of the source not the edge National Instruments Corporation 6 13 X Series User Manual Chapter 6 Digital 1 0 Digital Output Data Generation Methods When performing a digital waveform operation you either can perform software timed or hardware timed generations Software Timed Generations With a software timed
52. Gate the counter cumulatively increments the delay between the Gate and the pulse on the output by a specified amount Thus the delay between the Gate and the pulse produced successively increases The increase in the delay value can be between 0 and 255 For instance if you specify the increment to be 10 the delay between the active Gate edge 7 40 ni com Chapter 7 Counters and the pulse on the output increases by 10 every time a new pulse is generated Suppose you program your counter to generate pulses with a delay of 100 and pulse width of 200 each time it receives a trigger Furthermore suppose you specify the delay increment to be 10 On the first trigger your pulse delay will be 100 on the second it will be 110 on the third it will be 120 the process will repeat in this manner until the counter is disarmed The counter ignores any Gate edge that is received while the pulse triggered by the previous Gate edge is in progress The waveform thus produced at the counter s output can be used to provide timing for undersampling applications where a digitizing system can sample repetitive waveforms that are higher in frequency than the Nyquist frequency of the system Figure 7 38 shows an example of pulse generation for ETS the delay from the trigger to the pulse increases after each subsequent Gate active edge GATE OUT D1 D2 D1 AD D3 D1 2AD
53. On power up the filters are disabled Figure 6 12 shows an example of a low to high transition on an input National Instruments Corporation 6 25 X Series User Manual Chapter 6 Digital I O Digital Input PO x 1 1 1 1 Filter Cock LJ LE LILI LI Li Filtered Input U 2 1 ULI Figure 6 12 Input Low to High Transition When multiple lines are configured with the same filter settings they are considered a bus There are two filtering modes for use with multiple lines line filtering and bus filtering With line filtering each line transitions independently of the other lines in the bus and acts like the behavior described above With bus filtering if any one line in the bus has jitter then all lines in the bus will hold state until the bus becomes stable However each individual line will only wait one extra filter tick before changing This prevents a noisy line from holding a valid transition indefinitely With bus mode if all the bus line transitions become stable in less than one filter clock period and the bus period is more than two filter clock periods then all the bus lines are guaranteed to be correlated at the output of the filter as shown in the figure The behavior for each transition can be thought of as a state machine If a line transitions and stays high for two consecutive filter clock edges then one of two options occurs Case 1 If no tra
54. P cd EE E EEE EEE E EEE aa oe 2 6 Custom Cabling and Connectivity esessseesseesssrsresresreresesresreresreerses 2 7 USB Device AGcesSOrieS nior EE E a 2 7 National Instruments Corporation v X Series User Manual Contents Signal Condition ge icense iniuriae eiieeii eo E ia ERRER 2 7 Sensors and Transducers s ci sssssccessiscsassestsessavsisabessbocdsvecsussetescesvbasbassscesdsvhsavtons 2 8 Signal Conditioning Options eee cess eeeceseeeceseeaeceeeesesneeseessesseeeaee 2 8 SCX Dra paste a ETE cases edt E E E ete 2 8 SOG 4 ie ecnadiveeilite Gace AE A a E E N e 2 9 Programming Devices in Software eessessssesesrsrrsreresresrsresreeresestesrsresrerensrnresrerestenes 2 10 Chapter 3 Connector and LED Information T O Connector Signal Descriptions eee ee cecceeeceeeeseceeeeseessecaeeeaeeaeeeaeeaeeneeeeseaeeaes 3 1 DV ROWER SOULGCE sceh5 soeeeca 3055 o5c hese edecaeeesi aad Ma st8 sess eG Sad RR E 3 3 PCI Express Device Disk Drive Power Connector ccccccccesceseeeeesceseseesesseesseneens 3 4 When to Use the Disk Drive Power Connector ccccccccccsessseeceeeeenseeeeeees 3 4 Disk Drive Power Connector Installation ccccccccccsssccceeeeesseeeceeeessseeeeees 3 4 RESP Connector Pin out EER EEE hiss ok cae sear liacc hate EEE EATE 3 5 USB Device LED Patterns sanien Wes Ross tesa Sade esos os heed boss Ades aA BS 3 5 Chapter 4 Analog Input Analog Input on MIO X Series Devices eee ceeeeeesece
55. PXI STAR e PXIe DSTAR lt A B gt e Change Detection Event e Counter n Internal Output e DI Reference Trigger di ReferenceTrigger e DO Start Trigger do StartTrigger e AO Start Trigger ao StartTrigger The source also can be one of several internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the measurement acquisition stops on the rising edge or falling edge of AI Reference Trigger Using an Analog Source When you use an analog trigger source the acquisition stops on the first rising edge of the Analog Comparison Event signal Routing Al Reference Trigger Signal to an Output Terminal You can route AI Reference Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt PXI_Trig lt 0 7 gt or PXIe DSTARC terminal All PFI terminals are configured as inputs by default Al Pause Trigger Signal Use the AI Pause Trigger ai PauseTrigger signal to pause and resume a measurement acquisition The internal sample clock pauses while the external trigger signal is active and resumes when the signal is inactive You can program the active level of the pause trigger to be high or low as shown in Figure 4 24 In the figure T represents the period and A represents the unknown time between the clock pulse and the posttrigger 4 38 ni com Chapter 4 Analog Input Al Sample Clock Al Convert Clock Al Pause Trigger
56. PXI_STAR 100 kHz Timebase J PXI_CLK10 PXI_STAR Analog Comparison Event Al Sample Clock Analog Comparison Ctr n Internal Output Event Al Sample Clock SW Pulse 20 MHz Timebase Timebase Programmable Clock 100 MHz Timebase a Divider PFI RTSI PXI_STAR Analog Comparison Event hy Ctr n Internal Output Al Convert Clock Timebase Programmable Al Convert Clock e Clock Divider Figure 4 12 Analog Input Timing Options MIO X Series devices use AI Sample Clock ai SampleClock and AI Convert Clock ai ConvertClock to perform interval sampling As Figure 4 13 shows AI Sample Clock controls the sample period which is determined by the following equation 1 Sample Period Sample Rate Channel 0 i Channel 1 lt Convert Period lt Sample Period Figure 4 13 MIO X Series Interval Sampling AI Convert Clock controls the Convert Period which is determined by the following equation National Instruments Corporation 1 Convert Period Convert Rate 4 25 X Series User Manual Chapter 4 Analog Input X Series User Manual Posttriggered data acquisition allows you to view only data that is acquired after a trigger event is received A typical posttriggered DAQ sequence is shown in Figure 4 14 The sample counter is loaded with the specified number of posttrigger samples in this example five The
57. SENSE 2 DIFF AI lt 0 7 gt AI lt 8 15 gt AI lt 16 23 gt AI lt 24 31 gt For differential measurements AI 0 and AI 8 are the positive and negative inputs of differential analog input channel 0 For a complete list of signal pairs that form differential input channels refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information UN Caution The maximum input voltages rating of AI signals with respect to ground and for signal pairs in differential mode with respect to each other are listed in the specifications document for your device Exceeding the maximum input voltage of AI signals distorts the measurement results Exceeding the maximum input voltage rating also can damage the device and the computer NI is not liable for any damage resulting from such signal connections National Instruments Corporation 4 5 X Series User Manual Chapter 4 Analog Input AI ground reference setting is sometimes referred to as AI terminal configuration Configuring Al Ground Reference Settings in Software You can program channels on an MIO X Series device to acquire with different ground references To enable multimode scanning in LabVIEW use NI DAQmx Create Virtual Channel vi of the NI DAQmx API You must use a new VI for each channel or group of channels configured in a different input mode In Figure 4 3 channel 0 is configured in differential mode and channel 1 is configured i
58. Series User Manual Chapter 11 Triggering You also can program your DAQ device to perform an action in response to a trigger from a digital source The action can affect the following e Analog input acquisition e Analog output generation e Counter behavior e Digital waveform acquisition and generation Triggering with an Analog Source Some X Series devices can generate a trigger on an analog signal To find your device triggering options refer to the specifications document for your device Figure 11 2 shows the analog trigger circuit on MIO X Series devices Analog Input PGIA ADC Channels e _T gt Al Circuitry Analog Comparison Analog Event gt AO Circuitry Mux H Trigger APFI lt 0 1 gt Detection Analog Trigger DIO Circuitry Circuitry Output L Counter Circuitry X Series User Manual 1 1 2 Figure 11 2 MIO X Series Device Analog Trigger Circuit ni com Chapter 11 Triggering Figure 11 3 shows the analog trigger circuit on Simultaneous MIO X Series devices NI PGIA ADC WNS m Al Circuitr pama Analog Comparison P ji Analog Event gt AO Circuitry Channels Mux Trigger Detection Analog Trigger DIO Circuitry Circuitry Output NI PGIA ADC gt Counter Circuitry APFI lt 0 1 gt Figure 11 3 Simultaneous MIO X Series Device Analog Trig
59. Series User Manual Chapter 6 Digital 1 0 Routing DO Sample Clock to an Output Terminal You can route DO Sample Clock as an active low signal out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal Other Timing Requirements The DO timing engine on your device internally generates DO Sample Clock unless you select some external source DO Start Trigger starts the timing engine and either the software or hardware can stop it once a finite generation completes When using the DO timing engine you also can specify a configurable delay from DO Start Trigger to the first DO Sample Clock pulse By default this delay is two ticks of DO Sample Clock Timebase Figure 6 7 shows the relationship of DO Sample Clock to DO Start Trigger DO Sample Clock Timebase JUUUUUL DO Start Trigger S DO Sample Clock Delay From Start Trigger Figure 6 7 DO Sample Clock and DO Start Trigger DO Sample Clock Timebase Signal X Series User Manual The DO Sample Clock Timebase do SampleClockTimebase signal is divided down to provide a source for DO Sample Clock You can route any of the following signals to be the DO Sample Clock Timebase signal e 100 MHz Timebase default e 20 MHz Timebase e 100 kHz Timebase e PXI CLK10 e PFI lt 0 15 gt e RTSI lt 0 7 gt 6 18 ni com Chapter 6 Digital I O e PXISTAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger DO Samp
60. Specific Information B Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help Figure A 9 shows the pinout of the NI USB 6353 6363 For a detailed description of each signal refer to the 7 O Connector Signal Descriptions section of Chapter 3 Connector and LED Information National Instruments Corporation A 17 X Series User Manual aoao tT SZ AAA arte cartexy sappy S4 A120 Al 20 asoy 2 1 QW ie A G4 aa cal te 34 Sl Sper Aae AIGND 3 191 lao ais arsy AT OND ES Vee Al1 Al 1 4 IS Al 17 Al 17 36 IS Al 9 Al 1 5 IS z A LERS 5 al25 Al17 37 IS S A mala 21 ALAND HISIS Al6 Al6 A GND 38 SIl S Al 22 Al 22 Al 2 Al 2 7 9 Al 18 Al 18 39 S Al 10 Al 2 8 S S Al 1 Al amp A126 Al 18 40 S Al ao Al 22 ENET g Y Al 7 Al 7 AL GND n g Al 23 Al 23 Al 3 Al 3 10 KS Al 19 Al 19 42 IS Al 11 Al3 11 SI S27 A157 arazia 43 fal SJ 9 A31 Al 23 gt AIGND 12 a ALGND AIGND 44 I o AERD AI SENSE 13
61. The delay and pulse width are measured in terms of a number of active edges of the Source input After the Start Trigger signal pulses once the counter ignores the Gate input National Instruments Corporation 7 31 X Series User Manual Chapter 7 Counters Figure 7 28 shows a generation of a pulse with a pulse delay of four and a pulse width of three using the rising edge of Source GATE Start Trigger source _ LI L I OUT ce Figure 7 28 Single Pulse Generation with Start Trigger Pulse Train Generation Refer to the following sections for more information about the X Series pulse train generation options e Finite Pulse Train Generation e Retriggerable Pulse or Pulse Train Generation e Continuous Pulse Train Generation e Finite Implicit Buffered Pulse Train Generation e Continuous Buffered Implicit Pulse Train Generation e Finite Buffered Sample Clocked Pulse Train Generation e Continuous Buffered Sample Clocked Pulse Train Generation Finite Pulse Train Generation This function generates a train of pulses with programmable frequency and duty cycle for a predetermined number of pulses With X Series counters the primary counter generates the specified pulse train and the embedded counter counts the pulses generated by the primary counter When the embedded counter reaches the specified tick count it generates a trigger that stops the primary
62. Timebase is generated from the following sources e Onboard oscillator e External signal by using the external reference clock The 20 MHz Timebase can be used to generate many of the AI and AO timing signals The 20 MHz Timebase also can be used as the Source input to the 32 bit general purpose counter timers The 20 MHz Timebase is generated by dividing down the 100 MHz Timebase The 100 kHz Timebase can be used to generate many of the AI and AO timing signals The 100 kHz Timebase also can be used as the Source input to the 32 bit general purpose counter timers The 100 kHz Timebase is generated by dividing down the 20 MHz Timebase by 200 External Reference Clock X Series User Manual The external reference clock can be used as a source for the internal timebases 100 MHz Timebase 20 MHz Timebase and 100 kHz Timebase on an X Series device By using the external reference clock you can synchronize the internal timebases to an external clock The following signals can be routed to drive the external reference clock e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXIe_CLK100 e PXISTAR e PXIe DSTAR lt A B gt The external reference clock is an input to a Phase Lock Loop PLL The PLL generates the internal timebases 9 2 ni com Chapter 9 Digital Routing and Clock Generation A Caution Do not disconnect an external reference clock once the devices have been synchronized or are used by a task Doing so may cause t
63. To enroll in a course or obtain a detailed course outline refer to ni com training National Instruments Corporation Xix X Series User Manual About This Manual Technical Support on the Web For additional support refer to ni com support or zone ni com 3 Note You can download these documents at ni com manuals DAQ specifications and some DAQ manuals are available as PDFs You must have Adobe Acrobat Reader with Search and Accessibility 5 0 5 or later installed to view the PDFs Refer to the Adobe Systems Incorporated Web site at www adobe com to download Acrobat Reader Refer to the National Instruments Product Manuals Library at ni com manuals for updated documentation resources X Series User Manual XX ni com Getting Started X Series devices feature up to 32 analog input AI channels up to four analog output AO channels up to 48 lines of digital input output DIO and four counters This chapter provides basic information you need to get started using your X Series device Unpacking The X Series device ships in an antistatic package to prevent electrostatic discharge ESD ESD can damage several components on the device UN Caution Never touch the exposed pins of connectors To avoid ESD damage in handling the device take the following precautions e Ground yourself with a grounding strap or by touching a grounded object e Touch the antistatic package to a metal part of your computer chassis bef
64. User Manual Chapter 4 Analog Input With these types of connections the instrumentation amplifier rejects both the common mode noise in the signal and the ground potential difference between the signal source and the device ground shown as Vem in this figure Common Mode Signal Rejection Considerations The instrumentation amplifier can reject any voltage caused by ground potential differences between the signal source and the device In addition the instrumentation amplifier can reject common mode noise pickup in the leads connecting the signal sources to the device The instrumentation amplifier can reject common mode signals as long as V and V input signals are both within the working voltage range of the device Differential Connections for Floating Signal Sources Figure 4 27 shows how to connect a floating or non referenced signal source to a channel on an Simultaneous MIO X Series device Simultaneous X Series Device AlO Instrumentation Amplifier Floating Signal Source H Al0O0 Bias Resistors a Current Return Paths Measured Voltage a Al 0 GND 1 O Connector CN o oo Al 0 Connections Shown Figure 4 27 Differential Connection for Floating Signals on Simultaneous MIO X Series Devices Figure 4 27 shows bias resistors connected between AI 0 AI 0 and the floating signal source ground These resistors provide a return path for
65. You can perform these applications through DMA or programmed I O data transfer mechanisms Some of the applications also use start and reference pause triggers 3 Note For more information about programming analog input applications and triggers in software refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later Simultaneous MIO X Series devices use the NI DAQmx driver NI DAQmx includes a collection of programming examples to help you get started developing an application You can modify example code and save it in an application You can use examples to develop a new application or add example code to an existing application To locate LabVIEW LabWindows CVI Measurement Studio Visual Basic and ANSI C examples refer to the KnowledgeBase document Where Can I Find NI DAQmx Examples by going to ni com info and entering the Info Code dagmxexp For additional examples refer to zone ni com National Instruments Corporation 4 61 X Series User Manual Analog Output Many X Series devices have analog output functionality X Series devices that support analog output have either two or four AO channels that are controlled by a single clock and are capable of waveform generation Refer to Appendix A Device Specific Information for information about the capabilities of your device Figure 5 1 shows the analog output circuitry of X Series devices AO 0 AO 1 AO FIFO AO 2 AO 3 A
66. ai SampleClock MIO X Series devices 4 28 Simultaneous MIO X Series devices 4 53 ai SampleClockTimebase MIO X Series devices 4 30 Simultaneous MIO X Series devices 4 55 ai StartTrigger MIO X Series devices 4 35 Simultaneous MIO X Series devices 4 56 analog comparison event routing 11 5 comparison event signal 11 4 edge triggering 11 5 with hysteresis 11 6 trigger actions 11 4 trigger types 11 5 triggering 11 2 analog input channels 11 4 charge injection B 1 crosstalk when sampling multiple channels B 1 differential troubleshooting B 1 ghost voltages when sampling multiple channels B 1 X Series User Manual MIO X Series devices 4 1 AI Convert Clock 4 30 AI Convert Clock Timebase 4 34 AI Hold Complete Event 4 34 AI Pause Trigger 4 38 AI Reference Trigger 4 37 AI Sample Clock 4 28 AI Sample Clock Timebase 4 30 AI Start Trigger 4 35 channels sampling with AI Sample Clock and AI Convert Clock B 2 circuitry 4 1 connecting 4 11 connecting signals 4 11 connecting through I O connector 4 1 data acquisition methods 4 9 getting started with applications in software 4 40 ground reference settings 4 2 MUX 4 2 range 4 2 sampling channels with AI Sample Clock and AI Convert Clock B 2 signals 4 24 timing signals 4 24 triggering 4 11 Simultaneous MIO X Series devices AI Hold Complete Event 4 56 AI Pause Trigger 4 59 AI Reference Trigger 4 58 AI Sample Clock 4 53 AI Sam
67. allowing precisely timed responses to asynchronous external events that are being monitored or controlled Triggers can be used to synchronize the operation of several different PXI peripheral modules On X Series devices the eight PXI trigger signals are synonymous with RTSI lt 0 7 gt 9 8 ni com Chapter 9 Digital Routing and Clock Generation Note that in a PXI chassis with more than eight slots the PXI trigger lines may be divided into multiple independent buses Refer to the documentation for your chassis for details PXI_STAR Trigger In a PXI Express system the Star Trigger bus implements a dedicated trigger line between the system timing slot and the other peripheral slots The Star Trigger can be used to synchronize multiple devices or to share a common trigger signal among devices A Star Trigger controller can be installed in this system timing slot to provide trigger signals to other peripheral modules Systems that do not require this functionality can install any standard peripheral module in this system timing slot An X Series device receives the Star Trigger signal PXI_STAR from a Star Trigger controller PXI_STAR can be used as an external source for many AI AO and counter signals An X Series device is not a Star Trigger controller An X Series device can be used in the system timing slot of a PXI system but the system will not be able to use the Star Trigger feature PXI_STAR Filters You can enable
68. an analog trigger Refer to the Routing Table in MAX for all additional routable signals DI Sample Clock Timebase is not available as an output on the I O connector DI Sample Clock Timebase is divided down to provide one of the possible sources for DI Sample Clock You can configure the polarity selection for DI Sample Clock Timebase as either rising or falling edge except for the 100 MHz Timebase or 20 MHz Timebase You might use DI Sample Clock Timebase if you want to use an external sample clock signal but need to divide the signal down If you want to use an external sample clock signal but do not need to divide the signal then you should use DI Sample Clock rather than DI Sample Clock Timebase DI Start Trigger Signal X Series User Manual Use the DI Start Trigger di StartTrigger signal to begin a measurement acquisition A measurement acquisition consists of one or more samples If you do not use triggers begin a measurement with a software command Once the acquisition begins configure the acquisition to stop e When a certain number of points are sampled in finite mode e After a hardware reference trigger in finite mode e With a software command in continuous mode An acquisition that uses a start trigger but not a reference trigger is sometimes referred to as a posttriggered acquisition Retriggerable DI The DI Start Trigger can also be configured to be retriggerable The timing engine will generate the sampl
69. devices including X Series devices An SCXI system consists of a rugged chassis that houses shielded signal conditioning modules that amplify filter isolate and multiplex analog signals from thermocouples or other transducers SCXI is designed for large measurement systems or systems requiring high speed acquisition System features include the following e Modular architecture Choose your measurement technology e Expandability Expand your system to 3 072 channels e Integration Combine analog input analog output digital I O and switching into a single unified platform 2 8 ni com Chapter 2 DAQ System Overview e High bandwidth Acquire signals at high rates e Connectivity Select from SCXI modules with thermocouple connectors or terminal blocks SCC SCC is a front end signal conditioning system for X Series plug in data acquisition devices An SCC system consists of a shielded carrier that holds up to 20 single or dual channel SCC modules for conditioning thermocouples and other transducers SCC is designed for small measurement systems where you need only a few channels of each signal type or for portable applications SCC systems also offer the most comprehensive and flexible signal connectivity options System features include the following e Modular architecture Select your measurement technology on a per channel basis e Small channel systems Condition up to 16 analog input and eight digital I O line
70. due to sampling among multiple channels at various gains In this situation the settling times can increase For more information about charge injection and sampling channels at different gains refer to the Multichannel Scanning Considerations section of Chapter 4 Analog Input I am using my device in differential analog input ground reference mode and I have connected a differential input signal but my readings are random and drift rapidly What is wrong In DIFF mode if the readings from the DAQ device are random and drift rapidly you should check the ground reference connections The signal can be referenced to a level that is considered floating with reference to the device ground reference Even if you are in DIFF mode you must still reference the signal to the same ground level as the device reference There are various methods of achieving this reference while maintaining a high National Instruments Corporation B 1 X Series User Manual Appendix B Troubleshooting X Series User Manual common mode rejection ratio CMRR These methods are outlined in the Connecting Analog Input Signals section of Chapter 4 Analog Input AI GND is an AI common signal that routes directly to the ground connection point on the devices You can use this signal if you need a general analog ground connection point to the device Refer to the When to Use Differential Connections with Ground Referenced Signal Sources section of Chapter 4 Analog In
71. each input can be configured independently On power up the filters are disabled Figure 8 3 shows an example of a low to high transition on an input that has a custom filter set to N 5 RTSI PFI or PXI_STAR Terminal Filtered input goes high when terminal X Series User Manual 1 3 4 1 2 3 4 5 is sampled high on Filter Clock five consecutive filter i clocks Filtered Input Figure 8 3 Filter Example Enabling filters introduces jitter on the input signal The maximum jitter is one period of the timebase When a RTSI input is routed directly to PFI the X Series device does not use the filtered version of the input signal 8 6 ni com Chapter 8 PFI 1 0 Protection Each DIO and PFI signal is protected against overvoltage undervoltage and overcurrent conditions as well as ESD events However you should avoid these fault conditions by following these guidelines e Ifyou configure a PFI or DIO line as an output do not connect it to any external signal source ground or power supply e Ifyou configure a PFI or DIO line as an output understand the current requirements of the load connected to these signals Do not exceed the specified current output limits of the DAQ device NI has several signal conditioning solutions for digital applications requiring high current drive e Ifyou configure a PFI o
72. eeeeeeeee 7 47 Routing Counter n Internal Output to an Output Terminal 7 47 Frequency Output Signal sssi errnss ciinii a onari aine 7 48 Routing Frequency Output to a Terminal seseeseeeesesreerseeeererree 7 48 Default Counter Timer Pinouts issostni isione aa 7 48 Counter Trig ering oi c cos ccsssssecsscvsctcessecepdedi ceases sshd sdsscssseuscdisssinessesescaaestaseacasasteiezdvaataiass 7 51 Other Counter Feature Signs ra dees eE a EEE ERE E L actus eeeuasentee E EE NE 7 52 Cascading Counters icsi heinei i E i a E a 7 52 P escaling minii o a ra E A R E A GA RRE EE 7 52 S nchronizati n Modes ission tasei h seor edei sa E nara i ERE EEE EEIE sesa 7 53 100 MHZ Source Modein cc scceets ssa evsiect shee euedh enisi 7 53 External Source Greater than 25 MHZ eceeeeeessceseeseeeeeeseeenees 7 53 External or Internal Source Less than 25 MHZ nsss 7 54 Chapter 8 PFI Using PFI Terminals as Timing Input Signals 00 eee ceeenecneeeeeeeeceeeeeeeaeeeaes 8 2 Exporting Timing Output Signals Using PFI Terminals eee eee eeeeeeeeeeeees 8 3 Using PFI Terminals as Static Digital I Os 0 ci eecceceeecesceseeeececeseseesseneseesseaeees 8 4 Using PFI Terminals to Digital Detection Events 0 0 0 0 cccccsecceseeecescescseesetseseeseenes 8 4 Connecting PFI Input Signals eee ceccseceeceecseeeseeseeeaecescesecseceseseeesesseeeaeeeaes 8 4 PFI Pullers sis2sc0 sh d iS eee ravens A Gatien ehad os eee dove E een
73. eeesccececeeceseeseeeseeseensesseenaeesaes A 20 Figure A 11 NI USB 6356 6366 Pinout ec eeeeceescceeeeeeeesecseceseeseeesesseenneesaes A 21 Figure A 12 NI PXTe 6358 6368 Pinout eee ecceseceeeceecnsecaeceaeeaeetsesseeeaeeeaes A 23 X Series User Manual xiv ni com About This Manual Conventions The X Series User Manual contains information about using the National Instruments X Series data acquisition DAQ devices with NI DAQmx 9 2 and later X Series devices feature up to 32 analog input AI channels up to four analog output AO channels up to 48 lines of digital input output DIO and four counters lt gt bold italic monospace Platform The following conventions are used in this manual Angle brackets that contain numbers separated by an ellipsis represent a range of values associated with a bit or signal name for example AO lt 3 0 gt The symbol leads you through nested menu items and dialog box options to a final action The sequence File Page Setup Options directs you to pull down the File menu select the Page Setup item and select Options from the last dialog box This icon denotes a note which alerts you to important information This icon denotes a caution which advises you of precautions to take to avoid injury data loss or a system crash When this symbol is marked on a product refer to the Read Me First Safety and Electromagnetic Compatibility for information about pr
74. for synchronizing multiple counter input and output tasks When using an arm start trigger the arm start trigger source is routed to the Counter n HW Arm signal e Start Trigger For counter output operations a start trigger can be configured to begin a finite or continuous pulse generation Once a continuous generation has triggered the pulses continue to generate until you stop the operation in software For finite generations the specified number of pulses is generated and the generation stops unless you use the retriggerable attribute When you use this attribute subsequent start triggers cause the generation to restart When using a start trigger the start trigger source is routed to the Counter n Gate signal input of the counter Counter input operations can use the arm start trigger to have start trigger like behavior e Pause Trigger You can use pause triggers in edge counting and continuous pulse generation applications For edge counting acquisitions the counter stops counting edges while the external trigger signal is low and resumes when the signal goes high or vice versa For continuous pulse generations the counter stops generating pulses while the external trigger signal is low and resumes when the signal goes high or vice versa When using a pause trigger the pause trigger source is routed to the Counter n Gate signal input of the counter National Instruments Corporation 7 51 X Series User Manual Chapter
75. generation software controls the rate at which data is generated Software sends a separate command to the hardware to initiate each update In NI DAQmx software timed generations are referred to as on demand timing Software timed generations are also referred to as immediate or static operations They are typically used for writing a single value out such as a constant digital value Hardware Timed Generations X Series User Manual With a hardware timed generation a digital hardware signal controls the rate of the generation This signal can be generated internally on your device or provided externally Hardware timed generations have several advantages over software timed generations e The time between samples can be much shorter e The timing between samples can be deterministic e Hardware timed acquisitions can use hardware triggering Hardware timed operations can be buffered or hardware timed single point HWTSP A buffer is a temporary storage in computer memory for to be transferred samples e Hardware timed single point HWTSP Typically HWTSP operations are used to write single samples at known time intervals While buffered operations are optimized for high throughput HWTSP operations are optimized for low latency and low jitter In addition HWTSP can notify software if it falls behind hardware These features make HWTSP ideal for real time control applications HWTSP operations in conjunction with the wait for
76. improve accuracy do the following Use an AI channel with a small input range instead of APFI lt 0 1 gt as your trigger source The DAQ device does not amplify the APFI lt 0 1 gt signals When using an AI channel the NI PGIA amplifies the AI channel signal before driving the analog trigger circuitry If you configure the AI channel to have a small input range you can trigger on very small voltage changes in the input signal Software calibrate the analog trigger circuitry The propagation delay from when a valid trigger condition is met to when the analog trigger circuitry emits the Analog Comparison Event may have an impact on your measurements if the trigger signal has a high slew rate If you find these conditions have a noticeable impact on your measurements you can perform software calibration on the analog trigger circuitry by configuring your task as normal and applying a known signal for your analog trigger Comparing the observed results against the expected results you can calculate the necessary offsets to apply in software to fine tune the desired triggering behavior 11 8 ni com Device Specific Information This appendix contains device pinouts specifications cable and accessory choices and other information for the following X Series devices NI 6320 NI 6321 6341 NI 6323 6343 NI 6351 6361 NI 6353 6363 NI 6356 6366 NI 6358 6368 To obtain documentation for devices not listed here refer to ni com ma
77. installed perform identically to other X Series devices for most applications and with most accessories For most applications it is not necessary to install the disk drive power connector However you should install the disk drive power connector in either of the following situations e You need more power than listed in the device specifications e You are using an SCC accessory without an external power supply such as the SC 2345 Refer to the specifications document for your device for more information about PCI Express power requirements and current limits Disk Drive Power Connector Installation X Series User Manual Before installing the disk drive power connector you must install and set up the PCI Express X Series device as described in the DAQ Getting Started guides Complete the following steps to install the disk drive power connector 1 Power off and unplug the computer 2 Remove the computer cover 3 Attach the PC disk drive power connector to the disk drive power connector on the device as shown in Figure 3 1 3 4 ni com Chapter 3 Connector and LED Information Note The power available on the disk drive power connectors in a computer can vary For example consider using a disk drive power connector that is not in the same power chain as the hard drive 1 Device Disk Drive Power Connector 2 PC Disk Drive Power Connector Figure 3 1 Connecting to the Disk Drive Power Connector 4
78. is armed Counter output operations can use the arm signal in addition to a start trigger Software can arm a counter or configure counters to be armed on a hardware signal Software calls this hardware signal the Arm Start Trigger Internally software routes the Arm Start Trigger to the Counter n HW Arm input of the counter National Instruments Corporation 7 45 X Series User Manual Chapter 7 Counters Routing Signals to Counter n HW Arm Input Any of the following signals can be routed to the Counter n HW Arm input e RTSI lt 0 7 gt e PFI lt 0 15 gt e Al Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event e Change Detection Event A counter s Internal Output can be routed to a different counter s HW Arm Some of these options may not be available in some driver software Counter n Sample Clock Signal X Series User Manual Use the Counter n Sample Clock CtrnSampleClock signal to perform sample clocked acquisitions and generations You can specify an internal or external source for Counter n Sample Clock You also can specify whether the measurement sample begins on the rising edge or falling edge of Counter n Sample Clock If the DAQ device receives a Counter n Sample Clock when the FIFO is full it reports an overflow error to the host software Using an Internal Source To use Counter n Sample Clock with an inter
79. it refers to a frequency counter A circuit that counts external pulses or clock pulses timing G 4 ni com DAC DAQ DAQ device DAQ STC3 data acquisition data transfer dB Glossary Digital to Analog Converter An electronic device often an integrated circuit that converts a digital number into a corresponding analog voltage or current In the instrumentation world DACs can be used to generate arbitrary waveform shapes defined by the software algorithm that computes the digital data pattern which is fed to the DAC 1 Data acquisition The process of collecting and measuring electrical signals from sensors transducers and test probes or fixtures and inputting them to a computer for processing 2 Data acquisition The process of collecting and measuring the same kinds of electrical signals with A D and or DIO devices plugged into a computer and possibly generating control signals with D A and or DIO devices in the same computer A device that acquires or generates data and can contain multiple channels and conversion devices DAQ devices include plug in devices PCMCIA cards and DAQPad devices which connect to a computer USB port SCXI modules are considered DAQ devices Third generation data acquisition system timing controller chip The general concept of acquiring data as in begin data acquisition or data acquisition and control See also DAQ A technique for moving digital data from one system
80. known timebase is counted for the source frequency fk The measurement time is the period of the sample clock fs Table 7 2 Frequency Measurement Methods Two Counter High Variable Sample Clocked One Counter Frequency Large Range fk Known timebase Known timebase 1 Known timebase gating period Measurement I I gating period N ti a ime T Pe hi Max fx fk frequency error VESIE fxx fx fx x E fx E K i Nx fk fx National Instruments Corporation 7 19 X Series User Manual Chapter 7 Counters Table 7 2 Frequency Measurement Methods Continued Two Counter High Variable Sample Clocked One Counter Frequency Large Range Max error fx Pa fk r flex Ter fk fx f Ee S Note Accuracy equations do not take clock stability into account Refer to your device specifications for clock stability Which Method Is Best This depends on the frequency to be measured the rate at which you want to monitor the frequency and the accuracy you desire Take for example measuring a 50 kHz signal Assuming that the measurement times for the sample clocked with averaging and two counter frequency measurements are configured the same Table 7 3 summarizes the results Table 7 3 50 kHz Frequency Measurement Methods Two Counter Variable Sample Clocked One Counter High Frequency Large Range fx 50 000 50 000 50 000 50 000 fk 100 M 10
81. much faster transfer rates than non buffered acquisitions because data is moved in large blocks rather than one point at a time One property of buffered I O operations is the sample mode The sample mode can be either finite or continuous Finite sample mode acquisition refers to the acquisition of a specific predetermined number of data samples Once the specified number of samples has been read in the acquisition stops If you use a reference trigger you must use finite sample mode Continuous acquisition refers to the acquisition of an unspecified number of samples Instead of acquiring a set number of data samples and stopping a continuous acquisition continues until you stop the operation Continuous acquisition is also referred to as double buffered or circular buffered acquisition If data cannot be transferred across the bus fast enough the FIFO becomes full New acquisitions will overwrite data in the FIFO before it can be transferred to host memory The device generates National Instruments Corporation 6 3 X Series User Manual Chapter 6 Digital 1 0 an error in this case With continuous operations if the user program does not read data out of the PC buffer fast enough to keep up with the data transfer the buffer could reach an overflow condition causing an error to be generated Hardware timed single point HWTSP Typically HWTSP operations are used to read single samples at known time intervals
82. next sample clock function provide tight synchronization between the software layer and the hardware layer Refer to the NI Developer Zone document NI DAQmx Hardware Timed Single Point Lateness Checking for more information To access this document go to ni com info and enter the Info Code daghwt sp 6 14 ni com Chapter 6 Digital I O B Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations National Instruments Corporation Buffered In a buffered generation data is moved from a PC buffer to the DAQ device s onboard FIFO using DMA before it is written to the output lines one sample at a time Buffered generation typically allow for much faster transfer rates than non buffered acquisitions because data is moved in large blocks rather than one point at a time One property of buffered I O operations is the sample mode The sample mode can be either finite or continuous Finite sample mode generation refers to the generation of a specific predetermined number of data samples Once the specified number of samples has been written out the generation stops Continuous generation refers to the generation of an unspecified number of samples Instead of generating a set number of data samples and stopping a continuous generation continues until you stop the operation There are several different methods of continuous generation that control what data is written Th
83. proper care when running signal wires between signal sources and the device The following recommendations apply mainly to AI signal routing to the device although they also apply to signal routing in general Minimize noise pickup and maximize measurement accuracy by taking the following precautions e Use differential analog input connections to reject common mode noise e Use individually shielded twisted pair wires to connect AI signals to the device With this type of wire the signals attached to the positive and negative input channels are twisted together and then covered with a shield You then connect this shield only at one point to the signal source ground This kind of connection is required for signals traveling through areas with large magnetic fields or high electromagnetic interference Refer to the NI Developer Zone document Field Wiring and Noise Considerations for Analog Signals for more information To access this document go to ni com info and enter the Info Code rdfwn3 Analog Input Timing Signals In order to provide all of the timing functionality described throughout this section MIO X Series devices have a flexible timing engine Figure 4 12 summarizes all of the timing options provided by the analog input timing engine Also refer to the Clock Routing section of Chapter 9 Digital Routing and Clock Generation X Series User Manual 4 24 ni com Chapter 4 Analog Input PFI RTSI PFI RTSI
84. signal The Counter n Internal Output signal can be internally routed to be a counter timer input or an external source for AI AO DI or DO timing signals Routing Counter n Internal Output to an Output Terminal You can route Counter n Internal Output to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal All PFIs are set to high impedance at startup National Instruments Corporation 7 47 X Series User Manual Chapter 7 Counters Frequency Output Signal The Frequency Output FREQ OUT signal is the output of the frequency Default Counter Timer Pinouts output generator Routing Frequency Output to a Terminal You can route Frequency Output to any PFI lt 0 15 gt or PXIe DSTARC terminal All PFIs are set to high impedance at startup The FREQ OUT signal also can be routed to DO Sample Clock and DI Sample Clock X Series User Manual By default NI DAQmx routes the counter timer inputs and outputs to the PFI pins Refer to Table 7 9 for the default NI DAQmx counter timer outputs for PCI Express and PXI Express devices Refer to Table 7 10 for the default NI DAQmx counter timer outputs for USB devices Table 7 9 X Series PCI Express PX Express Device Default NI DAQmx Counter Timer Pins Default Connector 0 Pin Number Counter Timer Signal Name CTR 0 SRC 37 PFI 8 CTR 0 GATE 3 PFI 9 CTR 0 AUX 45 PFI 10 CTR 0 OUT 2 PFI 12
85. started developing an application You can modify example code and save it in an application You can use examples to develop a new application or add example code to an existing application To locate LabVIEW LabWindows CVI Measurement Studio Visual Basic and ANSI C examples refer to the KnowledgeBase document Where Can I Find NI DAQmx Examples by going to ni com info and entering the Info Code dagmxexp For additional examples refer to zone ni com Table 2 1 lists the earliest NI DAQmx support version for each X Series device Table 2 1 X Series NI DAQmx Software Support Device NI DAQmx Version Support NI PCle PXIe 632x 634x NI DAQmx 9 0 and later NI PCle PXIe 635x 636x NI DAQmx 9 0 and later NI USB 634x 635x 636x NI DAQmx 9 2 and later 2 10 ni com Connector and LED Information The I O Connector Signal Descriptions and 5 V Power Source sections contain information about X Series connector signals and power Refer to Appendix A Device Specific Information for device I O connector pinouts The PCI Express Device Disk Drive Power Connector and RTSI Connector Pinout sections refer to PCI Express X Series device power and the RTSI connector on PCI Express devices The USB Device LED Patterns section refers to the X Series USB device READY and ACTIVE LEDs 1 0 Connector Signal Descriptions Table 3 1 describes the signals found on the I O connectors Not all signals are available o
86. the bias current A value of 10 KQ to 100 kQ is usually sufficient If you do not X Series User Manual 4 48 ni com Chapter 4 Analog Input use the resistors and the source is truly floating the source is not likely to remain within the common mode signal range of the instrumentation amplifier so the instrumentation amplifier saturates causing erroneous readings You must reference the source to the respective channel ground DC Coupled You can connect low source impedance and high source impedance DC coupled sources e Low Source Impedance You must reference the source to AI GND The easiest way to make this reference is to connect the positive side of the signal to the positive input of the instrumentation amplifier and connect the negative side of the signal to AI GND as well as to the negative input of the instrumentation amplifier without using resistors This connection works well for DC coupled sources with low source impedance less than 100 Q e High Source Impedance For larger source impedances this connection leaves the DIFF signal path significantly off balance Noise that couples electrostatically onto the positive line does not couple onto the negative line because it is connected to ground Hence this noise appears as a DIFF mode signal instead of a common mode signal and the instrumentation amplifier does not reject it In this case instead of directly connecting the negative line to AI GND connect the negat
87. the same behavior as a buffered sample clock position measurement 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations For information about connecting counter signals refer to the Default Counter Timer Pinouts section Two Signal Edge Separation Measurement Two signal edge separation measurement is similar to pulse width measurement except that there are two measurement signals Aux and Gate An active edge on the Aux input starts the counting and an active edge on the Gate input stops the counting You must arm a counter to begin a two edge separation measurement After the counter has been armed and an active edge occurs on the Aux input the counter counts the number of rising or falling edges on the Source The counter ignores additional edges on the Aux input The counter stops counting upon receiving an active edge on the Gate input The counter stores the count in the FIFO National Instruments Corporation 7 27 X Series User Manual Chapter 7 Counters X Series User Manual You can configure the rising or falling edge of the Aux input to be the active edge You can configure the rising or falling edge of the Gate input to be the active edge Use this type of measurement to count events or measure the time that occurs between edges on two signals This type of measurement is sometimes referred to as start stop trigger measurement second gate m
88. to another Options for data transfer are DMA and programmed I O For programmed I O transfers the CPU in the PC reads data from the DAQ device whenever the CPU receives a software signal to acquire a single data point DMA transfers use a DMA controller instead of the CPU to move acquired data from the device into computer memory Even though high speed data transfers can occur with programmed I O transfers they require the use of the CPU to transfer data DMA transfers are able to acquire data at high speeds and keep the CPU free for performing other tasks at the same time Decibel The unit for expressing a logarithmic measure of the ratio of two signal levels dB 20log10 V1 V2 for signals in volts National Instruments Corporation G 5 X Series User Manual Glossary DC device DIFF differential input digital I O digital trigger DMA DMA controller chip driver E edge detection EEPROM X Series User Manual Direct current although the term speaks of current many different types of DC measurements are made including DC Voltage DC current and DC power An electronic board that performs general analog or digital I O functions on one or multiple channels connected to a PC through a bus or I O port such as PCI PXI Ethernet USB or serial Differential mode An analog input mode consisting of two terminals both of which are isolated from computer ground whose difference is measured A
89. to synchronize multiple devices depending on your application To synchronize multiple devices to a common timebase choose one device the initiator to generate the timebase The initiator device routes its 10 MHz reference clock to one of the RTSI lt 0 7 gt or PFI lt 0 15 gt signals National Instruments Corporation 9 3 X Series User Manual Chapter 9 Digital Routing and Clock Generation USB Devices All devices including the initiator device receive the 10 MHz reference clock from RTSI or PFI This signal becomes the external reference clock A PLL on each device generates the internal timebases synchronous to the external reference clock Once all of the devices are using or referencing a common timebase you can synchronize operations across them by sending a common start trigger out across the RTSI or PFI bus and setting their sample clock rates to the same value With the PFI bus and the routing capabilities of X Series USB devices there are several ways to synchronize multiple devices depending on your application To synchronize multiple devices to a common timebase choose one device the initiator to generate the timebase The initiator device routes its 10 MHz reference clock to one of the PFI lt 0 15 gt signals All devices including the initiator device receive the 10 MHz reference clock from PFI This signal becomes the external reference clock A PLL on each device generates the internal timebas
90. up e Always count down e Count up when the Counter 0 B input is high count down when it is low For information about connecting counter signals refer to the Default Counter Timer Pinouts section National Instruments Corporation 7 5 X Series User Manual Chapter 7 Counters Pulse Width Measurement In pulse width measurements the counter measures the width of a pulse on its Gate input signal You can configure the counter to measure the width of high pulses or low pulses on the Gate signal You can route an internal or external periodic clock signal with a known period to the Source input of the counter The counter counts the number of rising or falling edges on the Source signal while the pulse on the Gate signal is active You can calculate the pulse width by multiplying the period of the Source signal by the number of edges returned by the counter A pulse width measurement will be accurate even if the counter is armed while a pulse train is in progress If a counter is armed while the pulse is in the active state it will wait for the next transition to the active state to begin the measurement Refer to the following sections for more information about X Series pulse width measurement options e Single Pulse Width Measurement e Implicit Buffered Pulse Width Measurement e Sample Clocked Buffered Pulse Width Measurement e Hardware Timed Single Point Pulse Width Measurement Single Pulse Width Measurement Wi
91. value decrements with each pulse on AI Sample Clock until the value reaches zero and all desired samples have been acquired Al Start Trigger I Al Sample Clock Sample Counter 4 1 8 1 2 1 4 o Figure 4 14 Posttriggered Data Acquisition Example Pretriggered data acquisition allows you to view data that is acquired before the trigger of interest in addition to data acquired after the trigger Figure 4 15 shows a typical pretriggered DAQ sequence AI Start Trigger ai StartTrigger can be either a hardware or software signal If AI Start Trigger is set up to be a software start trigger an output pulse appears on the ai StartTrigger line when the acquisition begins When the AI Start Trigger pulse occurs the sample counter is loaded with the number of pretriggered samples in this example four The value decrements with each pulse on AI Sample Clock until the value reaches zero The sample counter is then loaded with the number of posttriggered samples in this example three Al Start Trigger Al Reference Trigger n a DS Al Sample Clock l me i ww iw Sample Counter 3 2 1 0 2 2 2 14 50 Figure 4 15 Pretriggered Data Acquisition Example 4 26 ni com Chapter 4 Analog Input If an AI Reference Trigger ai ReferenceTrigger puls
92. www pxisa org X Series User Manual 9 10 ni com Bus Interface The bus interface circuitry of X Series devices efficiently moves data between host memory and the measurement and acquisition circuits X Series devices are available for the following platforms e PCI Express e PXI Express e USB Data Transfer Methods Refer to the following sections for information about bus interface data transfer methods for X Series devices PCI Express PXI Express Device Data Transfer Methods The primary ways to transfer data across the PCI Express bus are as follows e Direct Memory Access DMA DMA is a method to transfer data between the device and computer memory without the involvement of the CPU This method makes DMA the fastest available data transfer method NI uses DMA hardware and software technology to achieve high throughput rates and increase system utilization DMA is the default method of data transfer for PCI Express and PXI Express devices NI PCI Express X Series and PXI Express devices have eight fully independent DMA controllers for high performance transfers of data blocks One DMA controller is available for each measurement and acquisition block Analog input Analog output Counter 0 Counter 1 Counter 2 Counter 3 National Instruments Corporation 10 1 X Series User Manual Chapter 10 Bus Interface Digital waveform generation digital output Digital waveform ac
93. 0 M 1 000 100 M Measurement 1 02 1 1 time mS N 50 Max frequency 512 25 1 000 3 error Hz Max error 00102 05 2 001 X Series User Manual From this you can see that while the measurement time for one counter is shorter the accuracy is best in the sample clocked and two counter large range measurements For another example Table 7 4 shows the results for 5 MHz 7 20 ni com Chapter 7 Counters Table 7 4 5 MHz Frequency Measurement Methods Two Counter Variable Sample Clocked One Counter High Frequency Large Range fx 5M 5M 5M 5M fk 100 M 100 M 1 000 100 M Measurement 1 0002 1 1 time mS N 5 000 Max Frequency 50 01 263 k 1 000 50 error Hz Max Error 001 5 26 02 001 National Instruments Corporation 7 21 Again the measurement time for the one counter measurement is lowest but the accuracy is lower Note that the accuracy and measurement time of the sample clocked and two counter large range are almost the same The advantage of the sample clocked method is that even when the frequency to measure changes the measurement time does not and error percentage varies little For example if you configured a large range two counter measurement to use a divide down of 50 for a 50 k signal then you would get the accuracy measurement time and accuracy listed in Table 7 3 But if your signal ramped up to 5 M then with a divide down of
94. 1 4 41 7 DGND PFI 13 P2 5 40 6 PFI5 P1 5 PFI 15 P2 7 39 5 PFI6 P1 6 PFI 7 P1 7 38 4 D GND PFI 8 P2 0 37 3 PFI9 P2 1 D GND 36 2 PFI12 P2 4 D GND 35 1 PFI14 P2 6 oe NC No Connect Figure A 1 NI PCle 6320 Pinout 3 Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help National Instruments Corporation A 3 X Series User Manual Appendix A Device Specific Information NI 6320 Specifications Refer to the NI 632x Specifications for more detailed information about the NI 6320 device NI 6320 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information X Series User Manual A 4 ni com Appendix A Device Specific Information NI 6321 6341 The following sections contain information about the NI PClIe 6321 NI PCle PXIe 6341 and NI USB 6341 devices NI 6321 6341 Pinouts Figure A 2 shows the pinout of the NI PCIe 6321 and NI PCle PXIe 634 1 devices For a detailed description of each signal refer to the I O Connector Signal Descriptions section of Chapter 3 Connector and LED Information
95. 1 Good Poor two counters X Series User Manual 7 22 ni com Table 7 5 Frequency Measurement Method Comparison Chapter 7 Counters Measures High Measures Low Number of Number of Frequency Frequency Counters Measurements Signals Signals Method Used Returned Accurately Accurately Large range of 2 1 Good Good frequencies with two counters Sample clocked 1 1 Good Good averaged For information about connecting counter signals refer to the Default Counter Timer Pinouts section Period Measurement In period measurements the counter measures a period on its Gate input signal after the counter is armed You can configure the counter to measure the period between two rising edges or two falling edges of the Gate input signal You can route an internal or external periodic clock signal with a known period to the Source input of the counter The counter counts the number of rising or falling edges occurring on the Source input between the two active edges of the Gate signal You can calculate the period of the Gate input by multiplying the period of the Source signal by the number of edges returned by the counter Period measurements return the inverse results of frequency measurements Refer to the Frequency Measurement section for more information Position Measurement National Instruments Corporation You can use the counters to perform position measurements with q
96. 10 V to 10 V the voltage of each code of a 16 bit ADC is X Series User Manual 10V 10V _ a 305 uV 4 2 ni com Chapter 4 Analog Input MIO X Series devices use a calibration method that requires some codes typically about 5 of the codes to lie outside of the specified range This calibration method improves absolute accuracy but it increases the nominal resolution of input ranges by about 5 over what the formula shown above would indicate Choose an input range that matches the expected input range of your signal A large input range can accommodate a large signal variation but reduces the voltage resolution Choosing a smaller input range improves the voltage resolution but may result in the input signal going out of range For more information about setting ranges refer to the NJ DAQmx Help or the LabVIEW Help Table 4 1 shows the input ranges and resolutions supported by each MIO X Series device Table 4 1 MIO X Series Device Input Range and Nominal Resolution Nominal Resolution Assuming MIO X Series Device Input Range 5 Over Range NI 632x 634x 10 V to 10 V 320 uV 5 V to5 V 160 uV 1 Vtol V 32 uV 200 mV to 200 mV 6 4 uV NI 635 1 6353 636 1 6363 10 V to 10 V 320 uV 5 V to5 V 160 uV 2 V to2 V 64 uV 1VtolV 32 uV 500 mV to 500 mV 16 uV 200 mV to 200 mV 6 4 uV 100 mV to 100 mV 3 2 uV National Instruments Corporation 4 3 X Series Us
97. 2 15 D GND P0 7 14 45V P0 3 13 D GND PFI 11 P2 3 12 PD GND TERMINAL 35 TERMINAL 1 PFI 10 P2 2 11 PFI 0 P1 0 D GND 10 PFI4 P1 1 PFI 2 P1 2 9 D GND PFI 3 P1 3 8 45V PFI 4 P1 4 7 D GND PFI 13 P2 5 6 PFI 5 P1 5 PFI 15 P2 7 5 PFI 6 P1 6 PFI 7 P1 7 4 D ND PFI 8 P2 0 3 PFI9 P2 1 D GND 2 PFI 12 P2 4 D GND 1 PFI 14 P2 6 NC No Connect Figure A 10 NI PXle 6356 6366 Pinout X Series User Manual A 20 ni com Appendix A Device Specific Information B Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help Figure A 11 shows the pinout of the NI USB 6356 6366 For a detailed description of each signal refer to the 7 O Connector Signal Descriptions section of Chapter 3 Connector and LED Information 17 Al4 PFI 8 P2 0 Al 0 iD P0 0 659 Al 0 2 I Sts Ala PO 1 66 IS DIGNE RIENG sl S 19_ Ai ano 67 PFI 9 P2 1 Al 1 4 kl Sj 20 A 5 P0 3 68 IS DIGNE aE sl Sf 21 als BoA 69l N PFI 10 P2 2 Al GND el kal Sj 22 A GND PO 5 70 9 D OND aren FSI Si 23 A 6 nl PFI 11 P2 3 ais 81K S 5 z a ais 72 9 TE Al GND S Shee a7 PFIO P1 0 73 19 SNe Al 3 10 SI S a7
98. 43 A 12 NI 6351 6361 A 15 NI 6353 6363 A 19 NI 6356 6366 A 22 NI 6358 6368 A 24 stacking 1 3 start trigger 7 51 static DIO 6 3 using PFI terminals as 8 4 strain relief 1 6 support technical C 1 switching from a large to a small input range MIO X Series devices 4 7 synchronization modes 100 MHz source 7 53 external source greater than 40 MHz 7 53 external source less than 40 MHz 7 54 internal source less than 40 MHz 7 54 synchronizing multiple devices 9 3 T technical support C 1 xx terminal configuration analog input MIO X Series devices 4 1 Simultaneous MIO X Series devices 4 41 terminals connecting counter 7 48 NI DAQmx default counter 7 48 Timebase 100 kHz 9 2 100 MHz 9 2 20 MHz 9 2 ni com timed acquisitions MIO X Series devices 4 9 Simultaneous MIO X Series devices 4 44 timing output signals exporting using PFI terminals 8 3 training xix training and certification NI resources C 1 transducers 2 8 trigger 11 1 analog actions 11 4 arm start 7 51 pause 7 51 PXI 9 8 PXI_STAR 9 9 Star Trigger 9 9 start 7 51 triggering 11 1 analog accuracy 11 8 analog actions 11 4 analog edge 11 5 analog edge with hysteresis 11 6 analog input MIO X Series devices 4 11 Simultaneous MIO X Series devices 4 45 analog input channels 11 4 analog types 11 5 analog window 11 7 APFI lt 0 1 gt terminals 11 3 counter 7 51 with a digital source 11 1 with an analog sour
99. 7 31 single pulse with start trigger 7 31 software timed 5 3 6 14 getting started 1 1 AI applications in software MIO X Series devices 4 40 AO applications in software 5 13 DIO applications in software 6 29 ghost voltages when sampling multiple channels B 1 Ground 4 46 X Series User Manual l 8 ground reference connections checking B 1 settings analog input MIO X Series devices 4 4 MIO X Series devices 4 2 4 4 ground referenced signal sources connecting MIO X Series devices 4 19 description MIO X Series devices 4 19 using in differential mode MIO X Series devices 4 22 using in NRSE mode MIO X Series devices 4 23 when to use in differential mode MIO X Series devices 4 20 when to use in NRSE mode MIO X Series devices 4 20 when to use in RSE mode MIO X Series devices 4 21 H hardware 2 1 hardware installation 1 2 hardware timed acquisitions MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 generations 5 3 6 14 hardware timed single point acquisitions MIO X Series devices 4 11 hardware timed generations 5 3 6 4 6 14 help technical support C 1 hysteresis analog edge triggering with 11 6 ni com T O connector 3 1 NI PCle PXIe 6341 pinout A 5 NI PCle PXIe 6361 pinout A 13 NI PCle PXIe 6363 pinout A 16 NI PCle 6320 pinout A 2 NI PCle 6321 pinout A 5 NI PCle 6323 6343 pinout A 9 NI PCle 6351 pinout A 13 NI PCle 6353 pinout A 16 NI PXIe 6356 6366 pinout
100. 8 10 V to 10 V 320 uV 5 V to5 V 160 uV 2 V to2 V 64 uV 1 Vtol V 32 uV Working Voltage Range On most Simultaneous MIO X Series devices the PGIA operates normally by amplifying signals of interest while rejecting common mode signals under the following three conditions e The common mode voltage V m which is equivalent to subtracting AI lt 0 x gt GND from AI lt 0 x gt must be less than 10 V This Vem is a constant for all range selections e The signal voltage V which is equivalent to subtracting AI lt 0 x gt from AI lt 0 x gt must be less than or equal to the range selection of the given channel If V is greater than the range selected the signal clips and information are lost e The total working voltage of the positive input which is equivalent to Vem V or subtracting AI lt 0 x gt GND from AI lt 0 x gt must be less than 11 V If any of these conditions are exceeded the input voltage is clamped until the fault condition is removed National Instruments Corporation 4 43 X Series User Manual Chapter 4 Analog Input Analog Input Data Acquisition Methods When performing analog input measurements you either can perform software timed or hardware timed acquisitions X Series User Manual Software timed acquisitions With a software timed acquisition software controls the rate of the acquisition Software sends a separate command to the hardware to initiate each A
101. AO GND and D GND are connected on the X Series device they are connected by small traces to reduce crosstalk between subsystems Each ground has a slight difference in potential 5 V Power Source The 5 V terminals on the I O connector supply 5 V referenced to D GND Use these terminals to power external circuitry UN Caution Never connect the 5 V power terminals to analog or digital ground or to any other voltage source on the X Series device or any other device Doing so can damage the device and the computer NI is not liable for damage resulting from such a connection The power rating on most devices is 4 75 to 5 25 VDC at 1 A National Instruments Corporation 3 3 X Series User Manual Chapter 3 Connector and LED Information Refer to the specifications document for your device to obtain the device power rating 3 Note PCI Express X Series Devices PCI Express X Series devices supply less than 1 A of 5 V power unless you use the disk drive power connector Refer to the PCI Express Device Disk Drive Power Connector section for more information PCI Express Device Disk Drive Power Connector PCI Express X Series Devices The disk drive power connector is a four pin hard drive connector on PCI Express devices that when connected increases the current the device can supply on the 5 V terminal When to Use the Disk Drive Power Connector PCI Express X Series devices without the disk drive power connector
102. Analog Comparison Event an analog trigger AI Sample Clock Timebase is not available as an output on the I O connector AI Sample Clock Timebase is divided down to provide one of the possible sources for AI Sample Clock You can configure the polarity selection for AI Sample Clock Timebase as either rising or falling edge except on 100 MHz Timebase or 20 MHz Timebase National Instruments Corporation 4 55 X Series User Manual Chapter 4 Analog Input Al Hold Complete Event Signal The AI Hold Complete Event ai HoldCompleteEvent signal generates a pulse after each A D conversion begins You can route AI Hold Complete Event out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The polarity of AI Hold Complete Event is software selectable but is typically configured so that a low to high leading edge can clock external AI multiplexers indicating when the input signal has been sampled and can be removed Al Start Trigger Signal Use the AI Start Trigger ai StartTrigger signal to begin a measurement acquisition A measurement acquisition consists of one or more samples If you do not use triggers begin a measurement with a software command Once the acquisition begins configure the acquisition to stop e When a certain number of points are sampled in finite mode e After a hardware reference trigger in finite mode e With a software command in continuous mode An acquisition that uses a start trigger b
103. Base document Earth Grounding for Test and Measurement Devices by going to ni com info and entering the Info Code earthground You can attach and solder a wire to the chassis ground lug of the USB X Series device as shown in Figure 1 1 The wire should be as short as possible Figure 1 1 Grounding an USB X Series Device through the Chassis Ground Lug Mounting USB X Series Devices USB X Series Devices You can use your USB X Series device on a desktop mount it to a wall or panel as described in the Panel Wall Mounting section or mount it to a standard DIN rail as described in the DIN Rail Mounting section National Instruments Corporation 1 3 X Series User Manual Chapter 1 Getting Started X Series User Manual Panel Wall Mounting Complete the following steps to mount your USB X Series device to a wall or panel using the USB X Series mounting kit part number 781514 01 not included in your X Series USB device kit Refer to Figure 1 2 1 Use three 8 32 flathead screws to attach the backpanel wall mount to the panel wall Tighten the screws with a 2 Phillips screwdriver to a torque of 1 1 N m 10 lb in Figure 1 2 Using the USB X Series Mounting Kit on a Wall or Panel 2 Place the USB X Series device on the backpanel wall mount with the signal wires facing down and the device bottom sitting on the backpanel wall mount lip 3 While holding
104. C 2 9 SCXI 2 8 self calibration 1 2 semi period measurement 7 12 implicit buffered 7 12 single 7 12 sensors 2 8 settings analog input ground reference MIO X Series devices 4 4 AO reference selection 5 2 short high quality cabling MIO X Series devices 4 7 signal conditioning 2 7 options 2 8 signal connections analog input Simultaneous MIO X Series devices 4 46 signal descriptions 3 1 signal routing RTSI bus 9 4 signal sources floating MIO X Series devices 4 13 Simultaneous MIO X Series devices 4 46 ground referenced MIO X Series devices 4 19 Simultaneous MIO X Series devices 4 46 signals AI Convert Clock 4 30 AI Convert Clock Timebase 4 34 AI Hold Complete Event 4 34 Simultaneous MIO X Series devices 4 56 AI Pause Trigger MIO X Series devices 4 38 Simultaneous MIO X Series devices 4 59 National Instruments Corporation l 13 Index AI Reference Trigger MIO X Series devices 4 37 Simultaneous MIO X Series devices 4 58 AI Sample Clock MIO X Series devices 4 28 Simultaneous MIO X Series devices 4 53 AI Sample Clock Timebase MIO X Series devices 4 30 Simultaneous MIO X Series devices 4 55 AI Start Trigger MIO X Series devices 4 35 Simultaneous MIO X Series devices 4 56 analog input MIO X Series devices 4 24 Simultaneous MIO X Series devices 4 51 analog output 5 6 AO Pause Trigger 5 8 AO Sample Clock 5 10 AO Sample Clock Timebase 5 12 AO Start Trigger 5 7 Change Detect
105. CTR1Z 77 PFI 4 CTR1B 87 PFI 11 CTR 2 SRC 73 PFI 0 CTR 2 GATE 74 PFI 1 CTR 2 AUX 75 PFI 2 CTR 2 OUT 93 PFI 14 CTR2A 73 PFI 0 CTR2Z 74 PFI 1 CTR2B 75 PFI 2 CTR 3 SRC 78 PFI 5 CTR 3 GATE 79 PFI 6 CTR 3 AUX 80 PFI 7 CTR 3 OUT 95 PFI 15 CTR3A 78 PFI 5 CTIR3Z 79 PFI 6 CTR3B 80 PFI 7 FREQ OUT 93 PFI 14 You can use these defaults or select other sources and destinations for the counter timer signals in NI DAQm x Refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help for more information about how to connect your signals for common counter measurements and generations X Series default PFI lines for counter functions are listed in X Series Physical Channels in the NI DAQmx Help or the LabVIEW Help 7 50 ni com Chapter 7 Counters Counter Triggering Counters support three different triggering actions e Arm Start Trigger To begin any counter input or output function you must first enable or arm the counter Software can arm a counter or configure counters to be armed on a hardware signal Software calls this hardware signal the Arm Start Trigger Internally software routes the Arm Start Trigger to the Counter n HW Arm input of the counter For counter output operations you can use it in addition to the start and pause triggers For counter input operations you can use the arm start trigger to have start trigger like behavior The arm start trigger can be used
106. CTROA 37 PFI 8 CTROZ 3 PFI 9 CTROB 45 PFI 10 CTR 1 SRC 42 PFI 3 CTR 1 GATE 41 PFI 4 CTR 1 AUX 46 PFI 11 CTR 1 OUT 40 PFI 13 CTRIA 42 PFI 3 CTR1Z 41 PFI 4 CTR1B 46 PFI 11 CTR 2 SRC 11 PFI 0 7 48 ni com Chapter 7 Counters Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins Continued Default Connector 0 Pin Number Counter Timer Signal Name CTR 2 GATE 10 PFI 1 CTR 2 AUX 43 PFI 2 CTR 2 OUT 1 PFI 14 CTR2A 11 PFI 0 CTR2Z 10 PFI 1 CTR2B 43 PFI 2 CTR 3 SRC 6 PFI 5 CTR 3 GATE 5 PFI 6 CTR 3 AUX 38 PFI 7 CTR 3 OUT 39 PFI 15 CTR3A 6 PFI 5 CTR3Z 5 PFI 6 CTR3B 38 PFI 7 FREQ OUT 1 PFI 14 Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins National Instruments Corporation Counter Timer Signal Default Pin Number Name CTR 0 SRC 81 PFI 8 CTR 0 GATE 83 PFI 9 CTR 0 AUX 85 PFI 10 CTR 0 OUT 89 PFI 12 CTROA 81 PFI 8 CTROZ 83 PFI 9 CTROB 85 PFI 10 CTR 1 SRC 76 PFI 3 CTR 1 GATE 77 PFI 4 CTR 1 AUX 87 PFI 11 7 49 X Series User Manual Chapter 7 Counters X Series User Manual Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins Continued Counter Timer Signal Default Pin Number Name CTR 1 OUT 91 PFI 13 CTRIA 76 PFI 3
107. DAQ X Series X Series User Manual NI 632x 634x 635x 636x Devices Fran ais Deutsch AAG SRO APX ni com manuals August 2010 370784B 01 we NATIONAL p INSTRUMENTS Worldwide Technical Support and Product Information ni com National Instruments Corporate Headquarters 11500 North Mopac Expressway Austin Texas 78759 3504 USA Tel 512 683 0100 Worldwide Offices Australia 1800 300 800 Austria 43 662 457990 0 Belgium 32 0 2 757 0020 Brazil 55 11 3262 3599 Canada 800 433 3488 China 86 21 5050 9800 Czech Republic 420 224 235 774 Denmark 45 45 76 26 00 Finland 358 0 9 725 72511 France 01 57 66 24 24 Germany 49 89 7413130 India 91 80 41190000 Israel 972 3 6393737 Italy 39 02 41309277 Japan 0120 527196 Korea 82 02 3451 3400 Lebanon 961 0 1 33 28 28 Malaysia 1800 887710 Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 328 90 10 Portugal 351 210 311 210 Russia 7 495 783 6851 Singapore 1800 226 5886 Slovenia 386 3 425 42 00 South Africa 27 0 11 805 8197 Spain 34 91 640 0085 Sweden 46 0 8 587 895 00 Switzerland 41 56 2005151 Taiwan 886 02 2377 2222 Thailand 662 278 6777 Turkey 90 212 279 3031 United Kingdom 44 0 1635 523545 For further support information refer to the Technical Support and Professional Services appendix To comment on National Instruments documentation refer to the National Instruments Web site at ni
108. DC conversion In NI DAQmx software timed acquisitions are referred to as having on demand timing Software timed acquisitions are also referred to as immediate or static acquisitions and are typically used for reading a single sample of data Hardware timed acquisitions With hardware timed acquisitions a digital hardware signal AI Sample Clock controls the rate of the acquisition This signal can be generated internally on your device or provided externally Hardware timed acquisitions have several advantages over software timed acquisitions The time between samples can be much shorter The timing between samples is deterministic Hardware timed acquisitions can use hardware triggering Hardware timed operations can be buffered or hardware timed single point HWTSP A buffer is a temporary storage in computer memory for to be transferred samples Buffered In a buffered acquisition data is moved from the DAQ device s onboard FIFO memory to a PC buffer using DMA before it is transferred to application memory Buffered acquisitions typically allow for much faster transfer rates than HWTSP acquisitions because data is moved in large blocks rather than one point at a time One property of buffered I O operations is the sample mode The sample mode can be either finite or continuous e Finite sample mode acquisition refers to the acquisition of a specific predetermined number of data samples Once the specif
109. Data Acquisition Methods 0 eee eee eeeeeseceseeeceeeeseeeceaeeeecsesseeeaeenaes 6 2 Software Timed Acquisitions 000 0 cece eeseeseceseeseeeeecseeseeseeeaeseeeaeeeeeaeessees 6 2 Hardware Timed Acquisitions ceeeeeesesseeseeseceseeeeseseeneceseeaeeneesseeeaeesaes 6 3 Digital Input Trigsern g esi techbesccveeee habs Sees Gy hese obs le eal a beac ieee 6 4 X Series User Manual viii ni com Contents Digital Waveform ACQUISITION eee eeeeseeeeeeseceeeeseceeeeaeeseeeseeseessessaeeaeenaeeasensenaes 6 5 DI Sample Clock Signal ipsis isinisi eisers eiiiai 6 6 Using an Internal SOUrCe seesseeeseeeseeeesreresrsrtsrsrrsrsresrsresresesresrssre 6 6 Using an External SOurces c i 2 csecssecesteecacaisiseecesesessigvecnscsvusnseessaeenes 6 6 Routing DI Sample Clock to an Output Terminal 00 0 6 7 Other Timing Requirements eee ee eeeeeeeseceeeeeeneeeeenseteeeenees 6 7 DI Sample Clock Timebase Signal eee cee ceeceeeseeeseeeeeeseeseeeseeseeeseeees 6 7 DEStart Trigger Sigtial oss ccesissstescesessestesen se staeasencasagtssescbapebvtgcacnsseouenasebeenasess 6 8 Retrige rable DD citonte siie ates ERTE EEE 6 8 Using a Digital Source j cscisscsscescsscsesdeiessessecsescoepessecscaesessessbeezcasasate 6 9 Using an Analog Source oe eceecceseesceeseceseeseceseeaeeneesaeenseseeeenees 6 10 Routing DI Start Trigger to an Output Terminal 0 0 6 10 DI Reference Trigger Signal enuie oriens asiki 6 10 Using a Digital SOurCe i csccscc
110. E E A ERE 9 8 PXL TETS osea AAE Soon EE E ik eee 9 8 PXI STAR Trigger scsessisccsitessceielssseessdeictesceasecatasisesacaddaissaccsycesctascopsssteatsiaasees 9 9 PXT STAR Pilters an na R eines E 9 9 PXile DSTARKA Cnapan a E T eet Ea ea 9 9 Chapter 10 Bus Interface Data Transfer Methods ricinos siira aisti inii e a cen E EEE eieeestevens 10 1 PCI Express PXI Express Device Data Transfer Methods 0 eee 10 1 USB Device Data Transfer Methods 00 cece eeeeeeeeseeeseeseceseeseeseeeseeneeeeeaes 10 2 PXI Express Considerations stione A i a 10 3 PXI and PXI Express Clock and Trigger Signals seesseeeeeseeeeeeeeeeeerereeeee 10 3 PXI EXPres Se e ittre ee aae eaoaai iaa aioe anatoa ias iis 10 3 Chapter 11 Triggering Triggering with a Digital SOUC eiseirge E 11 1 Triggering with an Analog Source eis es eesceeceeceseseeeesecseeeseeseeesecseeeaeeneeeaeenseeaes 11 2 APB lt O 1 gt Terminal S a sseitin lenis hecho ease R 11 3 Analog Input Channel s y 1 6 3 ccssuecs seecegs eel UN ade ced genesis dude dase Nae Se eaaa 11 3 Analog Input Channels on MIO X Series Devices 0 0 0 eee 11 4 Analog Input Channels on Simultaneous MIO X Series Devices 11 4 Analog Tre eer A CtOns icc os sedis redii eenaa lenns evi ceevecees tev enceoatecvatduvessaesentecies 11 4 Routing Analog Comparison Event to an Output Terminal 11 5 Analog Trp ger Types e e En r E L eyivets toy ave EA E be EEE EE EE E asda 11 5 Analog THZgerACCUraACY oeio E e Ea
111. E E E E E Saa 11 8 Appendix A Device Specific Information INI KEO E EE E E E E E E E ee A 2 NI6321 6341 pre n E A e a a a he ce ea ee RAILS A 5 I E EATE o PAES EEE EE AEA E E A EE E E E E A 9 NI 6351 63 60l runie a a Pe een ee ee peel ae I A 13 INE6353 0363 v2 c0ccesus teaes seats site ieee NEE EREE E IAE R E eaten A 16 NT 6350 63600 rrn pe n a ds ees Re reed ae al Aree Anis A 20 INPG358 6368 AECA EAEE E out sui vais savevocy ss suredvet E EE A 23 National Instruments Corporation xiii X Series User Manual Contents Appendix B Troubleshooting Appendix C Technical Support and Professional Services Glossary Index Device Pinouts Figure A 1 NI PCTe 6320 Pinout eee ceeeseeseceeeeseessececesecaeceaeeaeensessessaeeeaes A 3 Figure A 2 NI PCle 6321 and NI PCle PXIe 6341 Pinout eens A 6 Figure A 3 NI USB 6341 Pinout ese eseesececeesecseeeneceseeneceaeeaeensesseeeaeesaes A 7 Figure A 4 NI PCTe 6323 6343 Pinout oo eeeeeeceeseceseeneceseeneenseeaeeesesseeeseeeaes A 9 Figure A 5 NI USB 6343 Pinout eee ceeeseeseceeeeseeneececesecaeceaeeaeensesseeeseesaes A 11 Figure A 6 NI PCle 6351 and NI PCle PXIe 6361 Pinout eee A 13 Figure A 7 NI USB 6351 6361 Pinout eee eee esceeeceeceseeneceseeseenserseeeseesaes A 14 Figure A 8 NI PCle 6353 and NI PCle PXIe 6363 Pinout ee esses eens A 16 Figure A 9 NI USB 6353 6363 Pinout eceseeceescceeeceeceseeseceseeaeetsetseseseesaes A 18 Figure A 10 NI PXTe 6356 6366 Pinout eee
112. E mode Al lt 0 31 gt So co Programmable Gain Instrumentation Amplifier Floating Signal Source So Input Multiplexers PGIA Measured Voltage Q m o me Al SENSE y TAT GND 1 0 Connector Da Selected Channel in RSE Configuration Figure 4 9 RSE Connections for Floating Signal Sources Using the DAQ Assistant you can configure the channels for RSE or NRSE input modes Refer to the Configuring AI Ground Reference Settings in Software section for more information about the DAQ Assistant Connecting Ground Referenced Signal Sources What Are Ground Referenced Signal Sources A ground referenced signal source is a signal source connected to the building system ground It is already connected to a common ground point with respect to the device assuming that the computer is plugged into the same power system as the source Non isolated outputs of instruments and devices that plug into the building power system fall into this category The difference in ground potential between two instruments connected to the same building power system is typically between 1 and 100 mV but the difference can be much higher if power distribution circuits are improperly connected If a grounded signal source is incorrectly measured this difference can appear as measurement error Follow the connection National Instruments Corporation 4 19 X Series User
113. ETS X Series User Manual 7 30 ni com Chapter 7 Counters Simple Pulse Generation Refer to the following sections for more information about the X Series simple pulse generation options e Single Pulse Generation e Single Pulse Generation with Start Trigger Single Pulse Generation The counter can output a single pulse The pulse appears on the Counter n Internal Output signal of the counter You can specify a delay from when the counter is armed to the beginning of the pulse The delay is measured in terms of a number of active edges of the Source input You can specify a pulse width The pulse width is also measured in terms of a number of active edges of the Source input You also can specify the active edge of the Source input rising or falling Figure 7 27 shows a generation of a pulse with a pulse delay of four and a pulse width of three using the rising edge of Source Counter Armed SOURCE OUT Figure 7 27 Single Pulse Generation Single Pulse Generation with Start Trigger The counter can output a single pulse in response to one pulse on a hardware Start Trigger signal The pulse appears on the Counter n Internal Output signal of the counter You can route the Start Trigger signal to the Gate input of the counter You can specify a delay from the Start Trigger to the beginning of the pulse You also can specify the pulse width
114. Flexible AI and AO sample and convert timing Many triggering modes Independent AI AO DI DO and counter FIFOs Generation and routing of RTSI signals for multi device synchronization Generation and routing of internal and external timing signals Four flexible 32 bit counter timer modules with hardware gating Digital waveform acquisition and generation Static DIO signals True 5 V high current drive DO DI change detection DO watchdog timers PLL for clock synchronization Seamless interface to signal conditioning accessories PCI Express PXI Express interface Independent scatter gather DMA controllers for all acquisition and generation functions 2 2 ni com Chapter 2 DAQ System Overview Calibration Circuitry The X Series analog inputs and outputs have calibration circuitry to correct gain and offset errors You can calibrate the device to minimize AI and AO errors caused by time and temperature drift at run time No external circuitry is necessary an internal reference ensures high accuracy and stability over time and temperature changes Factory calibration constants are permanently stored in an onboard EEPROM and cannot be modified When you self calibrate the device as described in the Device Self Calibration section of Chapter 1 Getting Started software stores new constants in a user modifiable section of the EEPROM To return a device to its initial factory calibration settings software can copy the factory calibratio
115. GND s APFI 0 PFI 3 P1 3_76 IS 93 PFI 14 P2 6 REND PFI 4 P1 4_77 IS Sll o4 D GND i AO 1 CRUSE LD 28 1S GJ 95 PFI 15 P2 7 KOENE PFI6 P1 6 79 X S os 5v PFI7 P1 7 80 S Figure A 7 NI USB 6351 6361 Pinout 3 Note Refer to Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help X Series User Manual A 14 ni com Appendix A Device Specific Information NI 6351 6361 Specifications Refer to the NI 6351 6353 Specifications for more detailed information about the NI 6351 device Refer to the NI 6361 6363 Specifications for more detailed information about the NI 6361 device NI 6351 6361 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information National Instruments Corporation A 15 X Series User Manual Appendix A Device Specific Information NI 6353 6363 The following sections contain information about the NI PClIe 6353 NI USB 6353 NI PCle PXIe 6363 and NI USB 6363 devices NI 6353 6363 Pinout Figure A 8 shows the pinout of the NI PCle 6353 and NI PCle PXIe 6363 The
116. I O signals appear on two 68 pin connectors For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information 0 Al 0 GND 9 Al 1 2 Al 2 GND 11 Al3 SENSE 12 Al 4 5 Al 5 GND 14 Al 6 7 Al 7 GND AO GND AO GND D GND P0 0 P0 5 D GND P0 2 PO 7 P0 3 PFI 11 P2 3 PFI 10 P2 2 D GND PFI 2 P1 2 PFI 3 P1 3 P P P P gt E r e r eor n or or o FI 4 P1 4 FI 13 P2 5 Fl 15 P2 7 Fl 7 P1 7 PFI 8 P2 0 D GND D GND 68 Ww R 67 oO oO 66 ied N 65 wo 64 joy oOo 63 N oO 62 ped 61 N Ni 60 NO D 59 N a 58 N R 57 N oO 56 N N 55 N 54 N ej 53 oO 52 51 l 50 Pr D 49 a 48 P 47 wo 46 N 45 44 o 43 o 42 41 40 39 38 37 36 35 N V Aaj QO No 8 Al 0 1 Al 1 GND 10 Al 2 3 Al 3 GND 4 Al 4 GND 13 Al 5 6 Al 6 GND 15 Al 7 AOO AO 1 APFI 0 P0 4 D GND PO 1 P0 6 D GND 5 V D GND D GND PFI 0 P1 0 PFI 1 P1 1 D GND 5V D GND PEIS PARS PFI 6 P1 6 D GND PFI 9 P2 1 PFI 12 P2 4 PFI 14 P2 6 rPrerrrrrrrrrres TERMINAL 68 TERM
117. INAL 34 TERMINAL 1 TERMINAL 35 CONNECTOR 1 Al 16 31 TERMINAL 35 SN O CONNECTOR 0 Al 0 15 TERMINAL 1 TERMINAL 34 6lz TERMINAL 68 P0 30 P0 28 P0 25 D GND P0 22 P0 21 D GND 5V D GND P0 17 P0 16 D GND D GND 5V D GND P0 14 P0 9 D GND P0 12 APFI 1 AO3 AO 2 31 Al 23 GND 22 Al 22 29 Al 21 GND 20 Al 20 GND 19 Al 19 26 Al 18 GND 17 Al 17 24 Al 16 pH UHU UHU UHU HoH H a 35 36 37 38 39 40 4 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 ZlSlololNlalafalw rm a N oo P a a N o tO N N N N oO N R N a nN D N Ni to nN oO oO w oO N oO a w ka Uo D GND D GND P0 24 P0 23 P0 31 P0 29 P0 20 P0 19 P0 18 D GND P0 26 P0 27 P0 11 P0 15 P0 10 D GND P0 13 P0 8 D GND AO GND AO GND Al GND Al 23 Al 23 AI 30 Al 22 Al GND Al 21 Al 21 Al 28 Al 20 Al SENSE 2 Al 27 Al 19 Al GND Al 18 Al 18 Al 25 Al 17 Al GND Al 16 Al 16 X Series User Manual Figure A 8 NI PCle 6353 and NI PCle PXle 6363 Pinout A 16 ni com Appendix A Device
118. MHz Timebase DSTAR lt A B gt PFI RTSI PXI_STAR Analog Comparison _ Event 20 MHz Timebase 4 100 kHz Timebase PXI_CLK10 DSTAR lt A B gt ak PFI RTSI PXI_STAR Analog Comparison Event DI Sample Clock o Ctr n Internal Output DI Sample Clock Timebase Programmable D Clock Divider ca a Figure 6 2 Digital Input Timing Options You can acquire digital waveforms on the Port 0 DIO lines The DI waveform acquisition FIFO stores the digital samples X Series devices have a DMA controller dedicated to moving data from the DI waveform acquisition FIFO to system memory The DAQ device samples the DIO lines on each rising or falling edge of a clock signal DI Sample Clock You can configure each DIO line to be an output a static input or a digital waveform acquisition input X Series devices feature the following digital input timing signals DI Sample Clock Signal DI Sample Clock Timebase Signal DI Start Trigger Signal DI Reference Trigger Signal DI Pause Trigger Signal Signals with an support digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information National Instruments Corporation 6 5 X Series User Manual Chapter 6 Digital I O DI Sample Clock Signal X Series User Manual The device uses the DI Sample Clock di SampleClock signal to sample the Port 0 terminals
119. Manual Chapter 4 Analog Input X Series User Manual instructions for grounded signal sources to eliminate this ground potential difference from the measured signal When to Use Differential Connections with Ground Referenced Signal Sources Use DIFF input connections for any channel that meets any of the following conditions e The input signal is low level less than 1 V e The leads connecting the signal to the device are greater than 3 m 10 ft e The input signal requires a separate ground reference point or return signal e The signal leads travel through noisy environments e Two analog input channels AI and AI are available DIFF signal connections reduce noise pickup and increase common mode noise rejection DIFF signal connections also allow input signals to float within the common mode limits of the NI PGIA Refer to the Using Differential Connections for Ground Referenced Signal Sources section for more information about differential connections When to Use Non Referenced Single Ended NRSE Connections with Ground Referenced Signal Sources Only use NRSE connections if the input signal meets the following conditions e The input signal is high level greater than 1 V e The leads connecting the signal to the device are less than 3 m 10 ft e The input signal can share a common reference point with other signals DIFF input connections are recommended for greater signal integrity for any input si
120. ND APFI 1 20 54 AO GND R07 46 14 en TERMINAL 1 TERMINAL 34 408 21 55 AO GND P0 3 47 13 D GND AO 2 22 56 Al15 GND PFI11 P2 3 46 12 D GND TERMINAL 35 bs TERMINAL 68 Al15 23 57 Al 15 PFI 10 P2 2 45 11 PFI 0 P1 0 Al 14 GND 24 58 Al 14 D GND 44 10 PFI 1 P1 1 Al 14 25 59 AI 13 GND PFI 2 P1 2 43 9 D GND Al 13 26 60 Al13 PFI 3 P1 3 42 8 5V Al 12 GND 27 61 A112 PFI 4 P1 4 41 7 D GND Al 12 28 62 Nc PFI 13 P2 5 40 6 PFI5 P1 5 Al 11 GND 29 63 A111 PFI 15 P2 7 39 5 PFI 6 P1 6 Al 11 30 64 Al 10 GND PFI 7 P1 7 38 4 D GND Al 10 31 65 Al10 PFI 8 P2 0 37 3 PFI 9 P2 1 Al 9 GND 32 66 A9 D GND 36 2 PFI 12 P2 4 Al 9 33 67 Als GND D GND 35 1 PFI 14 P2 6 Al 8 34 68 Al 8 aa U NC No Connect NC No Connec Figure A 12 NI PXle 6358 6368 Pinout National Instruments Corporation A 23 X Series User Manual Appendix A Device Specific Information B Note Refer to Table 7 9 X Series PCI Express PXI Express Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help NI 6358 6368 Specifications Refer to the NI 6356 6358 Specifications for more detailed information about the NI 6358 device Refer to the NI 6366 6368 S
121. NEZ PFI 1 P1 1 74 IS SRE EAS Al 3 11 KSI Sls arano PFI 2 P1 2 75 ISI BENITA AIGND 12 PFI 3 P1 3 76 ISI AIGND 13 1 z a ALA PFI 4 P1 4 77 1S aie AIGND 14 PFI 5 P1 5 78 KS AO 0 151 KS oa AO GND PFI6 P1 6 79 KS ey AOGND 16 9 PFI7 P1 7 80 t A Figure A 11 NI USB 6356 6366 Pinout ay Note Refer to Table 7 10 X Series USB Device Default NI DAQmx Counter Timer Pins for a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help National Instruments Corporation A 21 X Series User Manual Appendix A Device Specific Information NI 6356 6366 Specifications Refer to the NI 6356 6358 Specifications for more detailed information about the NI 6356 device Refer to the NI 6366 6368 Specifications for more detailed information about the NI 6366 device NI 6356 6366 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information X Series User Manual A 22 ni com Appendix A Device Specific Information NI 6358 6368 The following sections contain information about the NI PXIe 6358 and NI PXIe 6368 devices NI 6358 6368 Pinout Figure A 12 show
122. NIC SYSTEMS HARDWARE AND OR SOFTWARE UNANTICIPATED USES OR MISUSES OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER COLLECTIVELY TERMED SYSTEM FAILURES ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF HARM TO PROPERTY OR PERSONS INCLUDING THE RISK OF BODILY INJURY AND DEATH SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE TO AVOID DAMAGE INJURY OR DEATH THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES INCLUDING BUT NOT LIMITED TO BACK UP OR SHUT DOWN MECHANISMS BECAUSE EACH END USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION INCLUDING WITHOUT LIMITATION THE APPROPRIATE DESIGN PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION Compliance Electromagnetic Compatibility Information This hardware has been tested and found to comply with the applicable regulatory requirements and limits for electromagnetic compatibility EMC as in
123. O Data AO Sample Clock AO Reference Select Figure 5 1 X Series Analog Output Circuitry The main blocks featured in the X Series analog output circuitry are as follows e DACs Digital to analog converters DACs convert digital codes to analog voltages e AO FIFO The AO FIFO enables analog output waveform generation It is a first in first out FIFO memory buffer between the computer and the DACs It allows you to download the points of a waveform to your X Series device without host computer interaction National Instruments Corporation 5 1 X Series User Manual Chapter 5 Analog Output e AO Sample Clock The AO Sample Clock signal reads a sample from the DAC FIFO and generates the AO voltage e AO Reference Selection The AO reference selection signal allows you to change the range of the analog outputs AO Reference Selection AO reference selection allows you to set the analog output range The analog output range describes the set of voltages the device can generate The digital codes of the DAC are spread evenly across the analog output range So if the range is smaller the analog output has better resolution that is the voltage output difference between two consecutive codes is smaller Therefore the analog output is more accurate The analog output range of a device is all of the voltages between AO Reference and AO Reference The possible settings for AO reference depend on the devic
124. O Sample Clock ao SampleClock e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock A programmable internal counter divides down the sample clock timebase Several other internal signals can be routed to AI Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information 4 28 ni com Chapter 4 Analog Input Using an External Source Use one of the following external signals as the source of AI Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger Routing Al Sample Clock Signal to an Output Terminal You can route AI Sample Clock out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal This pulse is always active high All PFI terminals are configured as inputs by default Other Timing Requirements Your DAQ device only acquires data during an acquisition The device ignores AI Sample Clock when a measurement acquisition is not in progress During a measurement acquisition you can cause your DAQ device to ignore AI Sample Clock using the AI Pause Trigger signal A counter timing engine on your device internally generates AI Sample Clock unless you select some external source AI Start Trigger starts this counter and either software or hardware can stop it once a finite acquisition completes When using the AI timing engine you also can spe
125. Q Assistant Help for additional information about generating code The NI Measurement Studio Help is fully integrated with the Microsoft Visual Studio help To view this help file in Visual Studio select Measurement Studio NI Measurement Studio Help For information related to developing with NI DAQmx refer to the following topics within the NI Measurement Studio Help e For step by step instructions on how to create an NI DAQmx application using the Measurement Studio Application Wizard and the DAQ Assistant refer to Walkthrough Creating a Measurement Studio NI DAQmx Application e For help with NI DAQmx methods and properties refer to NationalInstruments DAQmx Namespace NationalInstruments DAQmx ComponentModel Namespace or NI DAQmx Visual C Class Library Overview National Instruments Corporation xvii X Series User Manual About This Manual e For conceptual help with NI DAQmx refer to Using the Measurement Studio NI DAQmx NET Library Using the Measurement Studio NI DAQm x Visual C Library or Developing with Measurement Studio NI DAQmx e For general help with programming in Measurement Studio refer to Getting Started with the Measurement Studio Class Libraries To create an application in Visual Basic NET Visual C or Visual C follow these general steps 1 In Visual Studio select File New Project to launch the New Project dialog box 2 Inthe Project types pane expand the Visual Basic Visual C
126. Signals cece eseeseeseesseesseeseceseeaeeseesseeseeeeeeaes 4 51 Aggregate versus Single Channel Sample Rates 00 0 0 eee 4 53 AI Sample Clock Signal sroin eee ceseesscesecseceeecseeesecseseseeeeeseesees 4 53 AI Sample Clock Timebase Signal c eee eee eeeeseeseeeeeseeeseeeees 4 55 National Instruments Corporation vii X Series User Manual Contents AI Hold Complete Event Signal oo ee ceeeeeesceeeeeeeeeereeenees 4 56 AT Start Trigger Signalni cette ccevtastapenovbestedaceesdstbsastan 4 56 Al Reference Trigger Signal cece eeseeseceeessecneesseeeneteeenees 4 58 AI Pause Trigger Signal iiss ccs ccsseycesssssctuaeeteceasescepcgesnabcebageasesteeesetes 4 59 Getting Started with AI Applications in Software eee eee eee eeeereeeees 4 61 Chapter 5 Analog Output AO Reference Sel ct n srci oeer s esrar Eras RoE saseanecteeees sogegsusesessescopsgetcessane 5 2 Minimizing Glitches on the Output Signal eseesesessseesrsresseresrrsrsresresreresrrrrsresresreees 5 3 Analog Output Data Generation Methods e ssssssssssssssssesessssssesisersnrsisinessnenseseneseres 5 3 Software Timed Generations 2 0 0 0 cece eeceeseeseesecseeeeeceseeaeceeeeaecneesseeeeesaeeeaees 5 3 Hardware Timed Generations 000 0 ce eeeeceeseesseeseeeseeseceeeeseeneeeseeseecsesseeeaeenaes 5 3 Analog Output Triggering sisene cocsscees cosas sekdecesustubapientaesnsvechevevadoe sh svessstcosvndsutevseness 5 5 Connecting Analog Output Sign
127. States and other countries Other product and company names mentioned herein are trademarks or trade names of their respective companies Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency partnership or joint venture relationship with National Instruments Patents For patents covering National Instruments products technology refer to the appropriate location Help Patents in your software the patents txt file on your media or the National Instruments Patent Notice at ni com patents WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS 1 NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN 2 IN ANY APPLICATION INCLUDING THE ABOVE RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE IMPAIRED BY ADVERSE FACTORS INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY COMPUTER HARDWARE MALFUNCTIONS COMPUTER OPERATING SYSTEM SOFTWARE FITNESS FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION INSTALLATION ERRORS SOFTWARE AND HARDWARE COMPATIBILITY PROBLEMS MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES TRANSIENT FAILURES OF ELECTRO
128. User Manual vi ni com Contents Using Non Referenced Single Ended NRSE Connections for Floating Signal SOUrCES eee eeceeeeeecneeceeceeeeaeeneeseeeseeeeeenees 4 18 Using Referenced Single Ended RSE Connections for Floating Signal SOUrCES se eeeseessesnessecsecenesnecseceenesoneneesseensees 4 19 Connecting Ground Referenced Signal Sources 00 ee eceeeeeeeseeeseeseeereeees 4 19 What Are Ground Referenced Signal Sources 0 eee 4 19 When to Use Differential Connections with Ground Referenced Signal SOULCES naiiai a a aa a 4 20 When to Use Non Referenced Single Ended NRSE Connections with Ground Referenced Signal Sources 4 20 When to Use Referenced Single Ended RSE Connections with Ground Referenced Signal Sources 0 0 0 0 ee eeeeeeeeeseeeeeeees 4 21 Using Differential Connections for Ground Referenced Signal SOQULECES NEE E E ETT EET 4 22 Using Non Referenced Single Ended NRSE Connections for Ground Referenced Signal Sources essssesesseeessesrsrrsrsersreereseereses 4 23 Field Wiring Considerations seesseesesesseeessesrseesessrsresresrsresrerenrssrsresrsresresre 4 24 Analog Input Timing Signals sssessesesessesesssessssrerrsrerrsresrsersrreresrstesrsresresesees 4 24 Aggregate versus Single Channel Sample Rates eee 4 27 AL Sample Clock Signal vss scciscessssessossetesscdeeececcaedeeedescasdetbouecesageaces 4 28 AI Sample Clock Timebase Signal 0 0 eseseeneeeeeneeeees
129. While buffered operations are optimized for high throughput HWTSP operations are optimized for low latency and low jitter In addition HWTSP can notify software if it falls behind hardware These features make HWTSP ideal for real time control applications HWTSP operations in conjunction with the wait for next sample clock function provide tight synchronization between the software layer and the hardware layer Refer to the NI Developer Zone document NI DAQmx Hardware Timed Single Point Lateness Checking for more information To access this document go to ni com info and enter the Info Code daqhwt sp 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations Digital Input Triggering Digital input supports three different triggering actions e Start trigger e Reference trigger e Pause trigger Refer to the DI Start Trigger Signal DI Reference Trigger Signal and DI Pause Trigger Signal sections for information about these triggers An analog or digital trigger can initiate these actions All X Series devices support digital triggering but some do not support analog triggering To find your device triggering options refer to the specifications document for your device X Series User Manual 6 4 ni com Chapter 6 Digital I O Digital Waveform Acquisition Figure 6 2 summarizes all of the timing options provided by the digital input timing engine 100
130. a are inverted before being driven on the RTSI terminals Using RTSI Terminals as Timing Input Signals You can use RTSI terminals to route external timing signals to many different X Series functions Each RTSI terminal can be routed to any of the following signals e AI Convert Clock ai ConvertClock e ATI Sample Clock ai SampleClock e AI Start Trigger ai StartTrigger e Al Reference Trigger ai ReferenceTrigger e AT Pause Trigger ai PauseTrigger e AT Sample Clock Timebase ai SampleClockTimebase e AO Start Trigger ao StartTrigger e AO Sample Clock ao SampleClock e AO Sample Clock Timebase ao SampleClockTimebase e AO Pause Trigger ao PauseTrigger e Counter input signals for all counters Source Gate Aux HW_Arm A B or Z e DI Sample Clock di SampleClock e DI Start Trigger di StartTrigger e DI Pause Trigger di PauseTrigger e DI Reference Trigger di ReferenceTrigger e DO Sample Clock do SampleClock e DO Sample Clock Timebase do SampleClockTimebase Most functions allow you to configure the polarity of RTSI inputs and whether the input is edge or level sensitive RTSI Filters You can enable a programmable debouncing filter on each PFI RTSI or PXI_STAR signal Refer to the PFT Filters section of Chapter 8 PFI for more information National Instruments Corporation 9 7 X Series User Manual Chapter 9 Digital Routing and Clock Generation PXI and PXI Express Clock and Trigger Sig
131. a general analog ground connection point to the device Analog Input Timing Signals In order to provide all of the timing functionality described throughout this section Simultaneous MIO X Series devices have a flexible timing engine Refer to the Clock Routing section of Chapter 9 Digital Routing and Clock Generation Simultaneous MIO X Series devices use AI Sample Clock ai SampleClock to perform simultaneous sampling on all active analog channels Since there is one ADC per channel AI Sample Clock controls the sample period on all the channels in the task An acquisition with posttrigger data allows you to view data that is acquired after a trigger event is received A typical posttrigger DAQ sequence is shown in Figure 4 28 The sample counter is loaded with the specified number of posttrigger samples in this example five The value decrements with each pulse on AI Sample Clock until the value reaches zero and all desired samples have been acquired Al Start Trigger Al Sample Clock Sample Counter 14 13 12 vl 10 Figure 4 28 Typical Posttriggered DAQ Sequence National Instruments Corporation 4 51 X Series User Manual Chapter 4 Analog Input An acquisition with pretrigger data allows you to view data that is acquired before the trigger of interest in addition to data acquired after the trigger Figure 4 29 shows a typical pretrigger DAQ sequence The AI Start Trigg
132. a continuous acquisition continues until you stop the operation Continuous acquisition is also referred to as double buffered or circular buffered acquisition 4 10 ni com Chapter 4 Analog Input If data cannot be transferred across the bus fast enough the FIFO becomes full New acquisitions overwrite data in the FIFO before it can be transferred to host memory The device generates an error in this case With continuous operations if the user program does not read data out of the PC buffer fast enough to keep up with the data transfer the buffer could reach an overflow condition causing an error to be generated e Hardware timed single point HWTSP Typically HWTSP operations are used to read single samples at known time intervals While buffered operations are optimized for high throughput HWTSP operations are optimized for low latency and low jitter In addition HWTSP can notify software if it falls behind hardware These features make HWTSP ideal for real time control applications HWTSP operations in conjunction with the wait for next sample clock function provide tight synchronization between the software layer and the hardware layer Refer to the NI Developer Zone document NI DAQmx Hardware Timed Single Point Lateness Checking for more information To access this document go to ni com info and enter the Info Code daghwt sp aye Note NI USB 634x 6351 6353 6361 6363 Devices USB X Series devices do not support hardware ti
133. a list of the default NI DAQmx counter timer pins for this device For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help X Series User Manual A 6 ni com Appendix A Device Specific Information Figure A 3 shows the pinout of the NI USB 6341 For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information 9 17 Al 4 Al 4 ABAS 2N Spi azay poa sel N Al GND 3 I Sip 19_AI GND P0 2 67 I9 Alt Al1 4l S20 A5 A 5 Bo 3 68 IS A9 A 5 S21 A13 Als pog 69 S Al GND 6 SI Sj 22 Al GND PO 5 70 Ks Al2 al2 7 el S23 ASAE Bog 719 Al 10 A12 8 SH 24 Al 14 A16 B97 72 KS Al GND ali Sif 25 Al GND PFIO P1 0 73 AI3 A134 10 I S26 A17 A174 pi p11 741S Aa A135111 S S27 A115 A17 ipriapra 75 S AIGND 12 fal Sj 28 ALGND PFI 3 P1 3 76 ISI AISENSE 13 I Sif 22 NC PFI 4 P1 4 77 KSI AIlGND 14 I s a ALGND PFI 5 P1 5 78 KS oo BRAZ Bao Beets eli A j NC No Connect PFI 8 P2 0 D GND PFI 9 P2 1 D GND PFI 10 P2 2 D GND PFI 11 P2 3 D GND PFI 12 P2 4 D GND PFI 13 P2 5 D GND PFI 14 P2 6 D GND PFI 15 P2 7 5V Figure A 3 NI USB 6341 Pinout 3 Note Refer to Table 7 10
134. a programmable debouncing filter on each PFI RTSI PXIe DSTAR or PXI_STAR signal Refer to the PFI Filters section of Chapter 8 PFI for more information PXle DSTAR lt A C gt PXI Express devices can provide high quality and high frequency point to point connections between each slot and a system timing slot These connections come in the form of three low voltage differential star triggers that create point to point high frequency connections between a PXI Express system timing module and a peripheral device Using multiple connections enable you to create more applications because of the increased routing capabilities National Instruments Corporation 9 9 X Series User Manual Chapter 9 Digital Routing and Clock Generation Table 9 2 describes the three differential star DSTAR lines and how they are used Table 9 2 PXle DSTAR Line Descriptions Trigger Line Purpose PXIe_DSTARA Distributes high speed high quality clock signals from the system timing slot to the peripherals input PXIe_DSTARB Distributes high speed high quality trigger signals from the system timing slot to the peripherals input PXIe_DSTARC Sends high speed high quality trigger or clock signals from the peripherals to the system timing slot output The DSTAR lines are only available for PXI Express devices when used with a PXI Express system timing module For more information refer to the PXI Express Specification at
135. abVIEW Help for more information You also can specify whether the samples are paused when DO Pause Trigger is at a logic high or low level Using an Analog Source When you use an analog trigger source the samples are paused when the Analog Comparison Event signal is at a high level Refer to the Triggering with an Analog Source section of Chapter 11 Triggering for more information Routing DO Pause Trigger Signal to an Output Terminal You can route DO Pause Trigger out to any RTSI lt 0 7 gt PFI lt 0 15 gt or PXIe DSTARC terminal X Series User Manual Each DIO and PFI signal is protected against overvoltage undervoltage and overcurrent conditions as well as ESD events However you should avoid these fault conditions by following these guidelines e If you configure a PFI or DIO line as an output do not connect it to any external signal source ground or power supply 6 22 ni com Chapter 6 Digital I O e Ifyou configure a PFI or DIO line as an output understand the current requirements of the load connected to these signals Do not exceed the specified current output limits of the DAQ device NI has several signal conditioning solutions for digital applications requiring high current drive e If you configure a PFI or DIO line as an input do not drive the line with voltages outside of its normal operating range The PFI or DIO lines have a smaller operating range than the AI signals e Treat the DAQ devi
136. abling options A 24 pinout A 23 specifications A 24 NI support and services C 1 NI DAQmx default counter terminals 7 48 device documentation browser xix documentation xvi installation 1 1 NI PGIA MIO X Series devices 4 2 Simultaneous MIO X Series devices 4 41 non buffered hardware timed acquisitions Simultaneous MIO X Series devices 4 45 non referenced single ended connections using with floating signal sources MIO X Series devices 4 18 using with ground referenced signal sources MIO X Series devices 4 23 when to use with floating signal sources MIO X Series devices 4 13 when to use with ground referenced signal sources MIO X Series devices 4 20 NRSE connections using with floating signal sources MIO X Series devices 4 18 I 10 ni com Index using with ground referenced signal filters 8 5 sources T O protection 8 7 MIO X Series devices 4 23 programmable power up states 8 7 when to use with floating signal sources using terminals as static digital I Os 8 4 MIO X Series devices 4 13 using terminals as timing input when to use with ground referenced signals 8 2 signal sources PFI terminals as static digital I Os 8 4 MIO X Series devices 4 20 pin assignments See pinouts pinouts 0 on demand acquisitions MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 edge counting 7 4 timing MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 order of channels for scanning
137. alog I O and a simpler API for creating DAQ applications using fewer functions and VIs than earlier versions of NI DAQ See instrumentation amplifier Signal sources with voltage signals that are not connected to an absolute reference or system ground Also called floating signal sources Some common example of non referenced signal sources are batteries transformers or thermocouples Non Referenced Single Ended mode All measurements are made with respect to a common NRSE measurement system reference but the voltage at this reference can vary with respect to the measurement system ground The unwanted DC voltage due to amplifier offset voltages added to a signal A high performance expansion bus architecture originally developed by Intel to replace PCI PCI Express offers a theoretical maximum transfer rate that is dependent upon lane width A x1 link theoretically provides 250 MB s in each direction to and from the device Once overhead is accounted for a x1 link can provide approximately 200 MB s of input capability and 200 MB s of output capability Increasing the number of lanes in a link increases maximum throughput by approximately the same factor National Instruments Corporation G 11 X Series User Manual Glossary period PFI PGIA physical channel Plug and Play devices posttriggering power source ppm pretriggering pulse pulse width PXI Express PXI_STAR X Series User Manual The
138. alog output e BNC 2120 Similar to the BNC 2110 and also has a built in function generator quadrature encoder temperature reference and thermocouple connector e BNC 2090A Desktop rack mountable device with 22 BNCs for connecting analog digital and timing signals You can use one BNC accessory with the signals on either connector of your X Series device You can use two BNC accessories with one X Series device by using both connectors National Instruments Corporation 2 5 X Series User Manual Chapter 2 DAQ System Overview Screw Terminal Accessories National Instruments offers several styles of screw terminal connector blocks Use an SHC68 68 EPM shielded cable to connect an X Series device to a connector block such as the following e CB 68LP and CB 68LPR Unshielded connector blocks e SCC 68 I O connector block with screw terminals general breadboard area bus terminals and four expansion slots for SCC signal conditioning modules e _SCB 68 Shielded connector block with temperature sensor TBX 68 DIN rail mountable connector block TB 2706 Front panel mounted terminal block for X Series PXI Express devices You can use one screw terminal accessory with the signals on either connector of your X Series device You can use two screw terminal accessories with one X Series device by using both connectors RTSI Cables Use RTSI bus cables to connect timing and synchronization signals among PCI PCI Expre
139. als 00 eee cece ceeceseeseceseeseceseeaeeseeeseeeeesesseeeaeeeaes 5 5 Analog Output Timing Signals cece cseceeeeseeseeesecseeeaeceeceaeeseceaseaesesesseeeseesaes 5 6 AO Start Trigger Signal s cceccicelsecsccsstsestebsseasessgseaiecezsesesdecagtusessesescepaceicessies 5 7 Retriggerable Analog Output eee cee ceeeeeceeceeeneeeeeseeeeeenee 5 7 Using a Digital Source isini ssessiosiasea eotdessseatenscbasesdanees eaedeweensde 5 7 Using an Analog Source 00 cece eececeeseeseceeeeseeeeeceeesecseeeseeseeeaeeeaee 5 8 Routing AO Start Trigger Signal to an Output Terminal 5 8 AO Pause Trigger Sigma a miriona nienean iene iea eos A Ra Ea 5 8 Using a Digital Source sieniniai a 5 9 Using an Analog Source ssssesseeseeeesesrsrtsesrrsrsresrntesrerrsresrereeresreses 5 10 Routing AO Pause Trigger Signal to an Output Terminal 5 10 AO Sample Clock Sigtall cee eeessccseesecsseeceersoceneveecesesscessecensenssenssnesses 5 10 Using an Internal Source sisii iiciin nnii aa 5 10 Using an External Source eee eeeee cece eseeeeeseeeesecaeeeaeeseeneeesnees 5 11 Routing AO Sample Clock Signal to an Output Terminal 5 11 Other Timing Requirement 20 0 0 eeeeeeceeceseceeeeseeeeeeaeeeaees 5 11 AO Sample Clock Timebase Signal eee eesceseceeeesecsseeseeseeeseseeeeaeenaes 5 12 Getting Started with AO Applications in Software ou eee eeeeeceeceeeteeeeeeeeeenees 5 13 Chapter 6 Digital 1 0 Digital Input
140. alue 5 y X 7 X 6 X5 Figure 7 18 X1 Encoding e X2 Encoding The same behavior holds for X2 encoding except the counter increments or decrements on each edge of channel A depending on which channel leads the other Each cycle results in two increments or decrements as shown in Figure 7 19 ChA AaS ChB eee op ee i aee E a a Xa XTX OXG Figure 7 19 X2 Encoding e X4Encoding Similarly the counter increments or decrements on each edge of channels A and B for X4 encoding Whether the counter increments or decrements depends on which channel leads the other 7 24 ni com Chapter 7 Counters Each cycle results in four increments or decrements as shown in Figure 7 20 ChA Ch B 1 1 1 1 1 1 1 Counter Value NETO NOTENG BBN OX ENTNENG Figure 7 20 X4 Encoding Channel Z Behavior Some quadrature encoders have a third channel channel Z which is also referred to as the index channel A high level on channel Z causes the counter to be reloaded with a specified value in a specified phase of the quadrature cycle You can program this reload to occur in any one of the four phases in a quadrature cycle Channel Z behavior when it goes high and how long it stays high differs with quadrature encoder designs You
141. an specify a configurable delay from AI Sample Clock to the first AI Convert Clock pulse within the sample By default this delay is three ticks of AI Convert Clock Timebase Figure 4 17 shows the relationship of AI Sample Clock to AI Convert Clock Al Convert Clock Timebase Al Sample Clock Al Convert Clock lt gt q gt Delay from Convert Sample Period Clock Figure 4 17 Al Sample Clock and Al Convert Clock X Series User Manual 4 32 ni com Chapter 4 Analog Input Other Timing Requirements The sample and conversion level timing of MIO X Series devices work such that some clock signals are gated off unless the proper timing requirements are met For example the device ignores both AI Sample Clock and AI Convert Clock until it receives a valid AI Start Trigger signal Similarly the device ignores all AI Convert Clock pulses until it recognizes an AI Sample Clock pulse Once the device receives the correct number of AI Convert Clock pulses it ignores subsequent AI Convert Clock pulses until it receives another AI Sample Clock However after the device recognizes an AI Sample Clock pulse it causes an error if it receives an AI Sample Clock pulse before the correct number of AI Convert Clock pulses are received Figures 4 18 4 19 4 20 and 4 21 show
142. and amount of hysteresis The high threshold is the trigger level the low threshold is the trigger level minus the hysteresis For the trigger to assert the signal must first be below the low threshold then go above the high threshold The trigger stays asserted until the signal returns below the low threshold The output of the trigger detection circuitry is the internal Analog Comparison Event signal as shown in Figure 11 6 Hysteresis Analog Comparison Event oy Viena icin a ne nS ores rene CENG High threshold A a E a A i SSRs Low threshold First signal must go Fi i i below low threshold Then signal must go above high threshold before E Analog Comparison Event asserts Level Level Hysteresis X Series User Manual Figure 11 6 Analog Edge Triggering with Hysteresis Rising Slope Example Analog Edge Trigger with Hysteresis Falling Slope When using hysteresis with a falling slope you specify a trigger level and amount of hysteresis The low threshold is the trigger level the high threshold is the trigger level plus the hysteresis For the trigger to assert the signal must first be above the high threshold then go below the low threshold The trigger stays asserted until the signal returns above the high threshold The output of the trigger detection circuitry is the internal Analog Comparison Event signal as shown in Figure 11 7 11 6 ni com Cha
143. and store the result in the DI waveform acquisition FIFO You can specify an internal or external source for DI Sample Clock You also can specify whether the measurement sample begins on the rising edge or falling edge of DI Sample Clock If the DAQ device receives a DI Sample Clock when the FIFO is full it reports an overflow error to the host software Using an Internal Source To use DI Sample Clock with an internal source specify the signal source and the polarity of the signal The source can be any of the following signals e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock e AI Sample Clock ai SampleClock e AT Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock e Counter n Sample Clock e Counter n Internal Output e Frequency Output e DI Change Detection output Several other internal signals can be routed to DI Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an External Source You can route any of the following signals as DI Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger You can sample data on the rising or falling edge of DI Sample Clock 6 6 ni com Chapter 6 Digital I O Routing DI Sample Clock to an Output Terminal You can route DI Sample Clock out to any PFI lt 0 15 gt terminal T
144. are may require the use of a metal shielded enclosure windowless version to meet the EMC requirements for special EMC environments such as for marine use or in heavy industrial areas Refer to the hardware s user documentation and the DoC for product installation requirements When the hardware is connected to a test object or to test leads the system may become more sensitive to disturbances or may cause interference in the local electromagnetic environment Operation of this hardware in a residential area is likely to cause harmful interference Users are required to correct the interference at their own expense or cease operation of the hardware Changes or modifications not expressly approved by National Instruments could void the user s right to operate the hardware under the local regulatory rules The Declaration of Conformity DoC contains important EMC compliance information and instructions for the user or installer To obtain the DoC for this product visit ni com certification search by model number or product line and click the appropriate link in the Certification column Contents About This Manual Chapter 1 Getting Started Unpacking onsin n E E E andes dete guise iouiens Seusou nae E E RE 1 1 Installation aceso A EEA EE TR a 1 1 Device Self Calibration ionen nnie oaa aA AOA KE a E 1 2 Getting Started with USB X Series Devices cece eseeeeceeeeseeeneceeeseeeaeenseeasensenaes 1 2 USB Device Chassis Gr
145. arefully reviewed for technical accuracy In the event that technical or typographical errors exist National Instruments reserves the right to make changes to subsequent editions of this document without prior notice to holders of this edition The reader should consult National Instruments if errors are suspected In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it EXCEPT AS SPECIFIED HEREIN NATIONAL INSTRUMENTS MAKES NO WARRANTIES EXPRESS OR IMPLIED AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE CUSTOMER S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA PROFITS USE OF PRODUCTS OR INCIDENTAL OR CONSEQUENTIAL DAMAGES EVEN IF ADVISED OF THE POSSIBILITY THEREOF This limitation of the liability of National Instruments will apply regardless of the form of action whether in contract or tort including negligence Any action against National Instruments must be brought within one year after the cause of action accrues National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control The warranty provided herein does not cover damages defects malfunctions or service failures caused
146. asizes certain frequency ranges and de emphasizes others Electronic filters include lowpass band pass and highpass types Digital filters can operate on numeric data to perform equivalent operations on digitized analog data or to enhance video images The condition where a common mode voltage exists or may exist between earth ground and the instrument or circuit of interest Neither the high nor the low side of a circuit is at earth potential Signal sources with voltage signals that are not connected to an absolute reference of system ground Also called non referenced signal sources Some common examples of floating signal sources are batteries transformers and thermocouples National Instruments Corporation G 7 X Series User Manual Glossary frequency ft function glitch ground H hardware triggering hysteresis T O impedance X Series User Manual The number of alternating signals that occur per unit time Feet 1 A built in execution element comparable to an operator function or statement in a conventional language 2 A set of software instructions executed by a single line of code that may have input and or output parameters and returns a value when executed An unwanted signal excursion of short duration that is usually unavoidable 1 A pin 2 An electrically neutral wire that has the same potential as the surrounding earth Normally a noncurrent carrying circuit intended for safety
147. ated after the counters start and before the first sample clock so that you generate the number of updates defined in the multipoint write X Series User Manual Finite Implicit Buffered Pulse Train Generation This function generates a predetermined number of pulses with variable idle and active times Each point you write generates a single pulse The number of pairs of idle and active times pulse specifications you write determines the number of pulses generated All points are generated back to back to create a user defined pulse train Table 7 6 and Figure 7 34 detail a finite implicit generation of three samples Table 7 6 Finite Implicit Buffered Pulse Train Generation Sample Idle Ticks Active Ticks 1 2 2 2 3 4 3 2 2 7 36 ni com Chapter 7 Counters 2 2 3 Counter Load Values 101021032101010 SOURCE UUU OUT Counter Armed Figure 7 34 Finite Implicit Buffered Pulse Train Generation Continuous Buffered Implicit Pulse Train Generation This function generates a continuous train of pulses with variable idle and active times Instead of generating a set number of data samples and stopping a continuous generation continues until you stop the operation Each point you write generates a single pulse All points are generated back to back t
148. aveform generation begins on the first rising edge of the Analog Comparison Event signal Refer to the Triggering with an Analog Source section of Chapter 11 Triggering for more information Routing AO Start Trigger Signal to an Output Terminal You can route AO Start Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The output is an active high pulse PFI terminals are configured as inputs by default AO Pause Trigger Signal X Series User Manual Use the AO Pause Trigger ao PauseTrigger signal to mask off samples in a DAQ sequence That is when AO Pause Trigger is active no samples occur AO Pause Trigger does not stop a sample that is in progress The pause does not take effect until the beginning of the next sample When you generate analog output signals the generation pauses as soon as the pause trigger is asserted If the source of your sample clock is the 5 8 ni com Chapter 5 Analog Output onboard clock the generation resumes as soon as the pause trigger is deasserted as shown in Figure 5 5 Pause Trigger Sample Clock Figure 5 5 AO Pause Trigger with the Onboard Clock Source If you are using any signal other than the onboard clock as the source of your sample clock the generation resumes as soon as the pause trigger is deasserted and another edge of the sample clock is received as shown in Figure 5 6 Pause T
149. ble included in the USB X Series device kit to securely attach the cable to the device as shown in Figure 1 5 1 Locking USB Cable Jackscrew 3 Security Cable Slot 2 Jackscrew Hole Figure 1 5 USB Cable Strain Relief on USB X Series Devices X Series User Manual 1 6 ni com Chapter 1 Getting Started USB Device Security Cable Slot USB X Series Devices The security cable slot shown in Figure 1 5 allows you to attach an optional laptop lock to your USB X Series device 3 Note The security cable is designed to act as a deterrent but might not prevent the device from being mishandled or stolen For more information refer to the documentation that accompanied the security cable 3 Note The security cable slot on the USB device might not be compatible with all laptop lock cables Device Pinouts Refer to Appendix A Device Specific Information for X Series device pinouts Device Specifications Refer to the specifications document for your device e NI632x Specifications e NI634x Specifications e NI 6351 6353 Specifications e NI 6356 6358 Specifications e NI 6361 6363 Specifications e NI 6366 6368 Specifications X Series device documentation is available on the NI DAQ Device Document Browser or ni com manuals Device Accessories and Cables NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ Sys
150. by owner s failure to follow the National Instruments installation operation or maintenance instructions owner s modification of the product owner s abuse misuse or negligent acts and power failure or surges fire flood accident actions of third parties or other events outside reasonable control Copyright Under the copyright laws this publication may not be reproduced or transmitted in any form electronic or mechanical including photocopying recording storing in an information retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation National Instruments respects the intellectual property of others and we ask our users to do the same NI software is protected by copyright and other intellectual property laws Where NI software may be used to reproduce software or other materials belonging to others you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction Trademarks CVI LabVIEW National Instruments NI ni com the National Instruments corporate logo and the Eagle logo are trademarks of National Instruments Corporation Refer to the Trademark Information at ni com trademarks for other National Instruments trademarks The mark LabWindows is used under a license from Microsoft Corporation Windows is a registered trademark of Microsoft Corporation in the United
151. ce 11 2 troubleshooting analog input B 1 analog output B 3 counters B 3 troubleshooting NI resources C 1 National Instruments Corporation 1 15 Index two signal edge separation measurement 7 27 buffered 7 29 single 7 28 types of analog triggers 11 5 U USB Signal Stream as a transfer method 10 2 USB X Series accessories 2 7 bulk transfers 10 2 cable strain relief 1 6 desktop use 1 3 device security 1 7 DIN rail mounting 1 4 panel mounting 1 4 security cable slot 1 7 USB cable strain relief 1 6 wall mounting 1 4 using low impedance sources MIO X Series devices 4 7 PFI terminals as static digital I Os 8 4 as timing input signals 8 2 to export timing output signals 8 3 RTSI as outputs 9 6 terminals as timing input signals 9 7 short high quality cabling MIO X Series devices 4 7 the disk drive power connector PCI Express 3 4 W waveform generation digital 6 16 signals 5 6 X Series User Manual Index Web resources C 1 wiring Simultaneous MIO X Series devices 4 50 working voltage range Simultaneous MIO X Series devices 4 4 4 43 X X Series accessories and cables 1 7 accessory options 2 4 cabling options 2 4 information A 1 pinouts 1 7 specifications 1 7 xix USB devices 1 2 X1 encoding 7 24 X2 encoding 7 24 X4 encoding 7 24 X Series User Manual l 16 ni com
152. ce also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the measurement acquisition begins on the rising edge or falling edge of AI Start Trigger Using an Analog Source When you use an analog trigger source the acquisition begins on the first rising edge of the Analog Comparison Event signal Routing Al Start Trigger to an Output Terminal You can route AI Start Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The output is an active high pulse All PFI terminals are configured as inputs by default The device also uses AI Start Trigger to initiate pretriggered DAQ operations In most pretriggered applications a software trigger generates Al Start Trigger Refer to the AJ Reference Trigger Signal section for a complete description of the use of AI Start Trigger and AI Reference Trigger in a pretriggered DAQ operation X Series User Manual 4 36 ni com Chapter 4 Analog Input Al Reference Trigger Signal Use AI Reference Trigger ai ReferenceTrigger signal to stop a measurement acquisition To use a reference trigger specify a buffer of finite size and a number of pretrigger samples samples that occur before the reference trigger The number of posttrigger samples samples that occur after the reference trigger desired is the buffer size minus the number of p
153. ce as you would treat any static sensitive device Always properly ground yourself and the equipment when handling the DAQ device or connecting to it Programmable Power Up States At system startup and reset the hardware sets all PFI and DIO lines to high impedance inputs by default The DAQ device does not drive the signal high or low Each line has a weak pull down resistor connected to it as described in the specifications document for your device NI DAQmx supports programmable power up states for PFI and DIO lines Software can program any value at power up to the PO P1 or P2 lines The PFI and DIO lines can be set as e A high impedance input with a weak pull down resistor default e An output driving a 0 e An output driving a 1 Refer to the NJ DAQmx Help or the LabVIEW Help for more information about setting power up states in NI DAQmx or MAX ys Note When using your X Series device to control an SCXI chassis DIO lines 0 1 2 and 4 are used as communication lines and must be left to power up in the default high impedance state to avoid potential damage to these signals DI Change Detection You can configure the DAQ device to detect changes in the DIO signals which includes Port 0 Port 1 and Port 2 Figure 6 11 shows a block diagram of the DIO change detection circuitry National Instruments Corporation 6 23 X Series User Manual Chapter 6 Digital 1 0 1 P0 0 Synch
154. ce configured in differential mode als Al OO O oo gt Ground p Al Referenced V 2 g Instrumentation eha Ha o so t dii Al 4 Measured m Voltage Common A o oo a Mode Vv o oo Noise and em 4 Ground gt x Potential 77 o oe Input Multiplexers oe Al SENSE e Al GND I O Connector MIO X Series Device Configured in Differential Mode Figure 4 10 Differential Connections for Ground Referenced Signal Sources With this type of connection the NI PGIA rejects both the common mode noise in the signal and the ground potential difference between the signal source and the device ground shown as V m in the figure AI and AI must both remain within 11 V of AI GND 4 22 ni com Chapter 4 Analog Input Using Non Referenced Single Ended NRSE Connections for Ground Referenced Signal Sources Figure 4 11 shows how to connect ground reference signal sources in NRSE mode 1 0 Connector Al lt 0 15 gt or Al lt 16 31 gt OO Ground Q co Referenced sa Signal Instrumentation Source Amplifier o So Input Multipl nput Multiplexers y_ Measured Common Al SENSE Voltage Mode y Jalanp or Al SENSE 2 Noise em and Ground Potential 77 MIO X Series Device Configured in NRSE Mode Figure 4 11 Single En
155. ce input occurring between an active edge of the Gate signal and an active edge of the Aux signal The counter then stores the count in the FIFO On the next active edge of the Gate signal the counter begins another measurement A DMA controller transfers the stored values to host memory Figure 7 25 shows an example of an implicit buffered two signal edge separation measurement AUX A 4 A Ee GATE a a 5 SOURCE Counter Value l 1 2 3 1 2 3 1 2 3 3 3 3 Buffer 3 3 Figure 7 25 Implicit Buffered Two Signal Edge Separation Measurement Sample Clocked Buffered Two Signal Separation Measurement A sample clocked buffered two signal separation measurement is similar to single two signal separation measurement but buffered two signal separation measurement takes measurements over multiple intervals correlated to a sample clock The counter counts the number of rising or falling edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal The counter then stores the count in the FIFO on a sample clock edge On the next active edge of the Gate signal the counter begins another measurement A DMA controller transfers the stored values to host memory Figure 7 26 shows an example of a sample clocke
156. ceccssssessescstastesneccoenedecsscaescdveasaeeasebestee 6 11 Using an Analog Source ei ceesceeeseeseeesecseeeseeeseeaeeneeeseenseseeeeaees 6 12 Routing DI Reference Trigger Signal to an Output Terminal 6 12 DI Pause Trigger Signal c cs sccsscssteseeds oadesesteusncuseysussaevisssvsssesespsuebecviagentbeese 6 12 Using a Digital Source ciciiciscscesessssesdedeassssisneccoerdssnescaesessestbaescasas tie 6 13 Using an Analog Source occ eseeeesecnecesecsseeseceseeaeeneeeaeenseseeeeaees 6 13 Routing DI Pause Trigger Signal to an Output Terminal 6 13 Digital Output Data Generation Methods eee eceseeeseeseeeeeeseessecseeeseeseeneeeasenseeaes 6 14 Software Timed Generations eee eecesseeseeseceeceseeseessesenetaessseeseeeeseaeesseens 6 14 Hardware Timed Generations 0 cc eeseeeeseeseceeceeceaeeseeeaeeseeesesneeeseseeeeaee 6 14 Digital Output Triggering siisii ana n a ies 6 16 Digital Waveform Generation s esessesesseeesseereresrsrtsresteesteststesterenresrsstnresteresresenrrstsreses 6 16 DO Sample Clock Sigmal ici scssssedgdsstscategsssessedassesssansadbeptabecsaenseesebtsesecasante 6 17 Using an Internal Source ee ee eeeeeeseeeeeeseceseeaeeneeeaeenseseeeeaees 6 17 Using an External Source sirean a 6 17 Routing DO Sample Clock to an Output Terminal 6 18 Other Timing Requirements cece eseeeeeneceeeeseeneeteeneeteeeenees 6 18 DO Sample Clock Timebase Signal eee eeeeeseeseeeseeseee
157. cify a configurable delay from AI Start Trigger to the first AI Sample Clock pulse By default this delay is set to two ticks of the AI Sample Clock Timebase signal When using an externally generated AI Sample Clock you must ensure the clock signal is consistent with respect to the timing requirements of AI Convert Clock Failure to do so may result in a scan overrun and will cause an error Refer to the AJ Convert Clock Signal section for more information about the timing requirements between AI Convert Clock and AI Sample Clock National Instruments Corporation 4 29 X Series User Manual Chapter 4 Analog Input X Series User Manual Figure 4 16 shows the relationship of AI Sample Clock to AI Start Trigger Al Sample Clock Timebase Al Start Trigger Al Sample Clock lt gt Delay From Start Trigger Figure 4 16 Al Sample Clock and Al Start Trigger Al Sample Clock Timebase Signal You can route any of the following signals to be the AI Sample Clock Timebase ai SampleClockTimebase signal e 100 MHz Timebase default e 20 MHz Timebase e 100 kHz Timebase e PXI CLK10 e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXI STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger AI Sample Clock Timebase is not available as an output on the I O connector AI Sample Clock Timebase is divided down to provide one of the possible source
158. counter generation X Series User Manual 7 32 ni com Chapter 7 Counters Counter Armed souree UUULUU UU UU Enablex l Ctrx i 1 Figure 7 29 Finite Pulse Train Generation Four Ticks Initial Delay Four Pulses In Legacy Mode this counter operation requires two counters and does not use the embedded counter For example to generate four pulses on Counter 0 Counter 0 generates the pulse train which is gated by the paired second counter The paired counter Counter 1 generates a pulse of desired width 3 Note Counter 0 is always paired with Counter 1 Counter 2 is always paired with Counter 3 The routing is done internally Figure 7 30 shows an example finite pulse train timing diagram Counter 1 Paired Counter L Counter 0 l E ioo Generation Complete Figure 7 30 Finite Pulse Train Timing in Legacy Mode Retriggerable Pulse or Pulse Train Generation The counter can output a single pulse or multiple pulses in response to each pulse on a hardware Start Trigger signal The generated pulses appear on the Counter n Internal Output signal of the counter National Instruments Corporation 7 33 X Series User Manual Chapter 7 Counters You can route the Start Trigger signal to the Gate input of the counter You can specify a delay from the Start Trigger to the beginning of each pulse You also can specify the pulse width The delay and p
159. cquisition Retriggerable Analog Input The AI Start Trigger can also be configured to be retriggerable The timing engine will generate the sample and convert clocks for the configured acquisition in response to each pulse on an AI Start Trigger signal The timing engine ignores the AI Start Trigger signal while the clock generation is in progress After the clock generation is finished the counter waits for another Start Trigger to begin another clock generation Figure 4 22 shows a retriggerable analog input with three AI channels and four samples per trigger Al Start Trigger _ nisample cick L ILL scorer JUU A AN A Figure 4 22 Retriggerable Analog Input Note Waveform information from LabVIEW will not reflect the delay between triggers They will be treated as a continuous acquisition with constant t0 and dt information Reference triggers are not retriggerable National Instruments Corporation 4 35 X Series User Manual Chapter 4 Analog Input Using a Digital Source To use AI Start Trigger with a digital source specify a source and an edge The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e Counter n Internal Output e PXISTAR e PXIe DSTAR lt A B gt e Change Detection Event e AO Start Trigger ao StartTrigger e DI Start Trigger di StartTrigger e DO Start Trigger do StartTrigger The sour
160. d buffered two signal separation measurement National Instruments Corporation 7 29 X Series User Manual Chapter 7 Counters Sample Clock AUX A GATE wa i SOURCE i Counter Value 1 2 3 Er 2 3 1 2 3 joo Buffer Figure 7 26 Sample Clocked Buffered Two Signal Separation Measurement Hardware Timed Single Point Two Signal Separation Measurement A hardware timed single point HWTSP two signal separation measurement has the same behavior as a sample clocked buffered two signal separation measurement Refer to the Sample Clocked Buffered Two Signal Separation Measurement section for more information Gi Note If an active edge on the Gate and an active edge on the AUX does not occur between sample clocks an overrun error will occur Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations gi For information about connecting counter signals refer to the Default Counter Timer Pinouts section Counter Output Applications The following sections list the various counter output applications available on X Series devices e Simple Pulse Generation e Pulse Train Generation e Frequency Generation e Frequency Division e Pulse Generation for
161. de rdscad for more information SCC Accessories SCC provides portable modular signal conditioning to your DAQ system Use an SHC68 68 EPM shielded cable to connect your X Series device to an SCC module carrier such as the following e SC 2345 e SC 2350 e SCC 68 2 4 ni com Chapter 2 DAQ System Overview You can use either connector on MIO X Series devices to control an SCC module carrier with NI DAQmx 3 Note PCI Express users should consider the power limits on certain SCC modules without an external power supply Refer to the specifications document for your device and the PCI Express Device Disk Drive Power Connector section of Chapter 3 Connector and LED Information for information about power limits and increasing the current the device can supply on the 5 V terminal 3 Note NI 6356 6358 6366 6368 Devices Simultaneous MIO X Series devices do not support SCC Refer to the SCC Configuration Guide available by going to ni com info and entering the Info Code rdscav for more information BNC Accessories You can use the SHC68 68 EPM shielded cable to connect your DAQ device to BNC accessories such as the following e BNC 2110 Provides BNC connectivity to all analog signals some digital signals and spring terminals for other digital signals e BNC 2111 Provides BNC connectivity to 16 single ended analog input signals two analog output signals five DIO PFI signals and the external reference voltage for an
162. ded Connections for Ground Referenced Signal Sources NRSE Configuration AI lt 0 31 gt and AI SENSE must both remain within 11 V of AI GND To measure a single ended ground referenced signal source you must use the NRSE ground reference setting Connect the signal to one of AI lt 0 15 gt and connect the signal local ground reference to AI SENSE You also can connect the signal to one of AI lt 16 31 gt and connect the signal local ground reference to AI SENSE 2 AI SENSE is internally connected to the negative input of the NI PGIA Therefore the ground point of the signal connects to the negative input of the NI PGIA Any potential difference between the device ground and the signal ground appears as acommon mode signal at both the positive and negative inputs of the NI PGIA and this difference is rejected by the amplifier If the input circuitry of a device were referenced to ground as it is in the RSE ground reference setting this difference in ground potentials would appear as an error in the measured voltage Using the DAQ Assistant you can configure the channels for RSE or NRSE input modes Refer to the Configuring AI Ground Reference Settings in Software section for more information about the DAQ Assistant National Instruments Corporation 4 23 X Series User Manual Chapter 4 Analog Input Field Wiring Considerations Environmental noise can seriously affect the measurement accuracy of the device if you do not take
163. device from high current or high voltage lines These lines can induce currents in or voltages on the signal lines of the Simultaneous MIO X Series device if they run in close parallel paths To reduce the magnetic coupling between lines separate them by a reasonable distance if they run in parallel or run the lines at right angles to each other e Do not run signal lines through conduits that also contain power lines e Protect signal lines from magnetic fields caused by electric motors welding equipment breakers or transformers by running them through special metal conduits Refer to the NI Developer Zone document Field Wiring and Noise Considerations for Analog Signals for more information 4 50 ni com Chapter 4 Analog Input Minimizing Drift in Differential Mode If the readings from the DAQ device are random and drift rapidly you should check the ground reference connections The signal can be referenced to a level that is considered floating with reference to the device ground reference Even though you are in DIFF mode you must still reference the signal to the same ground level as the device reference There are various methods of achieving this reference while maintaining a high common mode rejection ratio CMRR These methods are outlined in the Connecting Analog Input Signals section AI GND is an AI common signal that routes directly to the ground connection point on the devices You can use this signal if you need
164. dicated in the hardware s Declaration of Conformity DoC These requirements and limits are designed to provide reasonable protection against harmful interference when the hardware is operated in the intended electromagnetic environment In special cases for example when either highly sensitive or noisy hardware is being used in close proximity additional mitigation measures may have to be employed to minimize the potential for electromagnetic interference While this hardware is compliant with the applicable regulatory EMC requirements there is no guarantee that interference will not occur in a particular installation To minimize the potential for the hardware to cause interference to radio and television reception or to experience unacceptable performance degradation install and use this hardware in strict accordance with the instructions in the hardware documentation and the DoC If this hardware does cause interference with licensed radio communications services or other nearby electronics which can be determined by turning the hardware off and on you are encouraged to try to correct the interference by one or more of the following measures e Reorient the antenna of the receiver the device suffering interference e Relocate the transmitter the device generating interference with respect to the receiver e Plug the transmitter into a different outlet so that the transmitter and the receiver are on different branch circuits Some hardw
165. e LabVIEW Help X Series devices use the NI DAQmx driver NI DAQmx includes a collection of programming examples to help you get started developing an National Instruments Corporation 6 29 X Series User Manual Chapter 6 Digital I O application You can modify example code and save it in an application You can use examples to develop a new application or add example code to an existing application To locate LabVIEW LabWindows CVI Measurement Studio Visual Basic and ANSI C examples refer to the KnowledgeBase document Where Can I Find NI DAQmx Examples by going to ni com info and entering the Info Code dagmxexp For additional examples refer to zone ni com X Series User Manual 6 30 ni com Counters X Series devices have four general purpose 32 bit counter timers and one frequency generator The general purpose counter timers can be used for many measurement and pulse generation applications Figure 7 1 shows the X Series Counter 0 and the frequency generator All four counters on X Series devices are identical Input Selection Muxes Counter 0 7 Counter 0 Source Counter 0 Timebase g Counter 0 Gate Counter 0 Internal Output Counter 0 Aux Embedded Ctro A Counter 0 HW Arm FIFO A Counter 0 A Counter 0 TC Counter 0 B Counter 0 Up_Down i Counter 0 Z Counter 0 Sample Clock Input Selection Muxes Frequency Generator X Frequency Output Timebase Freq Out
166. e an AI signal to ensure that you use the maximum resolution of the ADC MIO X Series devices use the NI PGIA to deliver high accuracy even when sampling multiple channels with small input ranges at fast rates MIO X Series devices can sample channels in any order and you can individually program each channel in a sample with a different input range A D Converter tThe analog to digital converter ADC digitizes the AI signal by converting the analog voltage into a digital number AI FIFO MIO X Series devices can perform both single and multiple A D conversions of a fixed or infinite number of samples A large first in first out FIFO buffer holds data during AI acquisitions to ensure that no data is lost MIO X Series devices can handle multiple A D conversion operations with DMA or programmed I O Input range refers to the set of input voltages that an analog input channel can digitize with the specified accuracy The NI PGIA amplifies or attenuates the AI signal depending on the input range You can individually program the input range of each AI channel on your MIO X Series device The input range affects the resolution of the MIO X Series device for an AI channel Resolution refers to the voltage of one ADC code For example a 16 bit ADC converts analog inputs into one of 65 536 216 codes that is one of 65 536 possible digital values These values are spread fairly evenly across the input range So for an input range of
167. e and convert clocks for the configured acquisition in response to each pulse on an DI Start Trigger signal The timing engine ignores the DI Start Trigger signal while the clock generation is in progress After the clock generation is finished the timing 6 8 ni com Chapter 6 Digital I O engine waits for another Start Trigger to begin another clock generation Figure 6 4 shows a retriggerable DI of four samples DI Start Trigger DI Sample Clock Figure 6 4 Retriggerable DI 3 Note Waveform information from LabVIEW will not reflect the delay between triggers They will be treated as a continuous acquisition with constant tO and dt information Reference triggers are not retriggerable Using a Digital Source To use DI Start Trigger with a digital source specify a source and an edge The source can be any of the following signals PFI lt 0 15 gt RTSI lt 0 7 gt Counter n Internal Output PXI_STAR PXIe DSTAR lt A B gt Change Detection Event AI Start Trigger ai StartTrigger AO Start Trigger ao StartTrigger DO Start Trigger do StartTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the measurement acquisition begins on the rising edge or falling edge of DI Start Trigger
168. e high and low times of a pulse The functional difference between the two measurements is how the data is returned In a semi period measurement each high or low time is considered one point of data and returned in units of seconds or ticks In a pulse measurement each pair of high and low times is considered one point of data and returned as a paired sample in units of frequency and duty cycle high and low time or high and low ticks When reading data 10 points ina semi period measurement will get an array of five high times and five low times When you read 10 points in a pulse measurement you get an array of 10 pairs of high and low times National Instruments Corporation 7 11 X Series User Manual Chapter 7 Counters Also pulse measurements support sample clock timing while semi period measurements do not Semi Period Measurement X Series User Manual In semi period measurements the counter measures a semi period on its Gate input signal after the counter is armed A semi period is the time between any two consecutive edges on the Gate input You can route an internal or external periodic clock signal with a known period to the Source input of the counter The counter counts the number of rising or falling edges occurring on the Source input between two edges of the Gate signal You can calculate the semi period of the Gate input by multiplying the period of the Source signal by the number of edges returned by the count
169. e model For models not described below refer to the specifications for your device e NI 6321 6323 634x Devices On NI 6321 6323 634x devices the AO reference is always 10 V So for NI 6321 6323 634x devices the analog output range equals 10 V e NI 635x 636x Devices On NI 635x 636x devices the AO reference of each analog output AO lt 0 3 gt can be individually set to one of the following 10V 5V APFI lt 0 1 gt You can connect an external signal to APFI lt 0 1 gt to provide the AO reference The AO reference can be a positive or negative voltage If AO reference is a negative voltage the polarity of the AO output is inverted The valid ranges of APFI lt 0 1 gt are listed in the device specifications You can use one of the AO lt 0 3 gt signals to be the AO reference for a different AO signal However you must externally connect this channel to APFI 0 or APFI 1 B Note When using an external reference the output signal is not calibrated in software You can generate a value and measure the voltage offset to calibrate your output in software X Series User Manual 5 2 ni com Chapter 5 Analog Output Minimizing Glitches on the Output Signal When you use a DAC to generate a waveform you may observe glitches on the output signal These glitches are normal when a DAC switches from one voltage to another it produces glitches due to released charges The largest glitches occur when the most signi
170. e occurs before the specified number of pretrigger samples are acquired the trigger pulse is ignored Otherwise when the AI Reference Trigger pulse occurs the sample counter value decrements until the specified number of posttrigger samples have been acquired MIO X Series devices feature the following analog input timing signals e AI Sample Clock Signal e AI Sample Clock Timebase Signal e AI Convert Clock Signal e Al Convert Clock Timebase Signal e AI Hold Complete Event Signal e AI Start Trigger Signal e AI Reference Trigger Signal e AI Pause Trigger Signal Signals with an support digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information Aggregate versus Single Channel Sample Rates MIO X Series devices are characterized with maximum single channel and maximum aggregate sample rates The maximum single channel rate is the fastest you can acquire data on the device from a single channel and still achieve accurate results The maximum aggregate sample rate is the fastest you can acquire on multiple channels and still achieve accurate results For example NI 6351 devices have a single channel maximum rate of 1 25 MS s and aggregate maximum sample rate of 1 MS s so they can sample one channel at 1 25 kS s or two channels at 500 kS s per channel as shown in Table 4 4 Table 4 4 Analog Input Rates for MIO X Series Devices Analog Input Rate Multi Channel MIO X Series Dev
171. each rising edge of channel B as shown in Figure 7 22 ChA chp L Counter Value 2X 3 X 4 X 5 X 4 YX 3 X 4 Figure 7 22 Measurements Using Two Pulse Encoders For information about connecting counter signals refer to the Default Counter Timer Pinouts section Buffered Sample Clock Position Measurement With buffered position measurement position measurement using a sample clock the counter increments based on the encoding used after the counter is armed The value of the counter is sampled on each active edge of a sample clock A DMA controller transfers the sampled values to host memory The count values returned are the cumulative counts since the counter armed event that is the sample clock does not reset the counter You can route the counter sample clock to the Gate input of the counter You can configure the counter to sample on the rising or falling edge of the sample clock Figure 7 23 shows an example of a buffered X1 position measurement 7 26 ni com Chapter 7 Counters Counter Sample Clock Armed 1 1 Sample on Rising Edge ChA ChB Count 3 Buffer 1 3 Figure 7 23 Buffered Position Measurement Hardware Timed Single Point Position Measurement A hardware timed single point HWTSP position measurement has
172. easurement or A to B measurement Refer to the following sections for more information about the X Series edge separation measurement options e Single Two Signal Edge Separation Measurement e Implicit Buffered Two Signal Edge Separation Measurement e Sample Clocked Buffered Two Signal Separation Measurement e Hardware Timed Single Point Two Signal Separation Measurement Single Two Signal Edge Separation Measurement With single two signal edge separation measurement the counter counts the number of rising or falling edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal The counter then stores the count in the FIFO and ignores other edges on its inputs Software then reads the stored count Figure 7 24 shows an example of a single two signal edge separation measurement Counter Armed i r Measured Interval gt i AUX 7 GATE o SOURCE Counter Value o 0 0 0 Latched Value 8 Figure 7 24 Single Two Signal Edge Separation Measurement 7 28 ni com Chapter 7 Counters Implicit Buffered Two Signal Edge Separation Measurement Implicit buffered and single two signal edge separation measurements are similar but implicit buffered measurement measures multiple intervals The counter counts the number of rising or falling edges on the Sour
173. easurement in LabVIEW using the DAQ Assistant xvi ni com LabWindows CVI About This Manual e VIand Function Reference Measurement I O VIs and Functions DAQnx Data Acquisition VIs and Functions Describes the LabVIEW NI DAQmx VIs and properties e Taking Measurements Contains the conceptual and how to information you need to acquire and analyze measurement data in LabVIEW including common measurements measurement fundamentals NI DAQmx key concepts and device considerations The Data Acquisition book of the LabWindows CVI Help contains Taking an NI DAQmx Measurement in LabWindows CVI which includes step by step instructions about creating a measurement task using the DAQ Assistant In LabWindows CVI select Help Contents then select Using LabWindows CVI Data Acquisition This book also contains information about accessing detailed information through the NJ DAQmx Help The NI DAQm x Library book of the LabWindows CVI Help contains API overviews and function reference for NI DAQmx Select Library Reference NI DAQmx Library in the LabWindows CVI Help Measurement Studio If you program your NI DAQmx supported device in Measurement Studio using Visual C Visual C or Visual Basic NET you can interactively create channels and tasks by launching the DAQ Assistant from MAX or from within Visual Studio You can use Measurement Studio to generate the configuration code based on your task or channel Refer to the DA
174. easurement time for the one counter measurement is lowest but the accuracy is lower Note that the accuracy and measurement time of the sample clocked and two counter large range are the same The advantage of the sample clocked method is that even when the frequency to measure changes the measurement time and error does not For example if you configured a large range two counter measurement to use a divide down of 50 for a 50 kHz signal then you would get the accuracy measurement time and accuracy listed in table 7 3 But if your signal ramped up to 5 MHz then with a divide down of 50 your measurement time would be 0 01 ms but your error would now be 0 001 The error with a sample clocked frequency measurement is not dependent on the measured frequency so at 50 kHz and 5 MHz with a measurement time of 1 ms the error will still be 0 001 One of the disadvantages of a sample clocked frequency measurement is that the frequency to be measured must be at least twice the sample clock rate to ensure that a full period of the frequency to be measured occurs between sample clocks Table 7 5 summarizes some of the differences in methods of measuring frequency Table 7 5 Frequency Measurement Method Comparison Measures High Measures Low Number of Number of Frequency Frequency Counters Measurements Signals Signals Method Used Returned Accurately Accurately Low frequency with 1 1 Poor Good one counter High frequency with 1 or2
175. ecautions to take Bold text denotes items that you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names Italic text denotes variables emphasis a cross reference or an introduction to a key concept Italic text also denotes text that is a placeholder for a word or value that you must supply Text in this font denotes text or characters that you should enter from the keyboard sections of code programming examples and syntax examples This font is also used for the proper names of disk drives paths directories programs subprograms subroutines device names functions operations variables filenames and extensions Text in this font denotes a specific platform and indicates that the text following it applies only to that platform National Instruments Corporation XV X Series User Manual About This Manual Related Documentation Each application software package and driver includes information about writing applications for taking measurements and controlling measurement devices The following references to documents assume you have NI DAQmx 9 2 or later and where applicable version 8 5 or later of the NI application software NI DAQmx for Windows LabVIEW X Series User Manual The DAQ Getting Started guides packaged with NI DAQmx describe how to install your NI DAQmx for Windows software how to install your NI DAQmx supported DAQ device and ho
176. ed generation in response to each pulse on an AO Start Trigger signal The timing engine ignores the AO Start Trigger signal while the clock generation is in progress After the clock generation is finished the counter waits for another Start Trigger to begin another clock generation Figure 5 4 shows a retriggerable AO generation of four samples AO Start Trigger AO Sample Clock Figure 5 4 Retriggerable Analog Output Using a Digital Source To use AO Start Trigger specify a source and an edge The source can be one of the following signals e A pulse initiated by host software e PFI lt 0 15 gt e RTSI lt 0 7 gt e Al Start Trigger ai StartTrigger e Al Reference Trigger ai ReferenceTrigger National Instruments Corporation 5 7 X Series User Manual Chapter 5 Analog Output e PXISTAR e PXIe DSTAR lt A B gt e Counter n Internal Output e Change Detection Event e DI Start Trigger di StartTrigger e DI Reference Trigger di ReferenceTrigger e DO Start Trigger do StartTrigger The source also can be one of several internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the waveform generation begins on the rising edge or falling edge of AO Start Trigger Using an Analog Source When you use an analog trigger source the w
177. eeeecesceseeesecseeeseceseeaeceseeseensesseseaeseeeaees 7 12 Single Semi Period Measurement 0 cece eeseeseeeeseeeeeeeeeeseees 7 12 Implicit Buffered Semi Period Measurement eee eee 7 12 Frequency Measurement 0 cece eececesecseceseeseeeseeseceseceeeaecaeceaeeseessesseeeaeenaes 7 13 Low Frequency with One Counter eee eeeesecseeeseteeeeeeenee 7 13 High Frequency with Two Counters 00 ccc eee eeeeseeeeeeereeeeseeees 7 14 Large Range of Frequencies with Two Counters 0 eee 7 15 Sample Clocked Buffered Frequency Measurement 000 7 16 Hardware Timed Single Point Frequency Measurement 7 18 Choosing a Method for Measuring Frequency s s s 7 18 Period Measurement sinsoorte iei a i N 7 23 Position Measurement cece eeecescesecseceseesecesessecesecseeeseeseecseessecaeeeaeeaeenaes 7 23 Measurements Using Quadrature Encode s eee eee eeeeeees 7 24 Measurements Using Two Pulse Encoders 0 0 0 eeeeeeeeeeeeeereeeeees 7 26 Buffered Sample Clock Position Measurement eseeeeeeeees 7 26 Hardware Timed Single Point Position Measurement 7 27 X Series User Manual X ni com Contents Two Signal Edge Separation Measurement ees eeeeseeeeeeseeeeeeeeeeeneeees 7 27 Single Two Signal Edge Separation Measurement cee 7 28 Implicit Buffered Two Signal Edge Separation Measurement 7 29 Sample Clocked Buffered Two Signal Separation Mea
178. ees 4 30 AI Convert Clock Signal eecesesceesecesecneceaeeeeesesseeeaeseasenees 4 30 AI Convert Clock Timebase Signal cece cece eseeeeeeeeneeeeeeenees 4 34 AI Hold Complete Event Signal 0 eee ec eeeeseeseeeeceeeneeseeeeaees 4 34 Al Start Trigger Signal eee cece esecesececeeeceeeeaeeeeeeseenseseeeeaees 4 35 AI Reference Trigger Signal eee ec eeeeseeseceseeeeeeeseeeeaeenseesees 4 37 Al Pause Trigger Signal oo eee eecceseeeeceseceeeseeeeecseseeeeseenseesees 4 38 Getting Started with AI Applications in Software 0 eee ee eeeereeeeeees 4 40 Analog Input on Simultaneous MIO X Series Devices eee eeeeereeeeseeeeeeneeeaes 4 41 Analog Input Terminal Configuration ices eecesseneeeseeeeeceeseseeseeeaeenees 4 42 Analog Input Ranges isis irern cosdssibastevagesacsdeadie tives caves E as 4 42 Working Voltage Range pnie eien E a 4 43 Analog Input Data Acquisition Methods ssseseeeessssssressessresressessresessees 4 44 Analog Input Triggering iniiis soriire iE ioris s iSi irais iae 4 45 Connecting Analog Input Signals ssesesseeesseeeseeseserseerrsrsresrsrrstsrenresrsresrssre 4 46 Types of Signal Sounces sinnini n 4 46 Differential Connections for Ground Referenced Signal Sources 4 47 Differential Connections for Floating Signal Sources 4 48 Field Wiring Considerations cee ceeseeeeseeseceseeeeeeaeeseeeaeeaeeeeeeeeeseseeeeaee 4 50 Minimizing Drift in Differential Mode eee eee eeeeeeeeeeees 4 51 Analog Input Timing
179. er Refer to the following sections for more information about X Series semi period measurement options e Single Semi Period Measurement e Implicit Buffered Semi Period Measurement Refer to the Pulse versus Semi Period Measurements section for information about the differences between semi period measurement and pulse measurement Single Semi Period Measurement Single semi period measurement is equivalent to single pulse width measurement Implicit Buffered Semi Period Measurement In implicit buffered semi period measurement on each edge of the Gate signal the counter stores the count in the FIFO A DMA controller transfers the stored values to host memory The counter begins counting when it is armed The arm usually occurs between edges on the Gate input You can select whether to read the first active low or active high semi period using the CI SemiPeriod StartingEdge property in NI DAQmx 7 12 ni com Chapter 7 Counters Figure 7 11 shows an example of an implicit buffered semi period Buffer measurement Counter Starting Armed Edge Gate _ source ALELA ELELE LALELA Counter Value 0 1 23 414 2 1 38 iB of Figure 7 11 Implicit Buffered Semi Period Measurement For information about connecting counter signals refer to the Default Counter Timer Pinouts section F
180. er signal ai StartTrigger can be either a hardware or software signal If Al Start Trigger is set up to be a software start trigger an output pulse appears on the ai StartTrigger line when the acquisition begins When the Al Start Trigger pulse occurs the sample counter is loaded with the number of pretrigger samples in this example four The value decrements with each pulse on AI Sample Clock until the value reaches zero The sample counter is then loaded with the number of posttrigger samples in this example three Al Start Trigger Al Reference Trigger Don tCare Al Sample Clock i i Sample Counter 3 2 99 00 42 12 2 61 0 4 X Series User Manual Figure 4 29 Typical Pretriggered DAQ Sequence If an AI Reference Trigger ai ReferenceTrigger pulse occurs before the specified number of pretrigger samples are acquired the trigger pulse is ignored Otherwise when the AI Reference Trigger pulse occurs the sample counter value decrements until the specified number of posttrigger samples have been acquired For more information about start and reference triggers refer to the Analog Input Triggering section Simultaneous MIO X Series devices feature the following analog input timing signals e Al Sample Clock Signal e AI Sample Clock Timebase Signal e AI Hold Complete Event Signal e AI Start Trigger Signal e AI Reference Trigger Signal
181. er Manual Chapter 4 Analog Input Working Voltage Range On most MIO X Series devices the PGIA operates normally by amplifying signals of interest while rejecting common mode signals under the following three conditions e The common mode voltage V m which is equivalent to subtracting AI lt 0 x gt GND from AI lt 0 x gt must be less than 10 V This Vem is a constant for all range selections e The signal voltage V which is equivalent to subtracting AI lt 0 x gt from AI lt 0 x gt must be less than or equal to the range selection of the given channel If V is greater than the range selected the signal clips and information are lost e The total working voltage of the positive input which is equivalent to Vem V or subtracting AI GND from AI lt 0 x gt must be less than 11 V If any of these conditions are exceeded the input voltage is clamped until the fault condition is removed Analog Input Ground Reference Settings X Series User Manual MIO X Series devices support the following analog input ground reference settings e Differential mode In DIFF mode the MIO X Series device measures the difference in voltage between two AI signals e Referenced single ended mode In RSE mode the MIO X Series device measures the voltage of an AI signal relative to AI GND e Non referenced single ended mode In NRSE mode the MIO X Series device measures the voltage of an AI signal relative to one
182. er performs a pulse measurement on the Gate On each sample clock edge the counter stores the high and low ticks in the FIFO of the last pulse to complete A DMA controller transfers the stored values to host memory 7 10 ni com Chapter 7 Counters Figure 7 10 shows an example of a sample clocked buffered pulse measurement Counter s4 so Armed lt _ gt Gate Source JUL UW UU UE Sample 2i 2 Clock 1 H 1 L 1 1 1 1 1 HL Buffer 2 2 2 2 4 2 3 3 2 2 313 Figure 7 10 Sample Clocked Buffered Pulse Measurement Hardware Timed Single Point Pulse Measurement A hardware timed single point HWTSP pulse measurement has the same behavior as a sample clocked buffered pulse measurement 3 Note Ifa pulse does not occur between sample clocks an overrun error will occur 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations For information about connecting counter signals refer to the Default Counter Timer Pinouts section Pulse versus Semi Period Measurements In hardware pulse measurement and semi period are the same measurement Both measure th
183. er the measurement acquisition begins on the rising edge or falling edge of AI Start Trigger Using an Analog Source When you use an analog trigger source the acquisition begins on the first rising edge of the Analog Comparison Event signal Routing Al Start Trigger to an Output Terminal You can route AI Start Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The output is an active high pulse All PFI terminals are configured as inputs by default The device also uses AI Start Trigger to initiate pretriggered DAQ operations In most pretriggered applications a software trigger generates AI Start Trigger Refer to the AJ Reference Trigger Signal section for a complete description of the use of AI Start Trigger and AI Reference Trigger in a pretriggered DAQ operation National Instruments Corporation 4 57 X Series User Manual Chapter 4 Analog Input Al Reference Trigger Signal Use AI Reference Trigger ai ReferenceTrigger signal to stop a measurement acquisition To use a reference trigger specify a buffer of finite size and a number of pretrigger samples samples that occur before the reference trigger The number of posttrigger samples samples that occur after the reference trigger desired is the buffer size minus the number of pretrigger samples Once the acquisition begins the DAQ device writes samples to the buffer After the DAQ device captures the specified number of pretrigger samples
184. er to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the measurement acquisition stops on the rising or falling edge or falling edge of DI Reference Trigger National Instruments Corporation 6 11 X Series User Manual Chapter 6 Digital 1 0 Using an Analog Source When you use an analog trigger source the acquisition stops on the first rising edge of the Analog Comparison Event signal Routing DI Reference Trigger Signal to an Output Terminal You can route DI Reference Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt PXI_Trig lt 0 7 gt or PXIe DSTARC terminal All PFI terminals are configured as inputs by default DI Pause Trigger Signal You can use the DI Pause Trigger di PauseTrigger signal to pause and resume a measurement acquisition The internal sample clock pauses while the external trigger signal is active and resumes when the signal is inactive You can program the active level of the pause trigger to be high or low as shown in Figure 6 6 In the figure T represents the period and A represents the unknown time between the clock pulse and the posttrigger DI Sample Clock DI Pause Trigger a a Halt Used on Internal Clock DI External Sample Clock _ LJ L LJ LJ LL Le Lo DI Sample Clock DI Pause Trigger Free Running Used on
185. eral factors including the expected frequency of the signal to measure the desired accuracy how many counters are available and how long the measurement can take For all frequency measurement methods assume the following fx is the frequency to be measured if no error fk is the known source or gate frequency measurement time T is the time it takes to measure a single sample 7 18 ni com Chapter 7 Counters Divide down N is the integer to divide down measured frequency only used in large range two counters fs is the sample clock rate only used in sample clocked frequency measurements Here is how these variables apply to each method summarized in Table 7 2 One counter With one counter measurements a known timebase is used for the source frequency fk The measurement time is the period of the frequency to be measured or 1 fx Two counter high frequency With the two counter high frequency method the second counter provides a known measurement time The gate frequency equals 1 measurement time Two counter large range The two counter larger range measurement is the same as a one counter measurement but now the user has an integer divide down of the signal An internal timebase is still used for the source frequency fk but the divide down means that the measurement time is the period of the divided down signal or N fx where N is the divide down Sample clocked For sample clocked frequency measurements a
186. es device for an AI channel Resolution refers to the voltage of one ADC code For example a 16 bit ADC converts analog inputs into one of 65 536 2 6 codes that is one of 65 536 possible digital values These values are spread fairly evenly across the input range So for an input range of 10 V to 10 V the voltage of each code of a 16 bit ADC is 10V 10V 216 305 uV Simultaneous MIO X Series devices use a calibration method that requires some codes typically about 5 of the codes to lie outside of the specified range This calibration method improves absolute accuracy but it increases 4 42 ni com Chapter 4 Analog Input the nominal resolution of input ranges by about 5 over what the formula shown above would indicate Choose an input range that matches the expected input range of your signal A large input range can accommodate a large signal variation but reduces the voltage resolution Choosing a smaller input range improves the voltage resolution but may result in the input signal going out of range For more information about setting ranges refer to the NI DA Qmx Help or the LabVIEW Help Table 4 5 shows the input ranges and resolutions supported by the Simultaneous MIO X Series device family Table 4 5 Simultaneous MIO X Series Device Input Range and Nominal Resolution Simultaneous MIO Nominal Resolution Assuming X Series Device Input Range 5 Over Range NI 6356 6358 6366 636
187. es synchronous to the external reference clock Once all of the devices are using or referencing a common timebase you can synchronize operations across them by sending a common start trigger out across the PFI bus and setting their sample clock rates to the same value Real Time System Integration RTSI X Series User Manual Real Time System Integration RTSI is a signal bus among devices that allows you to do the following e Use a common clock or timebase to drive the timing engine on multiple devices e Share trigger signals between devices Many National Instruments DAQ motion vision and CAN devices support RTSI In a PCI Express system the RTSI bus consists of the RTSI bus interface and a ribbon cable The bus can route timing and trigger signals between several functions on as many as five DAQ vision motion or CAN devices in the computer 9 4 ni com Chapter 9 Digital Routing and Clock Generation In a PXI Express system the RTSI bus is replaced by the PXI and PXI Express trigger signals on the PXI Express backplane This bus can route timing and trigger signals between several functions on as many as seven DAQ devices in the system USB devices do not support the RTSI bus RTSI Connector Pinout PCI Express Devices Figure 9 2 shows the RTSI connector pinout and Table 9 1 describes the RTSI signals Figure 9 2 PCI Express X Series Device RTSI Pinout Table 9 1 RTS
188. ese methods are regeneration FIFO regeneration and non regeneration modes e Regeneration is the repetition of the data that is already in the buffer Standard regeneration is when data from the PC buffer is continually downloaded to the FIFO to be written out New data can be written to the PC buffer at any time without disrupting the output Use the NI DAQmx write property regenMode to allow or not allow regeneration The NI DAQmx default is to allow regeneration e With non regeneration old data is not repeated New data must be continually written to the buffer If the program does not write new data to the buffer at a fast enough rate to keep up with the generation the buffer underflows and causes an error e With FIFO regeneration the entire buffer is downloaded to the FIFO and regenerated from there Once the data is downloaded new data cannot be written to the FIFO To use FIFO regeneration the entire buffer must fit within the FIFO size The advantage of using FIFO regeneration is that it does not require communication with the main host memory once the operation is started thereby preventing any problems that may occur due to excessive bus traffic Use the NI DAQmx 6 15 X Series User Manual Chapter 6 Digital 1 0 DO channel property UseOnlyOnBoardMemeory to enable or disable FIFO regeneration Digital Output Triggering Digital output supports two different triggering actions e Start trigger e Pause trigger
189. evi Signal Source DAQ Device Single Ended NRSE ee ae 9 Al Al Al SENSE Ek SENSE AVOND IT Al GND Referenced Single Ended RSE NOT RECOMMENDED Signal Source DAQ Device Signal Source DAQ Device co Al Al Va y Al GND Bi 4ALGND Ground loop potential Va Vg are added to measured signal Refer to the Analog Input Ground Reference Settings section for descriptions of the RSE NRSE and DIFF modes and software considerations t Refer to the Connecting Ground Referenced Signal Sources section for more information X Series User Manual 4 12 ni com Chapter 4 Analog Input Connecting Floating Signal Sources What Are Floating Signal Sources A floating signal source is not connected to the building ground system but has an isolated ground reference point Some examples of floating signal sources are outputs of transformers thermocouples battery powered devices optical isolators and isolation amplifiers An instrument or device that has an isolated output is a floating signal source When to Use Differential Connections with Floating Signal Sources Use DIFF input connections for any channel that meets any of the following conditions e The input signal is low level less than 1 V e The leads connecting the signal to the device are greater than 3 m 10 ft e The input signal requires a separate ground reference point or return signal e The signal leads travel th
190. evices that plug into the building power system fall into this category The difference in ground potential between two instruments connected to the same building power system is typically between 1 mV and 100 mV but the difference can be much higher if power distribution circuits are improperly connected If a grounded signal source is incorrectly measured this difference can appear as measurement error Follow the connection instructions for grounded signal sources to eliminate this ground potential difference from the measured signal Isolated devices have isolated front ends that are isolated from ground reference signal sources and are not connected to building system grounds Isolated devices require the user to provide a ground reference terminal to which its input signals are referenced Differential Connections for Ground Referenced Signal Sources Figure 4 26 shows how to connect a ground referenced signal source to a channel on an Simultaneous MIO X Series device i Simultaneous X Series Device 1 0 Connector Alo Instrumentation Amplifier round Referenced V Signal 9 Source Al0O0 Measured o Vm Common oltage Mode Noise v o and Ground Potential SJZ Al 0 GND 0 V Al 0 Connections Shown Figure 4 26 Differential Connection for Ground Referenced Signals on Simultaneous National Instruments Corporation MIO X Series Devices 4 47 X Series
191. f you know the expected input range of your signals you can group signals with similar expected ranges together in your scan list 4 8 ni com Chapter 4 Analog Input For example suppose all channels in a system use a 5 to 5 V input range The signals on channels 0 2 and 4 vary between 4 3 V and 5 V The signals on channels 1 3 and 5 vary between 4 V and 0 V Scanning channels in the order 0 2 4 1 3 5 produces more accurate results than scanning channels in the order 0 1 2 3 4 5 4 Avoid Scanning Faster Than Necessary Designing your system to scan at slower speeds gives the NI PGIA more time to settle to a more accurate level Here are two examples to consider Example 1 Averaging many AI samples can increase the accuracy of the reading by decreasing noise effects In general the more points you average the more accurate the final result However you may choose to decrease the number of points you average and slow down the scanning rate Suppose you want to sample 10 channels over a period of 20 ms and average the results You could acquire 500 points from each channel at a scan rate of 250 kS s Another method would be to acquire 1 000 points from each channel at a scan rate of 500 kS s Both methods take the same amount of time Doubling the number of samples averaged from 500 to 1 000 decreases the effect of noise by a factor of 1 4 the square root of 2 However doubling the number of samples in th
192. fference between the signal source and the device ground Refer to the Using Non Referenced Single Ended NRSE Connections for Floating Signal Sources section for more information about NRSE connections When to Use Referenced Single Ended RSE Connections with Floating Signal Sources Only use RSE input connections if the input signal meets the following conditions e The input signal can share a common reference point AI GND with other signals that use RSE e The input signal is high level greater than 1 V e The leads connecting the signal to the device are less than 3 m 10 ft DIFF input connections are recommended for greater signal integrity for any input signal that does not meet the preceding conditions In the single ended modes more electrostatic and magnetic noise couples into the signal connections than in DIFF configurations The coupling is the result of differences in the signal path Magnetic coupling is proportional to the area between the two signal conductors Electrical coupling is a function of how much the electric field differs between the two conductors With this type of connection the NI PGIA rejects both the common mode noise in the signal and the ground potential difference between the signal source and the device ground Refer to the Using Referenced Single Ended RSE Connections for Floating Signal Sources section for more information about RSE connections 4 14 ni com Chapter 4 Analog I
193. fferential For digital signals you group channels to form ports Ports usually consist of either four or eight digital channels Hardware component that controls timing for reading from or writing to groups Complementary metal oxide semiconductor Common mode rejection ratio A measure of the ability of a differential amplifier to reject interference from a common mode signal usually expressed in decibels dB The ability of an electronic system to cancel any electronic noise pick up that is common to both the positive and negative polarities of the input leads to the instrument front end Common mode rejection is only a relevant specification for systems having a balanced or differential input 1 Any voltage present at the instrumentation amplifier inputs with respect to amplifier ground 2 The signal relative to the instrument chassis or computer s ground of the signals from a differential input This is often a noise signal such as 50 or 60 Hz hum 1 A device that provides electrical connection 2 A fixture either male or female attached to a cable or chassis for quickly making and breaking one or more circuits A symbol that connects points on a flowchart Reciprocal of the interchannel delay The number of events such as zero crossings pulses or cycles 1 Software A memory location used to store a count of certain occurrences 2 Hardware A circuit that counts events When it refers to an instrument
194. ficant bit of the DAC code changes You can build a lowpass deglitching filter to remove some of these glitches depending on the frequency and nature of the output signal Visit ni com support for more information about minimizing glitches Analog Output Data Generation Methods When performing an analog output operation you can perform software timed or hardware timed generations Software Timed Generations With a software timed generation software controls the rate at which data is generated Software sends a separate command to the hardware to initiate each DAC conversion In NI DAQmx software timed generations are referred to as on demand timing Software timed generations are also referred to as immediate or static operations They are typically used for writing a single value out such as a constant DC voltage Hardware Timed Generations With a hardware timed generation a digital hardware signal controls the rate of the generation This signal can be generated internally on your device or provided externally Hardware timed generations have several advantages over software timed generations e The time between samples can be much shorter e The timing between samples can be deterministic e Hardware timed acquisitions can use hardware triggering Hardware timed operations can be buffered or hardware timed single point HWTSP A buffer is a temporary storage in computer memory for to be transferred samples e Ha
195. g A trigger is a signal that causes an action such as starting or stopping the acquisition of data When you configure a trigger you must decide how you want to produce the trigger and the action you want the trigger to cause All X Series devices support internal software triggering as well as external digital triggering Some devices also support analog triggering For information about the different actions triggers can perform for each sub system of the device refer to the following sections e The Analog Input Triggering section of Chapter 4 Analog Input e The Analog Output Triggering section of Chapter 5 Analog Output e The Counter Triggering section of Chapter 7 Counters 3 Note Not all X Series devices support analog triggering For more information about triggering compatibility refer to the specifications document for your device Triggering with a Digital Source Your DAQ device can generate a trigger on a digital signal You must specify a source and an edge The digital source can be any of the PFI RTSI or PXI_STAR signals The edge can be either the rising edge or falling edge of the digital signal A rising edge is a transition from a low logic level to a high logic level A falling edge is a high to low transition Figure 11 1 shows a falling edge trigger 5V Digital Trigger OV Falling Edge Initiates Acquisition Figure 11 1 Falling Edge Trigger National Instruments Corporation 11 1 X
196. g pulse using the signal to measure You then measure the long pulse with a known timebase The X Series device can measure this long pulse more accurately than the faster input signal aye Note Counter 0 is always paired with Counter 1 Counter 2 is always paired with Counter 3 You can route the signal to measure to the Source input of Counter 0 as shown in Figure 7 14 Assume this signal to measure has frequency fx NI DAQmx automatically configures Counter 0 to generate a single pulse that is the width of N periods of the source input signal National Instruments Corporation 7 15 X Series User Manual Chapter 7 Counters X Series User Manual Signal to Measure fx Source Out Counter 0 Signal of Known Frequency fk sores ou Counter 1 Gate 1o 2 3 cee N 0 CTR_O_SOURCE WWF morn Signal to Measure CTR_O_OUT CTR_1_GATE a Interval p to Measure CTR_1_SOURCE JUUUUUUUUUUUUUULULUA Figure 7 14 Large Range of Frequencies with Two Counters NI DAQmx then routes the Counter 0 Internal Output signal to the gate of Counter 1 You can then route a signal of known frequency fk as a counter timebase to the Counter 1 Source input NI DAQmx configures Counter 1 to perform a single pulse width measurement Suppose the result is that the pulse width is J periods of the fk clock From Counter 0 the length of the pulse is N fx From Counter 1 the length of the same
197. ge on one input terminal and ground See also differential input A circuit whose output signal is present between one output terminal and ground The programs that run on your computer and perform a specific user oriented function such as accounting program development measurement or data acquisition In contrast operating system functions basically perform the generic housekeeping of the machine which is independent of any specific application Operating system functions include the saving of data file system handling of multiple programs at the same time multi tasking network interconnection printing and keyboard user interface interaction A method of triggering in which you simulate an analog trigger using software Also called conditional retrieval G 14 ni com source impedance synchronous task TC terminal terminal count teh t gsu tow timebase t out transducer National Instruments Corporation G 15 Glossary A parameter of signal sources that reflects current driving ability of voltage sources lower is better and the voltage driving ability of current sources higher is better 1 Hardware A property of an event that is synchronized to a reference clock 2 Software A property of a function that begins an operation and returns only when the operation is complete A synchronous process is therefore locked and no other processes can run during this time In NI
198. ger Circuitry You must specify a source and an analog trigger type The source can be either an APFI lt 0 1 gt terminal or an analog input channel APFI lt 0 1 gt Terminals When you use either APFI lt 0 1 gt terminal as an analog trigger you should drive the terminal with a low impedance signal source less than 1 kQ source impedance If APFI lt 0 1 gt are left unconnected they are susceptible to crosstalk from adjacent terminals which can cause false triggering Note that the APFI lt 0 1 gt terminals also can be used for other functions such as the AO External Reference input as described in the AO Reference Selection section of Chapter 5 Analog Output Analog Input Channels Refer to the Analog Input Channels on MIO X Series Devices or Analog Input Channels on Simultaneous MIO X Series Devices section depending on your device National Instruments Corporation 11 3 X Series User Manual Chapter 11 Triggering Analog Input Channels on MIO X Series Devices Select any analog input channel to drive the NI PGIA The NI PGIA amplifies the signal as determined by the input ground reference setting and the input range The output of the NI PGIA then drives the analog trigger detection circuit By using the NI PGIA you can trigger on very small voltage changes in the input signal When the DAQ device is waiting for an analog trigger with a AI channel as the source the AI muxes should not route different AI channels
199. gerable Single Pulse Generation with Initial Delay on Retrigger Set to False X Series User Manual 7 34 ni com Chapter 7 Counters B Note The minimum time between the trigger and the first active edge is two ticks of the source For information about connecting counter signals refer to the Default Counter Timer Pinouts section Continuous Pulse Train Generation This function generates a train of pulses with programmable frequency and duty cycle The pulses appear on the Counter n Internal Output signal of the counter You can specify a delay from when the counter is armed to the beginning of the pulse train The delay is measured in terms of a number of active edges of the Source input You specify the high and low pulse widths of the output signal The pulse widths are also measured in terms of a number of active edges of the Source input You also can specify the active edge of the Source input rising or falling The counter can begin the pulse train generation as soon as the counter is armed or in response to a hardware Start Trigger You can route the Start Trigger to the Gate input of the counter You also can use the Gate input of the counter as a Pause Trigger if it is not used as a Start Trigger The counter pauses pulse generation when the Pause Trigger is active Figure 7 33 shows a continuous pulse train generation using the rising edge of Source
200. gnal that does not meet the preceding conditions 4 20 ni com Chapter 4 Analog Input In the single ended modes more electrostatic and magnetic noise couples into the signal connections than in DIFF configurations The coupling is the result of differences in the signal path Magnetic coupling is proportional to the area between the two signal conductors Electrical coupling is a function of how much the electric field differs between the two conductors With this type of connection the NI PGIA rejects both the common mode noise in the signal and the ground potential difference between the signal source and the device ground Refer to the Using Non Referenced Single Ended NRSE Connections for Ground Referenced Signal Sources section for more information about NRSE connections When to Use Referenced Single Ended RSE Connections with Ground Referenced Signal Sources Do not use RSE connections with ground referenced signal sources Use NRSE or DIFF connections instead As shown in the bottom rightmost cell of Table 4 3 there can be a potential difference between AI GND and the ground of the sensor In RSE mode this ground loop causes measurement errors National Instruments Corporation 4 21 X Series User Manual Chapter 4 Analog Input X Series User Manual Using Differential Connections for Ground Referenced Signal Sources Figure 4 10 shows how to connect a ground referenced signal source to the MIO X Series devi
201. h All PFI terminals are configured as inputs by default Other Timing Requirements Your DAQ device only acquires data during an acquisition The device ignores AI Sample Clock when a measurement acquisition is not in progress During a measurement acquisition you can cause your DAQ device to ignore AI Sample Clock using the AI Pause Trigger signal A counter timing engine on your device internally generates AI Sample Clock unless you select some external source AI Start Trigger starts this counter and either software or hardware can stop it once a finite acquisition completes When using the AI timing engine you also can specify a configurable delay from AI Start Trigger to the first AI Sample Clock 4 54 ni com Chapter 4 Analog Input pulse By default this delay is set to two ticks of the AI Sample Clock Timebase signal Figure 4 16 shows the relationship of AI Sample Clock to AI Start Trigger Al Sample Clock Timebase Al Start Trigger Al Sample Clock 4 gt Delay From Start Trigger Figure 4 30 Al Sample Clock and Al Start Trigger Al Sample Clock Timebase Signal You can route any of the following signals to be the AI Sample Clock Timebase ai SampleClockTimebase signal e 100 MHz Timebase default e 20 MHz Timebase e 100 kHz Timebase e PXI_CLK10 e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXISTAR e PXIe DSTAR lt A B gt e
202. h signal pair to the ground reference at the source e Route the analog lines separately from the digital lines e When using a cable shield use separate shields for the analog and digital sections of the cable Failure to do so results in noise coupling into the analog signals from transient digital signals For more information about the connectors used for DAQ devices refer to the KnowledgeBase document Specifications and Manufacturers for Board Mating Connectors by going to ni com info and entering the Info Code rdspmb USB Device Accessories NI offers a variety of products to use with USB X Series devices as follows e USB X Series mounting kit Part number 781514 01 e USB X Series mounting kit with DIN rail clip Part number 781515 01 e USB cable with locking screw 2 m Part number 780534 01 e Universal power supply with mini combicon connector 12 VDC 2 5 A Part number 781513 01 Signal Conditioning Many sensors and transducers require signal conditioning before a measurement system can effectively and accurately acquire the signal The front end signal conditioning system can include functions such as signal amplification attenuation filtering electrical isolation simultaneous sampling and multiplexing In addition many transducers require National Instruments Corporation 2 7 X Series User Manual Chapter 2 DAQ System Overview excitation currents or voltages bridge completion linearization
203. hange Detection Event In addition a counter s Internal Output Gate or Source can be routed to a different counter s Aux A counter s own gate can also be routed to its Aux input Some of these options may not be available in some driver software 7 44 ni com Chapter 7 Counters Counter n A Counter n B and Counter n Z Signals Counter n B can control the direction of counting in edge counting applications Use the A B and Z inputs to each counter when measuring quadrature encoders or measuring two pulse encoders Routing Signals to A B and Z Counter Inputs Each counter has independent input selectors for each of the A B and Z inputs Any of the following signals can be routed to each input e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event Routing Counter n Z Signal to an Output Terminal You can route Counter n Z out to any RTSI lt 0 7 gt terminal Counter n Up_Down Signal Counter n Up_Down is another name for the Counter n B signal Counter n HW Arm Signal The Counter n HW Arm signal enables a counter to begin an input or output function To begin any counter input or output function you must first enable or arm the counter In some applications such as a buffered edge count the counter begins counting when it is armed In other applications such as single pulse width measurement the counter begins waiting for the Gate signal when it
204. he PFI circuitry inverts the polarity of DI Sample Clock before driving the PFI terminal Other Timing Requirements Your DAQ device only acquires data during an acquisition The device ignores DI Sample Clock when a measurement acquisition is not in progress During a measurement acquisition you can cause your DAQ device to ignore DI Sample Clock using the DI Pause Trigger signal The DI timing engine on your device internally generates DI Sample Clock unless you select some external source DI Start Trigger starts this timing engine and either software or hardware can stop it once a finite acquisition completes When using the DI timing engine you also can specify a configurable delay from DI Start Trigger to the first DI Sample Clock pulse By default this delay is set to two ticks of the DI Sample Clock Timebase signal DI Sample Clock Timebase DI Start Trigger l DI Sample Clock j Delay From Start Trigger Figure 6 3 DI Sample Clock and DI Start Trigger DI Sample Clock Timebase Signal You can route any of the following signals to be the DI Sample Clock Timebase di SampleClockTimebase signal 100 MHz Timebase default e 20 MHz Timebase 100 kHz Timebase National Instruments Corporation 6 7 X Series User Manual Chapter 6 Digital I O e PXICLKI10 e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXI _ STAR e PXIe DSTAR lt A B gt e Analog Comparison Event
205. he device to go into an unknown state Make sure that all tasks using a reference clock are stopped before disconnecting it Enabling or disabling the PLL through the use of a reference clock affects the clock distribution to all subsystems For this reason the PLL can only be enabled or disabled when no other tasks are running in any of the device subsystems 10 MHz Reference Clock The 10 MHz reference clock can be used to synchronize other devices to your X Series device The 10 MHz reference clock can be routed to the RTSI lt 0 7 gt or PFI lt 0 15 gt terminals Other devices connected to the RTSI bus can use this signal as a clock input The 10 MHz reference clock is generated by dividing down the onboard oscillator Synchronizing Multiple Devices Refer to the following sections for information about synchronizing multiple X Series devices PXI Express Devices On PXI Express systems you can synchronize devices to PXIe_CLK100 In this application the PXI Express chassis acts as the initiator Each PXI Express module routes PXIe_CLK100 to its external reference clock Another option in PXI Express systems is to use PXI_STAR The Star Trigger controller device acts as the initiator and drives PXI_STAR with a clock signal Each target device routes PXI_STAR to its external reference clock PCI Express Devices With the RTSI and PFI buses and the routing capabilities of X Series PCI Express devices there are several ways
206. ice Single Channel Aggregate NI 632x 250 kS s 250 kS s NI 634x 500 kS s 500 kS s National Instruments Corporation 4 27 X Series User Manual Chapter 4 Analog Input X Series User Manual Table 4 4 Analog Input Rates for MIO X Series Devices Continued Analog Input Rate Multi Channel MIO X Series Device Single Channel Aggregate NI 6351 6353 1 25 MS s 1 MS s NI 6361 6363 2 MS s 1 MS s On NI 6351 6353 636 1 6363 devices the single channel rate is higher than the aggregate rate because while the ADC can sample at that rate the PGIA cannot settle fast enough to meet accuracy specifications Note Refer to Table 4 7 for Simultaneous MIO X Series device analog input rates Al Sample Clock Signal Use the AI Sample Clock ai SampleClock signal to initiate a set of measurements Your MIO X Series device samples the AI signals of every channel in the task once for every AI Sample Clock A measurement acquisition consists of one or more samples You can specify an internal or external source for AI Sample Clock You also can specify whether the measurement sample begins on the rising edge or falling edge of AI Sample Clock Using an Internal Source One of the following internal signals can drive AI Sample Clock e Counter n Internal Output e AI Sample Clock Timebase divided down e A pulse initiated by host software e Change Detection Event e Counter n Sample Clock e A
207. ied number of samples has been read in the acquisition stops If you use a reference trigger you must use finite sample mode e Continuous acquisition refers to the acquisition of an unspecified number of samples Instead of acquiring a set number of data samples and stopping a continuous acquisition continues until you stop the operation 4 44 ni com Chapter 4 Analog Input Continuous acquisition is also referred to as double buffered or circular buffered acquisition If data cannot be transferred across the bus fast enough the FIFO becomes full New acquisitions overwrite data in the FIFO before it can be transferred to host memory The device generates an error in this case With continuous operations if the user program does not read data out of the PC buffer fast enough to keep up with the data transfer the buffer could reach an overflow condition causing an error to be generated Hardware timed single point HWTSP Typically HWTSP operations are used to read single samples at known time intervals While buffered operations are optimized for high throughput HWTSP operations are optimized for low latency and low jitter In addition HWTSP can notify software if it falls behind hardware These features make HWTSP ideal for real time control applications HWTSP operations in conjunction with the wait for next sample clock function provide tight synchronization between the software layer and the hardware layer Refer to
208. ignals of every channel in the task once for every AI Sample Clock A measurement acquisition consists of one or more samples You can specify an internal or external source for AI Sample Clock You also can specify whether the measurement sample begins on the rising edge or falling edge of AI Sample Clock Using an Internal Source One of the following internal signals can drive AI Sample Clock e Counter n Internal Output e AI Sample Clock Timebase divided down National Instruments Corporation 4 53 X Series User Manual Chapter 4 Analog Input X Series User Manual e A pulse initiated by host software e Change Detection Event e Counter n Sample Clock e DI Sample Clock di SampleClock e AO Sample Clock ao SampleClock e DO Sample Clock do SampleClock A programmable internal counter divides down the sample clock timebase Several other internal signals can be routed to AI Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an External Source Use one of the following external signals as the source of AI Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXISTAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger Routing Al Sample Clock Signal to an Output Terminal You can route AI Sample Clock out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal This pulse is always active hig
209. ion Event 6 23 connecting analog input MIO X Series devices 4 11 connecting analog output 5 5 connecting counter B 3 connecting digital I O 6 28 connecting PFI input 8 4 Counter n A 7 45 Counter n Aux 7 44 Counter n B 7 45 Counter n Gate 7 43 Counter n HW Arm 7 45 Counter n Internal Output 7 47 Counter n Sample Clock 7 46 Counter n Source 7 42 Counter n TC 7 47 X Series User Manual Index Counter n Up_Down 7 45 Counter n Z 7 45 counters 7 41 DI Sample Clock 6 6 DO Sample Clock 6 17 exporting timing output using PFI terminals 8 3 FREQ OUT 7 48 Frequency Output 7 48 minimizing output glitches B 3 output minimizing glitches on 5 3 simple pulse generation 7 31 single point edge counting 7 4 pulse generation 7 31 retriggerable 7 33 with start trigger 7 31 pulse width measurement 7 6 semi period measurement 7 12 two signal edge separation measurement 7 28 single ended connections for floating signal sources MIO X Series devices 4 19 RSE configuration MIO X Series devices 4 19 software 1 1 AI applications Simultaneous MIO X Series devices 4 61 configuring AI ground reference settings MIO X Series devices 4 6 programming devices 2 10 software NI resources C 1 software timed acquisitions MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 generations 5 3 6 14 X Series User Manual l 14 specifications device 1 7 NI 6320 A 4 NI 6321 6341 A 7 NI 6323 63
210. ion methods Simultaneous MIO X Series devices 4 44 X Series User Manual Index generation methods 5 3 transfer methods DMA 10 1 programmed I O 10 2 USB Signal Stream 10 2 data acquisition methods MIO X Series devices 4 9 DC coupling connections Simultaneous MIO X Series devices 4 48 Declaration of Conformity NI resources C 1 default counter terminals 7 48 NI DAQmx counter timer pins 7 48 pins 7 48 desktop use 1 3 device information A 1 multiple synchronization 9 3 NI 6320 A 2 NI 6321 6341 A 5 NI 6323 6343 A 9 NI 6351 6361 A 13 NI 6353 6363 A 16 NI 6356 6366 A 20 NI 6358 6368 A 23 pinouts 1 7 self calibration 1 2 specifications 1 7 DI change detection 6 23 DI Sample Clock signal 6 6 di SampleClock 6 6 diagnostic tools NI resources C 1 DIFF connections using with floating signal sources MIO X Series devices 4 15 using with ground referenced signal sources MIO X Series devices 4 22 X Series User Manual l 6 when to use with floating signal sources MIO X Series devices 4 13 when to use with ground referenced signal sources MIO X Series devices 4 20 differential analog input troubleshooting B 1 differential connections for ground referenced signal sources Simultaneous MIO X Series devices 4 47 for non referenced or floating signal sources Simultaneous MIO X Series devices 4 48 using with floating signal sources MIO X Series devices 4 15 using with ground referenced sig
211. ion of Chapter 4 Analog Input Simultaneous MIO X Series Devices For differential measurements on Simultaneous MIO X Series devices AI 0 and AI 0 are the positive and negative inputs of differential analog input channel 0 Also refer to the Connecting Analog Input Signals section of Chapter 4 Analog Input AI SENSE AI SENSE 2 Input Analog Input Sense In NRSE mode the reference for each AI lt 0 15 gt signal is AI SENSE the reference for each AI lt 16 31 gt signal is AI SENSE 2 Also refer to the Connecting Ground Referenced Signal Sources section of Chapter 4 Analog Input AO lt 0 3 gt AO GND Output Analog Output Channels 0 to 3 These terminals supply the voltage output of AO channels 0 to 3 AO GND Analog Output Ground AO GND is the reference for AO lt 0 3 gt All three ground references AI GND AO GND and D GND are connected on the device D GND Digital Ground D GND supplies the reference for PO lt 0 31 gt PFI lt 0 15 gt P1 P2 and 5 V All three ground references AI GND AO GND and D GND are connected on the device X Series User Manual 3 2 ni com Chapter 3 Connector and LED Information Table 3 1 1 0 Connector Signals Continued Signal Name Reference Direction Description PO lt 0 31 gt D GND Input or Port 0 Digital I O Channels 0 to 31 You can individually Output configure each signal as an input or
212. is example decreases the time the NI PGIA has to settle from 4 us to 2 us In some cases the slower scan rate system returns more accurate results Example 2 If the time relationship between channels is not critical you can sample from the same channel multiple times and scan less frequently For example suppose an application requires averaging 100 points from channel 0 and averaging 100 points from channel 1 You could alternate reading between channels that is read one point from channel 0 then one point from channel 1 and so on You also could read all 100 points from channel 0 then read 100 points from channel 1 The second method switches between channels much less often and is affected much less by settling time Analog Input Data Acquisition Methods When performing analog input measurements you either can perform software timed or hardware timed acquisitions National Instruments Corporation 4 9 X Series User Manual Chapter 4 Analog Input X Series User Manual Software Timed Acquisitions With a software timed acquisition software controls the rate of the acquisition Software sends a separate command to the hardware to initiate each ADC conversion In NI DAQmx software timed acquisitions are referred to as having on demand timing Software timed acquisitions are also referred to as immediate or static acquisitions and are typically used for reading a single sample of data Hardware Timed Acquisitions W
213. ith hardware timed acquisitions a digital hardware signal AI Sample Clock controls the rate of the acquisition This signal can be generated internally on your device or provided externally Hardware timed acquisitions have several advantages over software timed acquisitions e The time between samples can be much shorter e The timing between samples is deterministic e Hardware timed acquisitions can use hardware triggering Hardware timed operations can be buffered or hardware timed single point HWTSP A buffer is a temporary storage in computer memory for to be transferred samples e Buffered lIn a buffered acquisition data is moved from the DAQ device s onboard FIFO memory to a PC buffer using DMA before it is transferred to application memory Buffered acquisitions typically allow for much faster transfer rates than HWTSP acquisitions because data is moved in large blocks rather than one point at a time One property of buffered I O operations is the sample mode The sample mode can be either finite or continuous Finite sample mode acquisition refers to the acquisition of a specific predetermined number of data samples Once the specified number of samples has been read in the acquisition stops If you use a reference trigger you must use finite sample mode Continuous acquisition refers to the acquisition of an unspecified number of samples Instead of acquiring a set number of data samples and stopping
214. ive line to AI GND through a resistor that is about 100 times the equivalent source impedance The resistor puts the signal path nearly in balance so that about the same amount of noise couples onto both connections yielding better rejection of electrostatically coupled noise This configuration does not load down the source other than the very high input impedance of the instrumentation amplifier You can fully balance the signal path by connecting another resistor of the same value between the positive input and AI GND This fully balanced configuration offers slightly better noise rejection but has the disadvantage of loading the source down with the series combination sum of the two resistors If for example the source impedance is 2 KQ and each of the two resistors is 100 KQO the resistors load down the source with 200 kQ and produce a 1 gain error AC Coupled Both inputs of the instrumentation amplifier require a DC path to ground in order for the instrumentation amplifier to work If the source is AC coupled capacitively coupled the instrumentation amplifier needs a resistor between the positive input and AI GND If the source has low impedance choose a resistor that is large enough not to significantly load the source but National Instruments Corporation 4 49 X Series User Manual Chapter 4 Analog Input small enough not to produce significant input offset voltage as a result of input bias current typically 100 KQ t
215. l Instruments Corporation l 7 Index encoders quadrature 7 24 encoding X1 7 24 X2 7 24 X4 7 24 equivalent time sampling 7 40 examples NI resources C 1 exporting timing output signals using PFI terminals 8 3 external reference clock 9 2 external source greater than 40 MHz 7 53 less than 40 MHz 7 54 F features counter 7 52 field wiring considerations MIO X Series devices 4 24 Simultaneous MIO X Series devices 4 50 FIFO Simultaneous MIO X Series devices 4 42 filters PFI 8 5 PXI_STAR 9 9 RTSI 9 7 floating signal sources connecting MIO X Series devices 4 13 description MIO X Series devices 4 13 using in differential mode MIO X Series devices 4 15 using in NRSE mode MIO X Series devices 4 18 using in RSE mode MIO X Series devices 4 19 when to use in differential mode MIO X Series devices 4 13 X Series User Manual Index when to use in NRSE mode MIO X Series devices 4 13 when to use in RSE mode MIO X Series devices 4 14 FREQ OUT signal 7 48 frequency division 7 40 generation 7 39 generator 7 39 measurement 7 13 Frequency Output signal 7 48 G generations analog output data 5 3 buffered hardware timed 5 4 6 15 clock 9 1 continuous pulse train 7 35 digital waveform 6 16 frequency 7 39 hardware timed 5 3 6 14 hardware timed single point 5 3 6 4 6 14 pulse for ETS 7 40 pulse train 7 32 retriggerable single pulse 7 33 simple pulse 7 31 single pulse
216. l property UseOnlyOnBoardMemory to enable or disable FIFO regeneration e With non regeneration old data is not repeated New data must be continually written to the buffer If the program does not write new data to the buffer at a fast enough rate to keep up with the generation the buffer underflows and causes an error Analog Output Triggering Analog output supports two different triggering actions e Start trigger e Pause trigger An analog or digital trigger can initiate these actions All X Series devices support digital triggering but some do not support analog triggering To find your device s triggering options refer to the specifications document for your device Refer to the AO Start Trigger Signal and AO Pause Trigger Signal sections for more information about these triggering actions Connecting Analog Output Signals AO lt 0 3 gt are the voltage output signals for analog output channels 0 1 2 and 3 AO GND is the ground reference for AO lt 0 3 gt Figure 5 2 shows how to make analog output connections to the device National Instruments Corporation 5 5 X Series User Manual Chapter 5 Analog Output Analog Output Channels Channel 0 AO 0 o Load V OUT V Load V OUT A01 lt Channel 1 Connector 0 Al 0 15 X Series Device Load Load Connector 1 Al 16 31
217. le Clock Timebase is not available as an output on the I O connector You might use DO Sample Clock Timebase if you want to use an external sample clock signal but need to divide the signal down If you want to use an external sample clock signal but do not need to divide the signal then you should use DO Sample Clock rather than DO Sample Clock Timebase DO Start Trigger Signal Use the DO Start Trigger do StartTrigger signal to initiate a waveform generation If you do not use triggers you can begin a generation with a software command Retriggerable DO The DO Start Trigger can also be configured to be retriggerable The timing engine will generate the sample clocks for the configured generation in response to each pulse on a DO Start Trigger signal The timing engine ignores the DO Start Trigger signal while the clock generation is in progress After the clock generation is finished the timing engine waits for another start trigger to begin another clock generation Figure 6 8 shows a retriggerable DO of four samples DO Start Trigger DO Sample Clock Figure 6 8 Retriggerable DO National Instruments Corporation 6 19 X Series User Manual Chapter 6 Digital 1 0 X Series User Manual Using a Digital Source To use DO Start Trigger specify a source and an edge The source can be one of the following signals e A pulse initiated b
218. lectors for the Counter n Gate signal Any of the following signals can be routed to the Counter n Gate input e RTSI lt 0 7 gt e PFI lt 0 15 gt e AI Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger National Instruments Corporation 7 43 X Series User Manual Chapter 7 Counters e AO Sample Clock ao SampleClock e DI Sample Clock di SampleClock e DI Reference Trigger di ReferenceTrigger e DO Sample Clock do SampleClock e PXI STAR e PXIe DSTAR lt A B gt e Change Detection Event e Analog Comparison Event In addition a counter s Internal Output or Source can be routed to a different counter s gate Some of these options may not be available in some driver software Routing Counter n Gate to an Output Terminal You can route Counter n Gate out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal All PFIs are set to high impedance at startup Counter n Aux Signal X Series User Manual The Counter n Aux signal indicates the first edge in a two signal edge separation measurement Routing a Signal to Counter n Aux Each counter has independent input selectors for the Counter n Aux signal Any of the following signals can be routed to the Counter n Aux input e RTSI lt 0 7 gt e PFI lt 0 15 gt e Al Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e PXISTAR e PXIe DSTAR lt A B gt e Analog Comparison Event e C
219. ler Slot 2 can set signal on this line For additional information concerning PXI star signal specifications and capabilities read the PXI Specification located at www pxisa org specifications G 12 ni com Q quadrature encoder range real time RSE RTSI bus SCC Glossary An encoding technique for a rotating device where two tracks of information are placed on the device with the signals on the tracks offset by 90 from each other This makes it possible to detect the direction of the motion The maximum and minimum parameters between which a sensor instrument or device operates with a specified set of characteristics This may be a voltage range or a frequency range 1 Displays as it comes in no delays 2 A property of an event or system in which data is processed and acted upon as it is acquired instead of being accumulated and processed at a later time 3 Pertaining to the performance of a computation during the actual time that the related physical process transpires so results of the computation can be used in guiding the physical process Referenced Single Ended configuration AIl measurements are made with respect to a common reference measurement system or a ground Also called a grounded measurement system Real Time System Integration bus The National Instruments timing bus that connects DAQ devices directly by means of connectors on top of the devices for precise synchronization of functions
220. lock e AO Sample Clock Timebase ao SampleClockTimebase e AO Pause Trigger ao PauseTrigger e Counter input signals for all counters Source Gate Aux HW_Arm A B Z e Counter n Sample Clock e DI Sample Clock di SampleClock e DI Sample Clock Timebase di SampleClockTimebase e DI Reference Trigger di ReferenceTrigger e DO Sample Clock do SampleClock Most functions allow you to configure the polarity of PFI inputs and whether the input is edge or level sensitive 8 2 ni com Chapter 8 PFI Exporting Timing Output Signals Using PFI Terminals You can route any of the following timing signals to any PFI terminal configured as an output National Instruments Corporation NI 632x 634x 6351 6353 6361 6363 Devices AI Convert Clock ai ConvertClock AI Hold Complete Event ai HoldCompleteEvent AI Reference Trigger ai ReferenceTrigger AI Sample Clock ai SampleClock AI Start Trigger ai StartTrigger AI Pause Trigger ai PauseTrigger AO Sample Clock ao SampleClock AO Start Trigger ao StartTrigger AO Pause Trigger ao PauseTrigger DI Sample Clock di SampleClock DI Start Trigger di StartTrigger DI Reference Trigger di ReferenceTrigger DI Pause Trigger di PauseTrigger DO Sample Clock do SampleClock DO Start Trigger do StartTrigger DO Pause Trigger do PauseTrigger Counter n Source Counter n Gate Counter n Internal Output Counter n Sample Clock Counter n Counter n HW Ar
221. m Frequency Output PXI_STAR RTSI lt 0 7 gt Analog Comparison Event Change Detection Event Watchdog timer expired pulse 8 3 X Series User Manual Chapter 8 PFI B Note Signals with an are inverted before being driven to a terminal that is these signals are active low Using PFI Terminals as Static Digital I Os Each PFI can be individually configured as a static digital input or a static digital output When a terminal is used as a static digital input or output it is called P1 x or P2 x On the I O connector each terminal is labeled PFI x P1 x or PFI x P2 x In addition X Series devices have up to 32 lines of bidirectional DIO signals Using PFI Terminals to Digital Detection Events Each PFI can be configured to detect digital changes The values on the PFI lines cannot be read in a hardware timed task but they can be used to fire the change detection event For example if you wanted to do change detection on eight timed DIO lines but wanted to ensure that the value of the lines was updated every second independent of the eight lines changing you could set a PFI line up for change detection and connect a Hz signal to it Connecting PFI Input Signals All PFI input connections are referenced to D GND Figure 8 2 shows this reference and how to connect an external PFI 0 source and an external PFI 2 source to two PFI terminals X Series User Manual 8 4 ni com PFI Filters Chapter 8 PFI
222. m info and entering the Info Code rdbbis Use Short High Quality Cabling Using short high quality cables can minimize several effects that degrade accuracy including crosstalk transmission line effects and noise The capacitance of the cable also can increase the settling time National Instruments recommends using individually shielded twisted pair wires that are 2 m or less to connect AI signals to the device Refer to the Connecting Analog Input Signals section for more information Carefully Choose the Channel Scanning Order Avoid Switching from a Large to a Small Input Range Switching from a channel with a large input range to a channel with a small input range can greatly increase the settling time 4 7 X Series User Manual Chapter 4 Analog Input X Series User Manual Suppose a 4 V signal is connected to channel 0 and a mV signal is connected to channel 1 The input range for channel 0 is 10 V to 10 V and the input range of channel 1 is 200 mV to 200 mV When the multiplexer switches from channel 0 to channel 1 the input to the NI PGIA switches from 4 V to 1 mV The approximately 4 V step from 4 V to 1 mV is 1 000 of the new full scale range For a 16 bit device to settle within 0 0015 15 ppm or 1 LSB of the 200 mV full scale range on channel 1 the input circuitry must settle to within 0 000031 0 31 ppm or 1 50 LSB of the 10 V range Some devices can take many microseconds for the circuitry to set
223. mebase 5 12 ni com Chapter 5 Analog Output Getting Started with AO Applications in Software You can use an X Series device in the following analog output applications e Single point on demand generation e Finite generation e Continuous generation e Waveform generation You can perform these generations through programmed I O or DMA data transfer mechanisms Some of the applications also use start triggers and pause triggers i Note For more information about programming analog output applications and triggers in software refer to the NJ DAQmx Help or the LabVIEW Help X Series devices use the NI DAQm x driver NI DAQm x includes a collection of programming examples to help you get started developing an application You can modify example code and save it in an application You can use examples to develop a new application or add example code to an existing application To locate LabVIEW LabWindows CVI Measurement Studio Visual Basic and ANSI C examples refer to the KnowledgeBase document Where Can I Find NI DAQmx Examples by going to ni com info and entering the Info Code dagmxexp For additional examples refer to zone ni com National Instruments Corporation 5 13 X Series User Manual Digital 1 0 X Series devices contain up to 32 lines of bidirectional DIO signals on Port 0 In addition X Series devices have up to 16 PFI signals that can function as static DIO signals X Series devices sup
224. med single point HWTSP operations Analog Input Triggering Analog input supports three different triggering actions e Start trigger e Reference trigger e Pause trigger Refer to the AZ Start Trigger Signal AI Reference Trigger Signal and AI Pause Trigger Signal sections for information about these triggers An analog or digital trigger can initiate these actions All MIO X Series devices support digital triggering but some do not support analog triggering To find your device triggering options refer to the specifications document for your device Connecting Analog Input Signals Table 4 3 summarizes the recommended input configuration for both types of signal sources National Instruments Corporation 4 11 X Series User Manual Chapter 4 Analog Input Table 4 3 MIO X Series Analog Input Configuration AI Ground Reference Floating Signal Sources Not Connected to Building Ground Ground Referenced Signal Sources Examples e Ungrounded thermocouples e Signal conditioning with isolated outputs Example e Plug in instruments with non isolated outputs Setting e Battery devices Differential Signal Source DAQ Device Signal Source DAQ Device Al Al i Al Al Al GND A AGND Non Referenced Si IS DAQ D
225. must refer to the documentation for your quadrature encoder to obtain timing of channel Z with respect to channels A and B You must then ensure that channel Z is high during at least a portion of the phase you specify for reload For instance in Figure 7 21 channel Z is never high when channel A is high and channel B is low Thus the reload must occur in some other phase In Figure 7 21 the reload phase is when both channel A and channel B are low The reload occurs when this phase is true and channel Z is high Incrementing and decrementing takes priority over reloading Thus when the channel B goes low to enter the reload phase the increment occurs first The reload occurs within one maximum timebase period after the reload phase becomes true After the reload occurs the counter continues to count as before The figure illustrates channel Z reload with X4 decoding National Instruments Corporation 7 25 X Series User Manual Chapter 7 Counters X Series User Manual ChA ff ChB Dor Ld ChZ J Max Timebase i Counter Value T E Z o E 2X3 3 Y4 0 0 1 Z Figure 7 21 Channel Z Reload with X4 Decoding Measurements Using Two Pulse Encoders The counter supports two pulse encoders that have two channels channels A and B The counter increments on each rising edge of channel A The counter decrements on
226. n RSE mode Differential Y DARmx Devi fail v patatas Al voltage Al Voltage Figure 4 3 Enabling Multimode Scanning in LabVIEW Ps Dev jai0 v To configure the input mode of your voltage measurement using the DAQ Assistant use the Terminal Configuration drop down list Refer to the DAQ Assistant Help for more information about the DAQ Assistant To configure the input mode of your voltage measurement using the NI DAQmx C API set the terminalConfig property Refer to the NI DAQmx C Reference Help for more information Multichannel Scanning Considerations X Series User Manual MIO X Series devices can scan multiple channels at high rates and digitize the signals accurately However you should consider several issues when designing your measurement system to ensure the high accuracy of your measurements In multichannel scanning applications accuracy is affected by settling time When your MIO X Series device switches from one AI channel to another AI channel the device configures the NI PGIA with the input range of the new channel The NI PGIA then amplifies the input signal with the gain for the new input range Settling time refers to the time it takes the 4 6 ni com Chapter 4 Analog Input NI PGIA to amplify the input signal to the desired accuracy before it is sampled by the ADC The specifications document for your DAQ device lists its settling time MIO X Series devices are de
227. n all devices National Instruments Corporation 3 1 X Series User Manual Chapter 3 Connector and LED Information Table 3 1 1 0 Connector Signals Signal Name Reference Direction Description AI GND Analog Input Ground These terminals are the reference point for single ended AI measurements in RSE mode and the bias current return point for DIFF measurements All three ground references AI GND AO GND and D GND are connected on the device AI lt 0 31 gt Varies Input Analog Input Channels 0 to 31 MIO X Series Devices For single ended measurements each signal is an analog input voltage channel In RSE mode AI GND is the reference for these signals In NRSE mode the reference for each AI lt 0 15 gt signal is AI SENSE the reference for each AI lt 16 31 gt signal is AI SENSE 2 For differential measurements on MIO X Series devices AI 0 and AI 8 are the positive and negative inputs of differential analog input channel 0 Similarly the following signal pairs also form differential input channels lt AI 1 AI 9 gt lt AI 2 AI 10 gt lt AI 3 AI 11 gt lt AI 4 AI 12 gt lt AI 5 AI 13 gt lt AI 6 AI 14 gt lt AI 7 AI 15 gt lt AI 16 AI 24 gt lt AI 17 AI 25 gt lt AI 18 AI 26 gt lt AI 19 AI 27 gt lt AI 20 AI 28 gt lt AI 21 AI 29 gt lt AI 22 AI 30 gt lt AI 23 AI 31 gt Also refer to the Connecting Ground Referenced Signal Sources sect
228. n constants to the user modifiable section of the EEPROM Refer to the NJ DAQm x Help or the LabVIEW Help for more information about using calibration constants For a detailed calibration procedure for X Series devices refer to the B E M S X Series Calibration Procedure by clicking Manual Calibration Procedures on ni com calibration Cables and Accessories Refer to the PCI Express and PXI Express Device Cables and Accessories section for PCI Express X Series and PXI Express device cable and accessory information Refer to the USB Device Accessories section for USB X Series device accessory information PCI Express and PXI Express Device Cables and Accessories A Caution For compliance with Electromagnetic Compatibility EMC requirements this product must be operated with shielded cables and accessories If unshielded cables or accessories are used the EMC specifications are no longer guaranteed unless all unshielded cables and or accessories are installed in a shielded enclosure with properly designed and shielded input output ports NI offers a variety of products to use with PCI Express X Series and PXI Express devices including cables connector blocks and other accessories as follows e Shielded cables and cable assemblies and unshielded ribbon cables and cable assemblies e Screw terminal connector blocks shielded and unshielded National Instruments Corporation 2 3 X Series User Manual Chapter 2 DAQ System Ove
229. n input circuit that actively responds to the difference between two terminals rather than the difference between one terminal and ground Often associated with balanced input circuitry but also may be used with an unbalanced source The capability of an instrument to generate and acquire digital signals Static digital I O refers to signals where the values are set and held or rarely change Dynamic digital I O refers to digital systems where the signals are continuously changing often at multi MHz clock rates A TTL level signal having two discrete levels A high and a low level Direct Memory Access A method by which data can be transferred to from computer memory from to a device or memory on the bus while the processor does something else DMA is the fastest method of transferring data to from computer memory Performs the transfers between memory and I O devices independently of the CPU Software unique to the device or type of device and includes the set of commands the device accepts A technique that locates an edge of an analog signal such as the edge of a square wave Electrically Erasable Programmable Read Only Memory ROM that can be erased with an electrical signal and reprogrammed Some SCXI modules contain an EEPROM to store measurement correction coefficients G 6 ni com encoder external trigger FIFO filter floating floating signal sources Glossary A device that converts linear or rota
230. n of ni com niglobal to access the branch office Web sites which provide up to date contact information support phone numbers email addresses and current events X Series User Manual C 2 ni com Glossary Symbol Prefix Value p pico 10 2 n nano 10 9 u micro 10 6 m milli 10 3 k kilo 103 M mega 106 Symbols Percent Positive of or plus Negative of or minus Plus or minus lt Less than gt Greater than lt Less than or equal to 2 Greater than or equal to Per Degree Q Ohm National Instruments Corporation G 1 X Series User Manual Glossary A A A D AC accuracy ADE analog analog input signal analog output signal analog trigger application arm X Series User Manual Amperes the unit of electric current Analog to Digital Most often used as A D converter Alternating current A measure of the capability of an instrument or sensor to faithfully indicate the value of the measured signal This term is not related to resolution however the accuracy level can never be better than the resolution of the instrument Application development environment A signal whose amplitude can have a continuous range of values An input signal that varies smoothly over a continuous range of values rather than in discrete steps An output signal that varies smoothly over a continuous range of values rather than in discre
231. nal sources MIO X Series devices 4 22 when to use with floating signal sources MIO X Series devices 4 13 when to use with ground referenced signal sources MIO X Series devices 4 20 digital waveform acquisition 6 5 waveform generation 6 16 digital I O block diagram 6 1 circuitry 6 1 connecting signals 6 28 DI change detection 6 23 digital waveform generation 6 16 getting started with applications in software 6 29 T O protection 6 22 programmable power up states 6 23 static DIO 6 3 triggering 11 1 waveform acquisition 6 5 ni com digital output trigger signals 6 16 triggering 6 16 digital routing 9 1 digital signals Change Detection Event 6 23 connecting 6 28 Counter n Sample Clock 7 46 DI Sample Clock 6 6 DO Sample Clock 6 17 digital source triggering 11 1 digital waveform acquisition 6 5 generation 6 16 disk drive power PCI Express 3 4 disk drive power connector PCI Express devices 3 4 DMA as a transfer method 10 1 controllers 10 1 DO Sample Clock signal 6 17 do SampleClock 6 17 documentation conventions used in manual xv NI resources C 1 related documentation xvi double buffered acquisition MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 drivers NI resources C 1 E edge counting 7 3 buffered 7 5 on demand 7 4 sample clock 7 5 single point 7 4 edge separation measurement buffered two signal 7 29 single two signal 7 28 Nationa
232. nal source specify the signal source and the polarity of the signal The source can be any of the following signals e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock e AI Sample Clock ai SampleClock e AT Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock e DI Change Detection output 7 46 ni com Chapter 7 Counters Several other internal signals can be routed to Counter n Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an External Source You can route any of the following signals as Counter n Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event You can sample data on the rising or falling edge of Counter n Sample Clock Routing Counter n Sample Clock to an Output Terminal You can route Counter n Sample Clock out to any PFI lt 0 15 gt terminal The PFI circuitry inverts the polarity of Counter n Sample Clock before driving the PFI terminal Counter n Internal Output and Counter n TC Signals The Counter n Internal Output signal changes in response to Counter n TC The two software selectable output options are pulse output on TC and toggle output on TC The output polarity is software selectable for both options With pulse or pulse train generation tasks the counter drives the pulse s on the Counter n Internal Output
233. nals PXle_CLK100 PXle_SYNC100 PXI_CLK10 PXI and PXI Express clock and trigger signals are only available on PXI Express devices PXIe_CLK100 is a common low skew 100 MHz reference clock for synchronization of multiple modules in a PXI Express measurement or control system The PXIe backplane is responsible for generating PXIe_CLK100 independently to each peripheral slot in a PXI Express chassis For more information refer to the PXI Express Specification at www pxisa org PXIe_SYNC100 is a common low skew 10 MHz reference clock with a 10 duty cycle for synchronization of multiple modules in a PXI Express measurement or control system This signal is used to accurately synchronize modules using PXIe_CLK100 along with those using PXI_CLK10 The PXI Express backplane is responsible for generating PXIe_SYNC100 independently to each peripheral slot in a PXI Express chassis For more information refer to the PXI Express Specification at www pxisa org PXI_CLK10 is a common low skew 10 MHz reference clock for synchronization of multiple modules in a PXI measurement or control system The PXI backplane is responsible for generating PXI_CLK10 independently to each peripheral slot in a PXI chassis 3 Note PXI_CLK10 cannot be used as a reference clock for X Series devices PXI Triggers X Series User Manual A PXI chassis provides eight bused trigger lines to each module in a system Triggers may be passed from one module to another
234. ng high frequency with two counters 7 14 large range of frequencies using two counters 7 15 low frequency 7 13 methods data transfer 10 1 10 2 minimizing glitches on the output signal 5 3 output signal glitches B 3 voltage step between adjacent channels MIO X Series devices 4 8 X Series User Manual Index multichannel scanning considerations specifications A 19 MIO X Series devices 4 6 USB pinout A 17 multiple device synchronization 9 3 NI 6356 6366 A 20 mux accessory options A 22 MIO X Series devices 4 2 cabling options A 22 National Instruments support and services C 1 NET languages documentation xviii NI 6 NI 6 320 A 2 accessory options A 4 cabling options A 4 pinout A 2 specifications A 4 321 6341 A 5 accessory options A 8 cabling options A 8 PCI Express pinout A 5 PXI Express pinout A 5 specifications A 7 USB pinout A 7 NI 6323 6343 A 9 accessory options A 12 cabling options A 12 PCI Express pinout A 9 specifications A 12 USB pinout A 10 NI 6351 6361 A 13 accessory options A 15 cabling options A 15 PCI Express pinout A 13 PXI Express pinout A 13 specifications A 15 USB pinout A 14 NI 6353 6363 A 16 accessory options A 19 cabling options A 19 PCI Express pinout A 16 PXI Express pinout A 16 X Series User Manual PXI Express pinout A 20 specifications A 22 USB pinout A 21 NI 6358 6368 A 23 accessory options A 24 c
235. nput Using Differential Connections for Floating Signal Sources It is important to connect the negative lead of a floating source to AI GND either directly or through a bias resistor Otherwise the source may float out of the maximum working voltage range of the NI PGIA and the DAQ device returns erroneous data The easiest way to reference the source to AI GND is to connect the positive side of the signal to AI and connect the negative side of the signal to AI GND as well as to AI without using resistors This connection works well for DC coupled sources with low source impedance less than 100 Q MIO X Series Device oj Al Floating Signal V Source pi AT Al Inpedance Al GND Figure 4 4 Differential Connections for Floating Signal Sources without Bias Resistors However for larger source impedances this connection leaves the DIFF signal path significantly off balance Noise that couples electrostatically onto the positive line does not couple onto the negative line because it is connected to ground This noise appears as a differential mode signal instead of a common mode signal and thus appears in your data In this case instead of directly connecting the negative line to AI GND connect the negative line to AI GND through a resistor that is about 100 times the equivalent source impedance The resistor puts the signal path nearly in balance so that about the same amou
236. nsitions have occurred on the other lines the transition propagates on the second filtered clock edge as shown in Figure 6 13 Stable Stable Stable Digital Input PO A Digital InputPO B it J LE i pn LI gi gi Filter Clock Filtered Input A Filtered Input B X Series User Manual Figure 6 13 Case 1 6 26 ni com Chapter 6 Digital I O e Case 2 TIf an additional line on the bus also has a transition during the filter clock period the change is not propagated until the next filter clock edge as shown in Figure 6 14 Not Stable Not Stable Digital Input PO A 3 Digital Input PO B Filter Clock Filtered Input A Filtered Input B i Figure 6 14 Case 2 Figure 6 15 illustrates the difference between line and bus filtering Digital Input PO A Digital Input PO B Filter Clock Filtered Input A kK eee Filtered Input B 2A With line filtering filtered input A would ignore the glitch on digital input PO B and transition after two filter clocks 3A Filtered input A goes high when sampled high for two consecutive filter clocks and transitions on the next filter edge because digital input PO B glitches Figure 6 15 Line and Bus Filtering National Instrumen
237. nstruments DAQmx ComponentModel Namespace topics For conceptual help refer to the Using the Measurement Studio xviii ni com About This Manual NI DAQmx NET Library and Developing with Measurement Studio NI DAQmx sections To get to the same help topics from within Visual Studio go to Help Contents and select Measurement Studio from the Filtered By drop down list Device Documentation and Specifications The NI 632x Specifications contains all specifications for the NI 6320 NI 6321 and NI 6323 MIO X Series devices The NI 634x Specifications contains all specifications for the NI 6341 and NI 6343 MIO X Series devices The NI 6351 6353 Specifications contains all specifications for the NI 6351 and NI 6353 MIO X Series devices The NI 6356 6358 Specifications contains all specifications for the NI 6356 and NI 6358 Simultaneous MIO X Series devices The NI 6361 6363 Specifications contains all specifications for the NI 6361 and NI 6363 MIO X Series devices The NI 6366 6368 Specifications contains all specifications for the NI 6366 and NI 6368 Simultaneous MIO X Series devices Documentation for supported devices and accessories including PDF and help files describing device terminals specifications features and operation are on the NI DAQmx media that includes Device Documentation Training Courses If you need more help getting started developing an application with NI products NI offers training courses
238. nt of noise couples onto both connections yielding better rejection of electrostatically coupled noise This configuration does not load down the source other than the very high input impedance of the NI PGIA National Instruments Corporation 4 15 X Series User Manual Chapter 4 Analog Input MIO X Series Device Al Floating Signal V Source G Al aes R otal SENSE source Al GND impedance of sensor Figure 4 5 Differential Connections for Floating Signal Sources with Single Bias Resistor You can fully balance the signal path by connecting another resistor of the same value between the positive input and AI GND as shown in Figure 4 6 This fully balanced configuration offers slightly better noise rejection but has the disadvantage of loading the source down with the series combination sum of the two resistors If for example the source impedance is 2 kQ and each of the two resistors is 100 kQ the resistors load down the source with 200 kQ and produce a 1 gain error X Series User Manual 4 16 ni com 1 O Connector Chapter 4 Analog Input Al o oo Bias Resistors o s o l x see text re sos a C a Instrumentation igna s i Amplifier Source E Pa P PGIA 2 Al s o 2 Measured m Voltage O so n Bias aan Cl So Return Paths ge 7 oj Input Multiplexers
239. nters you measure one pulse of a known width using your signal and derive the frequency of your signal from the result Note Counter 0 is always paired with Counter 1 Counter 2 is always paired with Counter 3 X Series User Manual In this method you route a pulse of known duration T to the Gate of a counter You can generate the pulse using a second counter You also can generate the pulse externally and connect it to a PFI or RTSI terminal You only need to use one counter if you generate the pulse externally Route the signal to measure fx to the Source of the counter Configure the counter for a single pulse width measurement If you measure the width of pulse T to be N periods of fx the frequency of fx is N T 7 14 ni com Chapter 7 Counters Figure 7 13 illustrates this method Another option is to measure the width of a known period instead of a known pulse e Width of Pulse T gt Pulse _ Pulse Gate 1 2 N fx Source fx A 4 Pulse Width Width of y N Measurement Pulse fx Frequency of fx N T Figure 7 13 High Frequency with Two Counters Large Range of Frequencies with Two Counters By using two counters you can accurately measure a signal that might be high or low frequency This technique is called reciprocal frequency measurement When measuring a large range of frequencies with two counters you generate a lon
240. nuals National Instruments Corporation A 1 X Series User Manual Appendix A Device Specific Information NI 6320 The following sections contain information about the NI PCIe 6320 device NI 6320 Pinout Figure A 1 shows the pinout of the NI PCIe 6320 device For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information X Series User Manual A 2 ni com Appendix A Device Specific Information AlO Al 0 68 34 Als Al 0 Al GND 67 33 Al 1 Al 1 Al9 Al 1 66 32 Al GND Al2 Al2 65 31 Al10 Al 2 S Al GND 64 30 Al 3 Al 3 os Al 11 Al 3 63 29 Al GND DT AISENSE 62 28 Al4 Al 44 us Al 12 Al 4 61 27 AI GND 57 Al5 Al5 60 26 Al13 Al 5 2 Al GND 59 25 Al 6 Al 6 Al 14 Al 6 58 24 Al GND Al7 Al 7 57 23 Al15 Al7 TERMINAL 68 TERMINAL 34 Al GND 56 22 NC NC 55 21 NC NC 54 20 NC D GND 53 19 P0 4 P0 0 52 18 D GND P0 5 51 17 P0 1 D GND 50 16 P0 6 P0 2 49 15 D GND P0 7 48 14 45v P0 3 47 13 D GND PFI 11 P2 3 46 121 D GND TERMINAL 35 TERMINAL 1 PFI 10 P2 2_ 45 11 PFIO P1 0 D GND 44 10 PFI1 P1 1 PFI 2 P1 2 43 9 DGND PFI 3 P1 3 42 8 45Vv PFI 4 P
241. o 1 MQ In this case connect the negative input directly to AI GND If the source has high output impedance balance the signal path as previously described using the same value resistor on both the positive and negative inputs be aware that there is some gain error from loading down the source Field Wiring Considerations X Series User Manual Environmental noise can seriously affect the measurement accuracy of the Simultaneous MIO X Series device if you do not take proper care when running signal wires between signal sources and the device The following recommendations apply mainly to AI signal routing although they also apply to signal routing in general Minimize noise pickup and maximize measurement accuracy by taking the following precautions e Use individually shielded twisted pair wires to connect AI signals to the device With this type of wire the signals attached to the AI and AI inputs are twisted together and then covered with a shield You then connect this shield only at one point to the signal source ground This kind of connection is required for signals traveling through areas with large magnetic fields or high electromagnetic interference e Route signals to the device carefully Keep cabling away from noise sources The most common noise source in a PCI DAQ system is the video monitor Separate the monitor from the analog signals as far as possible e Separate the signal lines of the Simultaneous MIO X Series
242. o create a user defined pulse train Finite Buffered Sample Clocked Pulse Train Generation This function generates a predetermined number of pulse train updates Each point you write defines pulse specifications that are updated with each sample clock When a sample clock occurs the current pulse idle followed by active finishes generation and the next pulse updates with the next sample specifications Note When the last sample is generated the pulse train continues to generate with these specifications until the task is stopped 3 Table 7 7 and Figure 7 35 detail a finite sample clocked generation of three samples where the pulse specifications from the create channel are two ticks idle two ticks active and three ticks initial delay Table 7 7 Finite Buffered Sample Clocked Pulse Train Generation Sample Idle Ticks Active Ticks 1 3 2 2 2 2 3 3 3 National Instruments Corporation 7 37 X Series User Manual Chapter 7 Counters Sample Clock Counter Load Values Source Out Counter Armed 2 1 0 1 01010210210210231 0 101021021 0 X Series User Manual Figure 7 35 Finite Buffered Sample Clocked Pulse Train Generation
243. o the generation of a specific predetermined number of data samples Once the specified number of samples has been written out the generation stops Continuous generation refers to the generation of an unspecified number of samples Instead of generating a set number of data samples and stopping a continuous generation continues until you stop the operation There are several different methods of continuous generation that control what data is written These methods are regeneration FIFO regeneration and non regeneration modes e Regeneration is the repetition of the data that is already in the buffer Standard regeneration is when data from the PC buffer is continually downloaded to the FIFO to be written out New data can be written to the PC buffer at any time without disrupting the output Use the NI DAQmx write property RegenMode to allow or not allow regeneration The NI DAQmx default is to allow regeneration e With FIFO regeneration the entire buffer is downloaded to the FIFO and regenerated from there Once the data is downloaded new data cannot be written to the FIFO To use FIFO regeneration the entire buffer must fit within the FIFO 5 4 ni com Chapter 5 Analog Output size The advantage of using FIFO regeneration is that it does not require communication with the main host memory once the operation is started thereby preventing any problems that may occur due to excessive bus traffic Use the NI DAQmx AO channe
244. o the hardware to initiate each acquisition In NI DAQmx software timed acquisitions are referred to as having on demand timing Software timed acquisitions are also referred to as immediate or static acquisitions and are typically used for reading a single sample of data X Series User Manual 6 2 ni com Chapter 6 Digital 1 0 Each of the X Series DIO lines can be used as a static DI or DO line You can use static DIO lines to monitor or control digital signals Each DIO can be individually configured as a digital input DI or digital output DO All samples of static DI lines and updates of static DO lines are software timed Hardware Timed Acquisitions With hardware timed acquisitions a digital hardware signal di SampleClock controls the rate of the acquisition This signal can be generated internally on your device or provided externally Hardware timed acquisitions have several advantages over software timed acquisitions e The time between samples can be much shorter e The timing between samples is deterministic e Hardware timed acquisitions can use hardware triggering Hardware timed operations can be buffered or hardware timed single point A buffer is a temporary storage in computer memory for to be transferred samples e Buffered Data is moved from the DAQ device s onboard FIFO memory to a PC buffer using DMA before it is transferred to application memory Buffered acquisitions typically allow for
245. of the AI SENSE or AI SENSE 2 inputs The AI ground reference setting determines how you should connect your AI signals to the MIO X Series device Refer to the Connecting Analog Input Signals section for more information Ground reference settings are programmed on a per channel basis For example you might configure the device to scan 12 channels four differentially configured channels and eight single ended channels MIO X Series devices implement the different analog input ground reference settings by routing different signals to the NI PGIA The NI PGIA is a differential amplifier That is the NI PGIA amplifies or attenuates the difference in voltage between its two inputs The NI PGIA 4 4 ni com Chapter 4 Analog Input drives the ADC with this amplified voltage The amount of amplification the gain is determined by the analog input range as shown in Figure 4 2 Vins o PGIA V o In Vin Ving in x Gain V Measured Voltage o V RN Figure 4 2 MIO X Series Device NI PGIA Table 4 2 shows how signals are routed to the NI PGIA on MIO X Series devices Table 4 2 Signals Routed to the NI PGIA on MIO X Series Devices AI Ground Reference Signals Routed to the Positive Signals Routed to the Negative Settings Input of the NI PGIA V Input of the NI PGIA Vin RSE AI lt 0 31 gt AI GND NRSE AI lt 0 15 gt AI SENSE AI lt 16 31 gt AI
246. of a floating signals source to AI GND either directly or through a resistor Otherwise the source may float out of the valid input range of the NI PGIA and the DAQ device returns erroneous data Figure 4 8 shows a floating source connected to the DAQ device in NRSE mode MIO X Series Device Al Floating Signal Source Al SENSE Al GND Figure 4 8 NRSE Connections for Floating Signal Sources All of the bias resistor configurations discussed in the Using Differential Connections for Floating Signal Sources section apply to the NRSE bias resistors as well Replace AI with AI SENSE in Figures 4 4 4 5 4 6 and 4 7 for configurations with zero to two bias resistors The noise rejection of NRSE mode is better than RSE mode because the AI SENSE connection is made remotely near the source However the noise rejection of NRSE mode is worse than DIFF mode because the AI SENSE connection is shared with all channels rather than being cabled in a twisted pair with the AI signal 4 18 ni com Chapter 4 Analog Input Using the DAQ Assistant you can configure the channels for RSE or NRSE input modes Refer to the Configuring AI Ground Reference Settings in Software section for more information about the DAQ Assistant Using Referenced Single Ended RSE Connections for Floating Signal Sources Figure 4 9 shows how to connect a floating signal source to the MIO X Series device configured for RS
247. ol the direction of counting up or down as described in the Controlling the Direction of Counting section The counter values can be read on demand or with a sample clock National Instruments Corporation 7 3 X Series User Manual Chapter 7 Counters Refer to the following sections for more information about X Series edge counting options e Single Point On Demand Edge Counting e Buffered Sample Clock Edge Counting Single Point On Demand Edge Counting With single point on demand edge counting the counter counts the number of edges on the Source input after the counter is armed On demand refers to the fact that software can read the counter contents at any time without disturbing the counting process Figure 7 2 shows an example of single point edge counting Counter Armed F Fli FLA 1 2 3 4 5 SOURCE Counter Value 0 Figure 7 2 Single Point On Demand Edge Counting You also can use a pause trigger to pause or gate the counter When the pause trigger is active the counter ignores edges on its Source input When the pause trigger is inactive the counter counts edges normally You can route the pause trigger to the Gate input of the counter You can configure the counter to pause counting when the pause trigger is high or when it is low Figure 7 3 shows an example of on demand edge counting with a pause trigger Counter Armed Pause Trigger Pause When Low
248. on on the logical OR of several digital signals To trigger on a single digital signal refer to the Triggering with a Digital Source section of Chapter 11 Triggering By routing the Change Detection Event signal to a counter you also can capture the relative time between bus changes You also can use the Change Detection Event signal to trigger DO or counter generations Digital Filtering You can enable a programmable debouncing filter on each digital line on Port 0 When the filters are enabled your device samples the input on each rising edge of a filter clock X Series devices divide down the onboard 100 MHz or 100 kHz clocks to generate the filter clock The following is an example of low to high transitions of the input signal High to low transitions work similarly Assume that an input terminal has been low for a long time The input terminal then changes from low to high but glitches several times When the filter clock has sampled the signal high on two consecutive edges and the signal remained stable in between the low to high transition is propagated to the rest of the circuit Table 6 1 Filters Pulse Width Guaranteed Pulse Width Guaranteed Filter Setting Filter Clock to Pass Filter to Not Pass Filter Short 12 5 MHz 160 ns 80 ns Medium 195 3125 kHz 10 24 us 5 12 us High 390 625 Hz 5 12 ms 2 56 ms None The filter setting for each input can be configured independently
249. or infinite number of samples A large first in first out FIFO buffer holds data during A D conversions to ensure that no data is lost Simultaneous MIO X Series devices can handle multiple A D conversion operations with DMA or programmed I O Analog Input Terminal Configuration Simultaneous MIO X Series devices support only differential DIFF input mode The channels on Simultaneous MIO X Series devices are true differential inputs meaning both positive and negative inputs can carry signals of interest For more information about DIFF input refer to the Connecting Analog Input Signals section which contains diagrams showing the signal paths for DIFF input mode UN Caution Exceeding the differential and common mode input ranges distorts the input signals Exceeding the maximum input voltage rating can damage the device and the computer NI is not liable for any damage resulting from such signal connections The maximum input voltage ratings can be found in the specifications document for each Simultaneous MIO X Series device Analog Input Range X Series User Manual Input range refers to the set of input voltages that an analog input channel can digitize with the specified accuracy The NI PGIA amplifies or attenuates the AI signal depending on the input range You can individually program the input range of each AI channel on your Simultaneous MIO X Series device The input range affects the resolution of the Simultaneous MIO X Seri
250. ore removing the device from the package Remove the device from the package and inspect it for loose components or any other signs of damage Notify NI if the device appears damaged in any way Do not install a damaged device in your computer or chassis Store the device in the antistatic package when the device is not in use Installation Before installing your DAQ device you must install the software you plan to use with the device 1 Installing application software Refer to the installation instructions that accompany your software 2 Installing NI DAQmx The DAQ Getting Started guides packaged with NI DAQm x and also on ni com manua1s contain step by step National Instruments Corporation 1 1 X Series User Manual Chapter 1 Getting Started instructions for installing software and hardware configuring channels and tasks and getting started developing an application 3 Installing the hardware Unpack your X Series device as described in the Unpacking section The DAQ Getting Started guides describe how to install PCI Express PXI Express and USB devices as well as accessories and cables Device Self Calibration NI recommends that you self calibrate your X Series device after installation and whenever the ambient temperature changes Self calibration should be performed after the device has warmed up for the recommended time period Refer to the device specifications to find your device warm up time Thi
251. ound 9 45 sec scingck iani sees a a aa aa 1 2 Mounting USB X Series Devices 0 eee ee eeeeeeeseeeeceseeseeeseeaeceeeseenseseeeeaee 1 3 Panel Wall Mounting 0 eee eee ceeeesceeceeecseceeeceeesesaeenseeaeeeaeesees 1 4 DIN Rail Mounting ranite rrenetan ias aaa EAEE ERRi RE EEA 1 4 USB Cable Strain Relief enoni EE E E ER aSa 1 6 USB Device Security Cable Slot eeceseceeesesseeeeeseeeseeseesseesesseeeneenaes 1 7 Device PAM OUs cri pirani ieiti E EE E A E E E A seem E AEREE 1 7 DEVICE Specifications siisii miian nase dee aaea a apasi riea TAE eiaa 1 7 Device Accessories and Cables iss iascsates iorsin oi EEEE E EREE 1 7 Chapter 2 DAQ System Overview DAO Hard wares iisssiecsiieens eis ce ea eee aa es 2 1 DAQEST E38 i5i Gate cii ish Si ashe Baas SOB A e Rae 2 2 Calibration Circuitry sss acisc css lease eseceadssastad os spasenia Toons a EA EEEIEE ARRE aaae 2 3 Cables and A GCESSOTIES yo cscciides czeciegeavaonlii codes sadide ued a pases taxis Savane S E 2 3 PCI Express and PXI Express Device Cables and Accessories 00 2 3 SEXTACCESSOMES tenean eina ra sho oh os stl cated a E Aa 2 4 SCC Accessories cccccccsssccccessssseccccessssseccccesssececeesessaeeeeceesaeeeeeeees 2 4 BNG ACGCESSOTIES siSivics Sesion ele en bea cached en Seabed ch hisbetacieteviea datas 2 5 Screw Terminal Accessories ccccccessscccceesssseccceessssceeceessneeeeeeees 2 6 RIS Cables iso sc 83 fetes A es A es 2 6 Cables essere
252. ource Signal siicncsssisiisiis siii a ia aa 7 42 Routing a Signal to Counter n Source eee eee eeeereeeeeeeeneeeees 7 43 Routing Counter n Source to an Output Terminal 7 43 Counter n Gate Signal sisisi tsioen isee orsi aa 7 43 Routing a Signal to Counter n Gate eee eeeeseseeeeeeeeeneeteeeenees 7 43 Routing Counter n Gate to an Output Terminal ee 7 44 Counter 1 Aux Signal s c 3ceccei ssscccseess sescbesteabesatessagsecavsesececcsrastessscenacetcassiesgens 7 44 Routing a Signal to Counter n AUX eee eeeeeeseeseeeeeeeeeeeeeneeeaes 7 44 Counter n A Counter n B and Counter n Z Signals 00 0 eee ee eee eeeeees 7 45 Routing Signals to A B and Z Counter Inputs 0 0 ee 7 45 Routing Counter n Z Signal to an Output Terminal 7 45 Counter n Up_Down Signal oo eee ceceseesseeeceeeeneceaeeaesneesaeenseseeeeaee 7 45 Counter n HW Arm Siomall ics cscccscccses ce ccttesasessteesess deasidteseseseaboatedeceatevsansaesttas 7 45 Routing Signals to Counter n HW Arm Input eee 7 46 Counter n Sample Clock Signal oc eeeeececeeseeesceseceeceeeneecseeseecseseseeeseseesees 7 46 Using an Internal Source eee ee eeeesececeeeeceeeeaeceeeeaeenseeseeeaees 7 46 Using an External Source eee esesceseceseeseceseeaeeneeseeensesseeeaees 7 47 Routing Counter n Sample Clock to an Output Terminal 7 47 National Instruments Corporation xi X Series User Manual Contents Counter n Internal Output and Counter n TC Signals ee
253. ource greater than 25 MHz the device synchronizes signals on the rising edge of the source and counts on the third rising edge of the source Edges are pipelined so no counts are lost as shown in Figure 7 41 External Source gt 25 MHz Synchronize Count Figure 7 41 External Source Greater than 25 MHz National Instruments Corporation 7 53 X Series User Manual Chapter 7 Counters External or Internal Source Less than 25 MHz With an external or internal source less than 25 MHz the device generates a delayed Source signal by delaying the Source signal by several nanoseconds The device synchronizes signals on the rising edge of the delayed Source signal and counts on the following rising edge of the source as shown in Figure 7 42 Sore f A Synchronize A Delayed Source Count Figure 7 42 External or Internal Source Less than 25 MHz X Series User Manual 7 54 ni com PFI X Series devices have up to 16 Programmable Function Interface PFI signals In addition X Series devices have up to 32 lines of bidirectional DIO signals Each PFI can be individually configured as the following e A static digital input e A static digital output e A timing input signal for AI AO DI DO or counter timer functions e A timing output signal from AI AO DI DO or counter timer functions Each PFI input also has a programmable debouncing filter Figu
254. output APFI lt 0 1 gt AO GND or Input Analog Programmable Function Interface Channels AI GND 0 to 1 Each APFI signal can be used as AO external reference inputs for AO lt 0 3 gt or as an analog trigger input APFI lt 0 1 gt are referenced to AI GND when they are used as analog trigger inputs APFI lt 0 1 gt are referenced to AO GND when they are used as AO external offset or reference inputs These functions are not available on all devices Refer to the specifications for your device 5 V D GND Output 5 V Power Source These terminals provide a fused 5 V power source Refer to the 5 V Power Source section for more information PFI lt 0 7 gt P1 lt 0 7 gt D GND Input or Programmable Function Interface or Digital I O Channels PFI lt 8 15 gt P2 lt 0 7 gt Output 0 to 7 and Channels 8 to 15 Each of these terminals can be individually configured as a PFI terminal or a digital I O terminal As an input each PFI terminal can be used to supply an external source for AI AO DI and DO timing signals or counter timer inputs As a PFI output you can route many different internal AI AO DI or DO timing signals to each PFI terminal You also can route the counter timer outputs to each PFI terminal As a Port 1 or Port 2 digital I O signal you can individually configure each signal as an input or output NC No connect Do not connect signals to these terminals Though AI GND
255. pecifications Refer to the NI 6351 6353 Specifications for more detailed information about the NI 6353 device Refer to the NI 6361 6363 Specifications for more detailed information about the NI 6361 device NI 6353 6363 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information National Instruments Corporation A 19 X Series User Manual Appendix A Device Specific Information NI 6356 6366 The following sections contain information about the NI PXIe 6356 NI USB 6356 NI PXIe 6366 and NI USB 6366 devices NI 6356 6366 Pinout Figure A 10 shows the pinout of the NI PXIe 6356 6366 For a detailed description of each signal refer to the O Connector Signal Descriptions section of Chapter 3 Connector and LED Information Al 0 34 Al o Al 0 GND 33 Al 1 Al 1 32 Al 1 GND Al 2 31 Al 2 Al 2 GND 30 Al 3 S Ne 29 Al3 GND KE NC 28 Al 4 g Al 4 27 Al4 GND a Al 5 26 Al5 Al 5 GND 25 Al 6 Al 6 24 Al 6 GND Al 7 23 Al 7 TERMINAL 68 TERMINAL 34 Al 7 GND 22 A00 AO GND 21 A01 AO GND 20 APFIO D GND 19 P0 4 P0 0 18 D GND P0 5 17 Pot D GND 16 Po 6 P0
256. pecifications for more detailed information about the NI 6368 device NI 6358 6368 Accessory and Cabling Options NI offers a variety of accessories and cables to use with your DAQ device Refer to the Cables and Accessories section of Chapter 2 DAQ System Overview for more information X Series User Manual A 24 ni com Troubleshooting Analog Input This section contains common questions about X Series devices If your questions are not answered here refer to ni com support I am seeing crosstalk or ghost voltages when sampling multiple channels What does this mean You may be experiencing a phenomenon called charge injection which occurs when you sample a series of high output impedance sources with a multiplexer Multiplexers contain switches usually made of switched capacitors When a channel for example AI 0 is selected in a multiplexer those capacitors accumulate charge When the next channel for example AT 1 is selected the accumulated current or charge leaks backward through channel 1 If the output impedance of the source connected to AI 1 is high enough the resulting reading can somewhat affect the voltage in AI 0 To circumvent this problem use a voltage follower that has operational amplifiers op amps with unity gain for each high impedance source before connecting to an X Series device Otherwise you must decrease the sample rate for each channel Another common cause of channel crosstalk is
257. peration Each point you write specifies pulse specifications that are updated with each sample clock When a sample clock occurs the current pulse finishes generation and the next pulse uses the next sample specifications Frequency Generation You can generate a frequency by using a counter in pulse train generation mode or by using the frequency generator circuit as described in the Using the Frequency Generator section Using the Frequency Generator The frequency generator can output a square wave at many different frequencies The frequency generator is independent of the four general purpose 32 bit counter timer modules on X Series devices Figure 7 36 shows a block diagram of the frequency generator Frequency Output Timebase 20 MHz Timebase i 2 100 kHz Timebase e ___ Frequency Generator FREQ OUT Divisor 1 16 Figure 7 36 Frequency Generator Block Diagram The frequency generator generates the Frequency Output signal The Frequency Output signal is the Frequency Output Timebase divided by a number you select from to 16 The Frequency Output Timebase can be either the 20 MHz Timebase the 20 MHz Timebase divided by 2 or the 100 kHz Timebase The duty cycle of Frequency Output is 50 if the divider is either 1 or an even number For an odd divider suppose the divider is set to D National Instruments Corporation 7 39 X Series User Manual Chap
258. period of a signal most often measured from one zero crossing to the next zero crossing of the same slope The period of a signal is the reciprocal of its frequency in Hz Period is designated by the symbol T Programmable Function Interface Programmable Gain Instrumentation Amplifier See channel A specification prepared by Microsoft Intel and other PC related companies that result in PCs with plug in devices that can be fully configured in software without jumpers or switches on the devices The technique used on a DAQ device to acquire a programmed number of samples after trigger conditions are met An instrument that provides one or more sources of AC or DC power Also known as power supply Parts per million The technique used on a DAQ device to keep a continuous buffer filled with data so that when the trigger conditions are met the sample includes the data leading up to the trigger condition A signal whose amplitude deviates from zero for a short period of time The time from the rising to the falling slope of a pulse at 50 amplitude PCI Express eXtensions for Instrumentation The PXI implementation of PCI Express a scalable full simplex serial bus standard that operates at 2 5 Gbps and offers both asynchronous and isochronous data transfers A special set of trigger lines in the PXI backplane for high accuracy device synchronization with minimal latencies on each PXI slot Only devices in the PXI Star control
259. ple Clock Timebase 4 55 circuitry 4 41 connecting signals 4 46 connecting through I O connector 4 41 data acquisitions 4 44 methods 4 44 fundamentals 4 41 ni com overview 4 41 signals 4 51 terminal configuration 4 42 timing signals 4 51 timing summary 4 51 triggering 4 45 troubleshooting B 1 analog output circuitry 5 1 connecting signals 5 5 data generation methods 5 3 fundamentals 5 1 getting started with applications in software 5 13 glitches on the output signal 5 3 reference selection 5 2 signals 5 6 AO Pause Trigger 5 8 AO Sample Clock 5 10 AO Sample Clock Timebase 5 12 AO Start Trigger 5 7 timing signals 5 6 trigger signals 5 5 triggering 5 5 troubleshooting B 3 analog source triggering 11 2 analog trigger 11 2 accuracy 11 8 actions 11 4 improving accuracy 11 8 analog window triggering 11 7 analog to digital converter MIO X Series devices 4 2 Simultaneous MIO X Series devices 4 41 ANSI C documentation xviii AO FIFO 5 1 AO Pause Trigger signal 5 8 AO reference selection 5 2 AO reference selection settings 5 2 AO Sample Clock 5 2 National Instruments Corporation l 3 Index AO Sample Clock signal 5 10 AO Sample Clock Timebase signal 5 12 AO Start Trigger signal 5 7 ao PauseTrigger 5 8 ao SampleClock 5 10 ao StartTrigger 5 7 APFI lt 0 1 gt terminals 11 3 applications counter input 7 3 counter output 7 30 edge counting 7 3 applying rubber fee
260. port the following DIO features on Port 0 Up to 32 lines of DIO Direction and function of each terminal individually controllable Static digital input and output High speed digital waveform generation High speed digital waveform acquisition DI change detection trigger interrupt Figure 6 1 shows the circuitry of one DIO line Each DIO line is similar The following sections provide information about the various parts of the DIO circuit National Instruments Corporation 6 1 X Series User Manual Chapter 6 Digital 1 0 DO Waveform Generation FIFO DO Sample Clock Static DO Buffer DO x Direction Control Static DI DI Waveform rm Measurement FIFO DI Sample Clock DI Change Detection 7 Filter I O Protection PO x Weak Pull Down Figure 6 1 X Series Digital 1 0 Circuitry The DIO terminals are named PO lt 0 31 gt on the X Series device I O connector The voltage input and output levels and the current drive levels of the DIO lines are listed in the specifications of your device Digital Input Data Acquisition Methods When performing digital input measurements you either can perform software timed or hardware timed acquisitions Software Timed Acquisitions With a software timed acquisition software controls the rate of the acquisition Software sends a separate command t
261. pter 11 Triggering First signal must go above high threshold High threshold Level Hyst i Hysteresis Level Hysteresis lt Low threshold Level Then signal must go below low threshold before Analog Comparison Event asserts Analog Comparison Event f Figure 11 7 Analog Edge Triggering with Hysteresis Falling Slope Example e Analog Window Triggering An analog window trigger occurs when an analog signal either passes into enters or passes out of leaves a window defined by two voltage levels Specify the levels by setting the window Top value and the window Bottom value Figure 11 8 demonstrates a trigger that asserts when the signal enters the window Bottom Analog Comparison Event Figure 11 8 Analog Window Triggering Mode Entering Window National Instruments Corporation 11 7 X Series User Manual Chapter 11 Triggering Analog Trigger Accuracy X Series User Manual The analog trigger circuitry compares the voltage of the trigger source to the output of programmable trigger DACs When you configure the level or the high and low limits in window trigger mode the device adjusts the output of the trigger DACs Refer to the specifications document for your device to find the accuracy or resolution of these DACs which also shows the accuracy or resolution of analog triggers To
262. pulse is J fk Therefore the frequency of fx is given by fx fk NID Sample Clocked Buffered Frequency Measurement Sample clocked buffered point frequency measurements can either be a single frequency measurement or an average between sample clocks Use CI Freq EnableAveraging to set the behavior For buffered frequency the default is True For hardware timed single point HWTSP the default is False A sample clocked buffered frequency measurement with CI Freq EnableAveraging set to True uses the embedded counter and a sample clock to perform a frequency measurement For each sample clock period the embedded counter counts the signal to measure fx and the 7 16 ni com Chapter 7 Counters primary counter counts the internal time base of a known frequency fk Suppose T1 is the number of ticks of the unknown signal counted between sample clocks and T2 is the number of ticks counted of the known time base The frequency measured will be fc fk TI T2 S11 a See UUU EUU E ai o a Figure 7 15 Sample Clocked Buffered Frequency Measurement Averaging When CI Freq EnableA veraging is set to false the frequency measurement returns the frequency of the pulse just before the sample clock This single measurement is a single frequency measurement and is not an average
263. put for more information How can I use the AI Sample Clock and AI Convert Clock signals on an MIO X Series device to sample the AI channel s MIO X Series devices use AI Sample Clock ai SampleClock and AI Convert Clock ai ConvertClock to perform interval sampling As Figure B 1 shows AI Sample Clock controls the sample period which is determined by the following equation 1 sample period sample rate Channel 0 i Channel 1 a Convert Period lt Sample Period gt Figure B 1 Al Sample Clock and Al Convert Clock AI Convert Clock controls the convert period which is determined by the following equation 1 convert period convert rate This method allows multiple channels to be sampled relatively quickly in relationship to the overall sample rate providing a nearly simultaneous effect with a fixed delay between channels B 2 ni com Appendix B Troubleshooting Analog Output I am seeing glitches on the output signal How can I minimize it When you use a DAC to generate a waveform you may observe glitches on the output signal These glitches are normal when a DAC switches from one voltage to another it produces glitches due to released charges The largest glitches occur when the most significant bit of the DAC code changes You can build a lowpass deglitching filter to remove some of these glitches depending on the frequency and nature of the output signal Visit ni com s
264. quisition digital input Each DMA controller channel contains a FIFO and independent processes for filling and emptying the FIFO This allows the buses involved in the transfer to operate independently for maximum performance Data is transferred simultaneously between the ports The DMA controller supports burst transfers to and from the FIFO Each DMA controller supports several features to optimize PCI Express PXI Express bus utilization The DMA controllers pack and unpack data through the FIFOs This feature allows the DMA controllers to combine multiple 16 bit transfers to the DAQ circuitry into a single 32 bit burst transfer on PCI Express The DMA controllers also automatically handle unaligned memory buffers on PCI Express PXI Express Programmed I O Programmed I O is a data transfer mechanism where the user s program is responsible for transferring data Each read or write call in the program initiates the transfer of data Programmed I O is typically used in software timed on demand operations Refer to the Analog Output Data Generation Methods section of Chapter 5 Analog Output for more information USB Device Data Transfer Methods The primary ways to transfer data across the USB bus are as follows X Series User Manual USB Signal Stream USB Signal Stream is a method to transfer data between the device and computer memory using USB bulk transfers without intervention of the microcontroller on the NI device NI uses
265. r DIO line as an input do not drive the line with voltages outside of its normal operating range The PFI or DIO lines have a smaller operating range than the AI signals e Treat the DAQ device as you would treat any static sensitive device Always properly ground yourself and the equipment when handling the DAQ device or connecting to it Programmable Power Up States At system startup and reset the hardware sets all PFI and DIO lines to high impedance inputs by default The DAQ device does not drive the signal high or low Each line has a weak pull down resistor connected to it as described in the specifications document for your device NI DAQmx supports programmable power up states for PFI and DIO lines Software can program any value at power up to the PO P1 or P2 lines The PFI and DIO lines can be set as e A high impedance input with a weak pull down resistor default e An output driving a 0 e An output driving a 1 Refer to the NJ DAQmx Help or the LabVIEW Help for more information about setting power up states in NI DAQmx or MAX ay Note When using your X Series device to control an SCXI chassis DIO lines 0 1 2 and 4 are used as communication lines and must be left to power up in the default high impedance state to avoid potential damage to these signals National Instruments Corporation 8 7 X Series User Manual Digital Routing and Clock Generation The digital routing circuitry has the following main f
266. r Pinouts section X Series User Manual 7 8 ni com Chapter 7 Counters Pulse Measurement In pulse measurements the counter measures the high and low time of a pulse on its Gate input signal after the counter is armed A pulse is defined in terms of its high and low time high and low ticks or frequency and duty cycle This is similar to the pulse width measurement except that the inactive pulse is measured as well You can route an internal or external periodic clock signal with a known period to the Source input of the counter The counter counts the number of rising or falling edges occurring on the Source input between two edges of the Gate signal You can calculate the high and low time of the Gate input by multiplying the period of the Source signal by the number of edges returned by the counter Refer to the following sections for more information about X Series pulse measurement options e Single Pulse Measurement e Implicit Buffered Pulse Measurement e Sample Clocked Buffered Pulse Measurement e Hardware Timed Single Point Pulse Measurement Single Pulse Measurement Single on demand pulse measurement is equivalent to two single pulse width measurements on the high H and low L ticks of a pulse as shown in Figure 7 8 Counter Armed Gate Source Latched Value
267. rdware timed single point HWTSP Typically HWTSP operations are used to write single samples at known time intervals While buffered operations are optimized for high throughput HWTSP National Instruments Corporation 5 3 X Series User Manual Chapter 5 Analog Output operations are optimized for low latency and low jitter In addition HWTSP can notify software if it falls behind hardware These features make HWTSP ideal for real time control applications HWTSP operations in conjunction with the wait for next sample clock function provide tight synchronization between the software layer and the hardware layer Refer to the NI Developer Zone document NI DAQmx Hardware Timed Single Point Lateness Checking for more information To access this document go to ni com info and enter the Info Code daghwt sp 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations X Series User Manual Buffered In a buffered generation data is moved from a PC buffer to the DAQ device s onboard FIFO using DMA before it is written to the DACs one sample at a time Buffered generation typically allow for much faster transfer rates than non buffered acquisitions because data is moved in large blocks rather than one point at a time One property of buffered I O operations is the sample mode The sample mode can be either finite or continuous Finite sample mode generation refers t
268. re 8 1 shows the circuitry of one PFI line Each PFI line is similar Timing Signals Static DO Buffer To Input Timing Signal Selectors PFI Change Detection Static DI lt Direction I O Protection PFI x P1 P2 Control m A Weak Pull Down Filters Figure 8 1 X Series PFI Circuitry National Instruments Corporation 8 1 X Series User Manual Chapter 8 PFI When a terminal is used as a timing input or output signal it is called PFI x where x is an integer from 0 to 15 When a terminal is used as a static digital input or output it is called P1 x or P2 x On the I O connector each terminal is labeled PFI x P1 x or PFI x P2 x The voltage input and output levels and the current drive levels of the PFI signals are listed in the specifications of your device Using PFI Terminals as Timing Input Signals X Series User Manual Use PFI terminals to route external timing signals to many different X Series functions Each PFI terminal can be routed to any of the following signals e NI 632x 634x 6351 6353 6361 6363 Devices AI Convert Clock ai ConvertClock e AI Sample Clock ai SampleClock e AI Start Trigger ai StartTrigger e Al Reference Trigger ai ReferenceTrigger e AIT Pause Trigger ai PauseTrigger e AI Sample Clock Timebase ai SampleClockTimebase e AO Start Trigger ao StartTrigger e AO Sample Clock ao SampleC
269. reference trigger condition occurs before the DAQ device captures the specified number of pretrigger samples the DAQ device ignores the condition If the buffer becomes full the DAQ device continuously discards the oldest samples in the buffer to make space for the next sample This data can be accessed with some limitations before the DAQ device discards it Refer to the KnowledgeBase document Can a Pretriggered Acquisition be Continuous for more information To access this KnowledgeBase go to ni com info and enter the Info Code rdcanq X Series User Manual 6 10 ni com Chapter 6 Digital I O When the reference trigger occurs the DAQ device continues to write samples to the buffer until the buffer contains the number of posttrigger samples desired Figure 6 5 shows the final buffer Reference Trigger Pretrigger Samples Posttrigger Samples l l T Complete Buffer Figure 6 5 Reference Trigger Final Buffer Using a Digital Source To use DI Reference Trigger with a digital source specify a source and an edge The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI STAR e PXIe DSTAR lt A B gt e Change Detection Event e Counter n Internal Output e AI Reference Trigger ai ReferenceTrigger e AO Start Trigger ao StartTrigger e DO Start Trigger do StartTrigger The source also can be one of several internal signals on your DAQ device Ref
270. requency Measurement You can use the counters to measure frequency in several different ways Refer to the following sections for information about X Series frequency measurement options e Low Frequency with One Counter e High Frequency with Two Counters e Large Range of Frequencies with Two Counters e Sample Clocked Buffered Frequency Measurement e Hardware Timed Single Point Frequency Measurement Low Frequency with One Counter For low frequency measurements with one counter you measure one period of your signal using a known timebase You can route the signal to measure fx to the Gate of a counter You can route a known timebase fk to the Source of the counter The known timebase can be an onboard timebase such as 100 MHz Timebase 20 MHz Timebase or 100 kHz Timebase or any other signal with a known rate National Instruments Corporation 7 13 X Series User Manual Chapter 7 3 Counters You can configure the counter to measure one period of the gate signal The frequency of fx is the inverse of the period Figure 7 12 illustrates this method e Interval Measured gt fx fx Gate 1 2 3 sii c N fk Source fk A A Single Period Period of fx N Measurement fk fk Frequency of fx N Figure 7 12 Low Frequency with One Counter High Frequency with Two Counters For high frequency measurements with two cou
271. retrigger samples Once the acquisition begins the DAQ device writes samples to the buffer After the DAQ device captures the specified number of pretrigger samples the DAQ device begins to look for the reference trigger condition If the reference trigger condition occurs before the DAQ device captures the specified number of pretrigger samples the DAQ device ignores the condition If the buffer becomes full the DAQ device continuously discards the oldest samples in the buffer to make space for the next sample This data can be accessed with some limitations before the DAQ device discards it Refer to the KnowledgeBase document Can a Pretriggered Acquisition be Continuous for more information To access this KnowledgeBase go to ni com info and enter the Info Code rdcanq When the reference trigger occurs the DAQ device continues to write samples to the buffer until the buffer contains the number of posttrigger samples desired Figure 4 23 shows the final buffer Reference Trigger Pretrigger Samples Posttrigger Samples l l T Complete Buffer Figure 4 23 Reference Trigger Final Buffer National Instruments Corporation 4 37 X Series User Manual Chapter 4 Analog Input X Series User Manual Using a Digital Source To use AI Reference Trigger with a digital source specify a source and an edge The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e
272. rigger sameco SLL A T_T Figure 5 6 AO PauseTrigger with Other Signal Source Using a Digital Source To use AO Pause Trigger specify a source and a polarity The source can be one of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI STAR e PXIe DSTAR lt A B gt e Counter n Internal Output e Counter n Gate e Al Pause Trigger ai PauseTrigger National Instruments Corporation 5 9 X Series User Manual Chapter 5 Analog Output e DI Pause Trigger di PauseTrigger e DO Pause Trigger do PauseTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the samples are paused when AO Pause Trigger is at a logic high or low level Using an Analog Source When you use an analog trigger source the samples are paused when the Analog Comparison Event signal is at a high level Refer to the Triggering with an Analog Source section of Chapter 11 Triggering for more information Routing AO Pause Trigger Signal to an Output Terminal You can route AO Pause Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal AO Sample Clock Signal X Series User Manual Use the AO Sample Clock ao SampleClock signal to initiate AO samples Each sample updates the outputs of all of the DACs You can specify an internal or ex
273. rough noisy environments e Two analog input channels AI and AL are available for the signal DIFF signal connections reduce noise pickup and increase common mode noise rejection DIFF signal connections also allow input signals to float within the common mode limits of the NI PGIA Refer to the Using Differential Connections for Floating Signal Sources section for more information about differential connections When to Use Non Referenced Single Ended NRSE Connections with Floating Signal Sources Only use NRSE input connections if the input signal meets the following conditions e The input signal is high level greater than 1 V e The leads connecting the signal to the device are less than 3 m 10 ft DIFF input connections are recommended for greater signal integrity for any input signal that does not meet the preceding conditions National Instruments Corporation 4 13 X Series User Manual Chapter 4 Analog Input X Series User Manual In the single ended modes more electrostatic and magnetic noise couples into the signal connections than in DIFF configurations The coupling is the result of differences in the signal path Magnetic coupling is proportional to the area between the two signal conductors Electrical coupling is a function of how much the electric field differs between the two conductors With this type of connection the NI PGIA rejects both the common mode noise in the signal and the ground potential di
274. rview e RTSI bus cables e SCXI modules and accessories for isolating amplifying exciting and multiplexing signals with SCXI you can condition and acquire up to 3 072 channels e Low channel count signal conditioning modules devices and accessories including conditioning for strain gauges and RTDs simultaneous sample and hold circuitry and relays For more specific information about these products refer to ni com Refer to the Custom Cabling and Connectivity section of this chapter and the Field Wiring Considerations section of Chapter 4 Analog Input for information about how to select accessories for your X Series device This section describes some cable and accessory options for X Series devices with one or two 68 pin connectors Refer to ni com for other accessory options including new devices SCXI Accessories SCXI is a programmable signal conditioning system designed for measurement and automation applications To connect your X Series device to an SCXI chassis use the SCXI 1349 adapter and an SHC68 68 EPM cable Use Connector 0 of your X Series device to control SCXI in parallel and multiplexed mode NI DAQmx only supports SCXI in parallel mode on Connector 1 Note When using Connector 1 in parallel mode with SCXI modules that support track and hold you must programmatically disable track and hold X Series User Manual Refer to the SCXI Advisor available by going to ni com info and entering the Info Co
275. ry displacement into digital or pulse signals The most popular type of encoder is the optical encoder which uses a rotating disk with alternating opaque areas a light source and a photodetector A voltage pulse from an external source that causes a DAQ operation to begin First In First Out memory buffer A data buffering technique that functions like a shift register where the oldest values first in come out first Many DAQ products and instruments use FIFOs to buffer digital data from an A D converter or to buffer the data before or after bus transmission The first data stored is the first data sent to the acceptor FIFOs are often used on DAQ devices to temporarily store incoming or outgoing data until that data can be retrieved or output For example an analog input FIFO stores the results of A D conversions until the data can be retrieved into system memory a process that often requires programming the DMA controller This process can take several milliseconds in some cases During this time data accumulates in the FIFO for future retrieval With a larger FIFO longer latencies can be tolerated In the case of analog output a FIFO permits faster update rates because the waveform data can be stored on the FIFO ahead of time This again reduces the effect of latencies associated with getting the data from system memory to the DAQ device A physical device or digital algorithm that selectively removes noise from a signal or emph
276. s e Low profile portable Integrates well with other laptop computer measurement technologies e Connectivity Incorporates panelette technology to offer custom connectivity to thermocouple BNC LEMO B Series and MIL Spec connectors 3 Note PCI Express X Series Devices PCI Express users should consider the power limits on certain SCC modules without an external power supply Refer to the specifications for your device and the PCI Express Device Disk Drive Power Connector section of Chapter 3 Connector and LED Information for information about power limits and increasing the current the device can supply on the 5 V terminal 3 Note NI 6356 6358 6366 6368 Devices X Series Simultaneous MIO SMIO devices do not support SCC National Instruments Corporation 2 9 X Series User Manual Chapter 2 DAQ System Overview Programming Devices in Software X Series User Manual National Instruments measurement devices are packaged with NI DAQmx driver software an extensive library of functions and VIs you can call from your application software such as LabVIEW or LabWindows CVI to program all the features of your NI measurement devices Driver software has an application programming interface API which is a library of VIs functions classes attributes and properties for creating applications for your device X Series devices use the NI DAQmx driver NI DAQm x includes a collection of programming examples to help you get
277. s devices 4 49 differential signals Simultaneous MIO X Series devices 4 48 X Series User Manual signal rejection considerations differential ground referenced signals Simultaneous MIO X Series devices 4 48 configuring AI ground reference settings in software MIO X Series devices 4 6 connecting analog input signals MIO X Series devices 4 11 analog output signals 5 5 counter signals B 3 digital I O signals 6 28 floating signal sources MIO X Series devices 4 13 ground referenced signal sources MIO X Series devices 4 19 PFI input signals 8 4 connecting signals analog input Simultaneous MIO X Series devices 4 46 connections for floating signal sources MIO X Series devices 4 19 single ended for floating signal sources MIO X Series devices 4 19 single ended RSE configuration MIO X Series devices 4 19 connector information 3 1 NI PCle PXIe 6341 A 5 NI PCle PXIe 6361 A 13 NI PClIe PXIe 6363 A 16 NI PCIe 6320 A 2 NI PClIe 6321 A 5 NI PClIe 6323 6343 A 9 NI PClIe 6351 A 13 NI PClIe 6353 A 16 NI PXIe 6356 6366 A 20 ni com NI PXIe 6358 6368 A 23 NI USB 6341 A 7 NI USB 6343 A 10 NI USB 635 1 6361 A 14 NI USB 6353 6363 A 17 NI USB 6356 6366 A 21 RTSI 3 5 considerations for field wiring MIO X Series devices 4 24 for multichannel scanning MIO X Series devices 4 6 for PXI Express 10 3 continuous pulse train generation 7 35 controller DMA 10 1
278. s estes 8 5 FO Protection sissioni nanira E O ERE E A E E E 8 7 Programmable Power Up States ssseseeesseeeseeesssesresrreesreststrsrsrestesrsresresreresreesrrersrestse 8 7 Chapter 9 Digital Routing and Clock Generation Clock RouuUn S n odin ie a E a a A S 9 1 T0OMHZ TimebaSe nerea e ea E E E R 9 2 20 METZ Tim bas nes ee n a T E TE E T 9 2 100 KHZ Time aseitisses citekand ei a Ea E A E AN 9 2 External Reference Clock a ee ear EEEE ERE E e REE oiana 9 2 1OMHz Reference Cloc Keme r a ee a ea ea e E E OE E AS 9 3 Synchronizing Multiple Devices ssessssesesessesrsetssssesrrsrsersresreresrertsrestnrestrsresesrestsresteet 9 3 PXA Express Deyic S inanes a EE E RE EE R ERR RERE 9 3 PCT Express Devices oei neurea a nie A A EAA 9 3 LONTE DIETAT e e AEEA TENA EAT B OR SE EET O AA TAE EA 9 4 Real Time System Integration RTSD essesesssesssssessesseresrsrrsreresresesresteererenreresresrssese 9 4 RIESE Connector Pinout syr sce thie das cdees evans Seles sev tct ice O R E E A 9 5 Using RISLas Outputs s asi nsha tes wae te eee eet ee a eoi 9 6 Using RTSI Terminals as Timing Input Signals eee eeeeereeeees 9 7 RUS Filters iis ck eae ee NIA etn tai aes 9 7 X Series User Manual xii ni com Contents PXI and PXI Express Clock and Trigger Signals 0 cece eeesseeeeeeeeeseeeeeeneeneeeaes 9 8 PXle CLR IOO eoin nae eaei aaee aap haai en aaaea E iNe eRT aT Ees 9 8 PXTe SYNCI OO risnu Sees AE a E id eR ee 9 8 PXECLKI Otin E E
279. s for AI Sample Clock You can configure the polarity selection for AI Sample Clock Timebase as either rising or falling edge except on 100 MHz Timebase or 20 MHz Timebase Al Convert Clock Signal Use the AI Convert Clock ai ConvertClock signal to initiate a single A D conversion on a single channel A sample controlled by the AI Sample Clock consists of one or more conversions 4 30 ni com Chapter 4 Analog Input You can specify either an internal or external signal as the source of AI Convert Clock You also can specify whether the measurement sample begins on the rising edge or falling edge of AI Convert Clock With NI DAQm x the driver chooses the fastest conversion rate possible based on the speed of the A D converter and adds 10 us of padding between each channel to allow for adequate settling time This scheme enables the channels to approximate simultaneous sampling and still allow for adequate settling time If the AI Sample Clock rate is too fast to allow for this 10 us of padding NI DAQmx chooses the conversion rate so that the AI Convert Clock pulses are evenly spaced throughout the sample To explicitly specify the conversion rate use AI Convert Clock Rate DAQmx Timing property node or function UN Caution Setting the conversion rate higher than the maximum rate specified for your device will result in errors Using an Internal Source One of the following internal signals can drive AI Convert Clock e AI Convert
280. s function measures the onboard reference voltage of the device and adjusts the self calibration constants to account for any errors caused by short term fluctuations in the environment Disconnect all external signals when you self calibrate a device You can initiate self calibration using Measurement amp Automation Explorer MAX by completing the following steps 1 Launch MAX 2 Select My System Devices and Interfaces your device 3 Initiate self calibration using one of the following methods e Click Self Calibrate in the upper right corner of MAX e Right click the name of the device in the MAX configuration tree and select Self Calibrate from the drop down menu 3 Note You can also programmatically self calibrate your device with NI DAQmx as described in Device Calibration in the NI DAQmx Help or the LabVIEW Help Getting Started with USB X Series Devices The following sections contain information about USB X Series device best practices and features USB Device Chassis Ground USB X Series Devices For EMC compliance the chassis of the X Series USB device must be connected to earth ground through the chassis ground X Series User Manual 1 2 ni com Chapter 1 Getting Started The wire should be AWG 16 or larger solid copper wire with a maximum length of 1 5 m 5 ft Attach the wire to the earth ground of the facility s power system For more information about earth ground connections refer to the Knowledge
281. s the pinout of the NI PXIe 6358 6368 The I O signals appear on two 68 pin connectors For a detailed description of each signal refer to the 7 O Connector Signal Descriptions section of Chapter 3 Connector and LED Information pe Oe Al 0 68 34 Al 0 P0 30 1 35 D GND Al 0 GND 67 33 Al 1 P0 28 2 36 D GND Al 1 66 32 Al 1 GND P0 25 3 37 Po 24 Al 2 65 31 Al 2 s D GND 4 38 Po 23 Al 2 GND 64 30 Al 3 T g P0 22 5 39 Po 31 Al 3 63 29 Al3 GND KEBE P0 21 6 40 Po 29 NC 62 28 Al 4 us we D GND 7 41 Po 20 Al 4 61 27 Al4 GND 57 g 5V 8 42 Po 19 Al 5 60 26 Al 5 oO Q D GND 9 43 Po 18 Al5 GND 59 25 Al 6 P0 17 10 44 D GND Al 6 58 24 Al 6 GND P0 16 11 45 P0 26 Al 7 57 23 A17 TERMINAL 68 Tl TERMINAL 35 D GND 12 46 Po 27 Al7 GND 56 221 AOO D GND 13 47 Po 11 AO GND 55 21 ao 1 TERMINAL 34 TERMINAL 1 pe 14 48 Po 15 AO GND 54 20 APFIO D GND 15 49 Po 10 D GND 53 19 P0 4 P0 14 16 50 D GND P0 0 52 18 D GND P0 9 17 51 P0 13 P0 5 51 17 Po 1 D GND 18 52 pos D GND 50 16 Po 6 P0 12 19 53 D GND P0 2 49 15 D G
282. seeseeeeeeseenseeseeeaecaeenaseaeenaes 4 1 Analog Input R n SE 24 5 nrn sret e E REE A E R EEO EE es 4 2 Working Voltage Rangen e a EGR a 4 4 Analog Input Ground Reference Settings s esserseeeseerereerrrrsrrrrsersrsrerrrersreee 4 4 Configuring AI Ground Reference Settings in Software 4 6 Multichannel Scanning Considerations 0000 0 eee eeeeeeeesecseeeneeseeeseseeeeaeenaes 4 6 Analog Input Data Acquisition Methods 0 eee eceeeeceeseeeeeeseeeeeeseseeeeaeenaes 4 9 Software Timed Acquisitions 00 0 0 cee eeeeeseeeeseseeeeseeeeeseeeeeeeeseees 4 10 Hardware Timed Acquisitions 0 0 0 0 cececeeeeseeseceeeeseceeeeseeseeeseeseees 4 10 Analog Input Triggering cece eeesseesceeseeeeseceseceseceescecsaceeaeceseseseeeaeerses 4 11 Connecting Analog Input Signals eee ee eeeseceeeeeesseceeenecseenseeaeenaes 4 11 Connecting Floating Signal Sources 20 0 eee ee eeeeseeeeeeeeeeeseeeeeseseeeeaeenaes 4 13 What Are Floating Signal Sources oo eee eeeeeeceeeeeeeeeeeeeenees 4 13 When to Use Differential Connections with Floating Signal SOUICESs estoticeas He SA Hiei Al Sl Biden cau 4 13 When to Use Non Referenced Single Ended NRSE Connections with Floating Signal Sources 0 eee eeeeeeeee 4 13 When to Use Referenced Single Ended RSE Connections with Floating Signal Sources 0 eee eeeeseeseesseceseeseeeseeaseneeeeeeatenes 4 14 Using Differential Connections for Floating Signal Sources 4 15 X Series
283. seeseeneeseeeaes 6 18 DO Start Trigger Signal cc sce state caasssstwegsed ees conebasessteoebessesgetes a iiaa 6 19 Retriggerable DO amra aiir asainn n ENE ENEA aE ai 6 19 Using a Digital SOUrCE csciscisieccscdsssesdedcscsssssneccoenssseescaesessessbeeactsesee 6 20 Using an Analog Source ei eeseecesecseeeseceseesecnseeaeeneeeaeensereeeeaees 6 20 Routing DO Start Trigger Signal to an Output Terminal 0 6 20 DO Pause Trigger Signal i sarmadan in idees cos tacuavscuebssadecceinene 6 21 Using a Digital Sour ic cs sccshesteabesstestessecuviesdcesesnassasescopsseicevsiensis 6 22 Using an Analog Source ninisi neo iirin es iiri ia 6 22 Routing DO Pause Trigger Signal to an Output Terminal 6 22 VO Pr t ction s isens erri ck Gos cass cdaaaea doa sa E E a a hdesiived ae EA SEES 6 22 Programmable Power Up States c eee eseescesecesecscceseceseesecneeeseeseeesesseeeaeseaeeaeeneeeaes 6 23 DE Change Detection iscisicsatasitieteih then Govt feieee din ea Nevin ee ew a eae 6 23 DI Change Detection Applications ec eeeeseseeeeseeeseceeeesecseeeseeseeeaeesees 6 25 National Instruments Corporation ix X Series User Manual Contents Digital Filtering isipin asernes iposi ia ea E dav NA eed aai AEE 6 25 Watchdog TIMET iiscsisessccsseteces seeteiassdsestens i isessas caves toaseieeacdsepdanes dasaetestsavesopstes 6 28 Connecting Digital I O Signals 0 eee eee eessesecesecseeneeeseeeecaeesaeeaeeeaeeseenee
284. signed to have fast settling times However several factors can increase the settling time which decreases the accuracy of your measurements To ensure fast settling times you should do the following in order of importance 1 National Instruments Corporation Use Low Impedance Sources To ensure fast settling times your signal sources should have an impedance of lt 1 kQ Large source impedances increase the settling time of the NI PGIA and so decrease the accuracy at fast scanning rates Settling times increase when scanning high impedance signals due to a phenomenon called charge injection Multiplexers contain switches usually made of switched capacitors When one of the channels for example channel 0 is selected in a multiplexer those capacitors accumulate charge When the next channel for example channel 1 is selected the accumulated charge leaks backward through channel 1 If the output impedance of the source connected to channel is high enough the resulting reading of channel 1 can be partially affected by the voltage on channel 0 This effect is referred to as ghosting If your source impedance is high you can decrease the scan rate to allow the NI PGIA more time to settle Another option is to use a voltage follower circuit external to your DAQ device to decrease the impedance seen by the DAQ device Refer to the KnowledgeBase document Decreasing the Source Impedance of an Analog Input Signal by going to ni co
285. ss devices such as X Series M Series CAN and other measurement vision and motion devices Since PXI devices use PXI backplane signals for timing and synchronization no cables are required Cables In most applications you can use the following cables e SHC68 68 EPM High performance shielded cable designed for M X Series devices It has individual bundles separating analog and digital signals Each differential analog input channel is routed on an individually shielded twisted pair of wires Analog outputs are also individually shielded e SHC68 68 Lower cost shielded cable with 34 twisted pairs of wire e RC68 68 Highly flexible unshielded ribbon cable 1 TB 2706 uses Connector 0 of your PXI Express device After a TB 2706 is installed Connector 1 cannot be used 2 NI recommends that you use the SHC68 68 EPM cable however an SHC68 68 EP cable will work with X Series devices X Series User Manual 2 6 ni com Chapter 2 DAQ System Overview Custom Cabling and Connectivity The CA 1000 is a configurable enclosure that gives user defined connectivity and flexibility through customized panelettes Visit ni com for more information about the CA 1000 NI offers cables and accessories for many applications However if you want to develop your own cable adhere to the following guidelines for best results e For AI signals use shielded twisted pair wires for each AI pair of differential inputs Connect the shield for eac
286. sseseaeeaes 6 28 Getting Started with DIO Applications in Software eee ee ceeeeceeeeeteeeeeeteeenees 6 29 Chapter 7 Counters Counter Timing Engine ives scvscc ised cesbsoseveoceuea siaus ch iuao iaon cua cdiventeesed E E aia ns 7 2 Counter Input Applications siisii insesi ceeeeescneecsecenecseseaeeseseeesseceeeseeeeeseseaeeaeenaes 7 3 Counting Edess inian e E wash abe E lee nees tanli E R 7 3 Single Point On Demand Edge Counting 0 0 eee eeeeeeee 7 4 Buffered Sample Clock Edge Counting ee eeeee eee eeees 7 5 Controlling the Direction of Counting eee eeeeeseeseeeeeeeees 7 5 Pulse Width Measurement 0 cece ecesceseeseeeseeseeeseceecesecaeeeseeeesseseaeeasenaes 7 6 Single Pulse Width Measurement 00 eee ee ee ce cess eeeeeseeeeeeeeeeees 7 6 Implicit Buffered Pulse Width Measurement eeseeseeeeeeeeees 7 7 Sample Clocked Buffered Pulse Width Measurement 0 0 7 8 Hardware Timed Single Point Pulse Width Measurement 7 8 Pulse Measurement 32 302 cs ssgschcssssseeeuseass n a e a a a 7 9 Single Pulse Measurement sseeseeeesesesetssesrsrrsresrsresrerrsresrerrsresreees 7 9 Implicit Buffered Pulse Measurement eee eeeeeeceeeeeeeneeeeees 7 10 Sample Clocked Buffered Pulse Measurement eee 7 10 Hardware Timed Single Point Pulse Measurement 0 ee 7 11 Pulse versus Semi Period Measurements eceeseeseeeeeseeneeeeees 7 11 Semi Period Measurement 0 0 ceees
287. surement 7 29 Hardware Timed Single Point Two Signal Separation Measurement7 30 Counter Output Applications oo eee eeeeeseeseceseesecesecesenecseeeseeaeesaeeseseaeeseseasensenaes 7 30 Simple Pulse Gemeration oyess seis esees seset iae een o a E E see 7 31 Single Pulse Generation iscissi esii ies 7 31 Single Pulse Generation with Start Trigger e eeeeeeeseeeeseeeeesreeeereee 7 31 Pulse Train Generatio cairia aaan ae To s Eii 7 32 Finite Pulse Train Generation 0 0 0 cece eeeeseeseeeseesseeseeeseeeensenaes 7 32 Retriggerable Pulse or Pulse Train Generation eee 7 33 Continuous Pulse Train Generation eee eee eseeeeeeeeeeteeeenees 7 35 Buffered Pulse Train Generation eee eee eeeeseeseeeseeeeeeeeeneeeaes 7 36 Finite Implicit Buffered Pulse Train Generation eee 7 36 Continuous Buffered Implicit Pulse Train Generation 0 0 0 7 37 Finite Buffered Sample Clocked Pulse Train Generation 7 37 Continuous Buffered Sample Clocked Pulse Train Generation 7 39 Pr quency Generation ees csi5s 5 seek pass shane oatescbice a a ihecteseyvidende cnagecnse ses 7 39 Using the Frequency Generator 0 cece eeceeseeeeeeceeeeeeensereeeenees 7 39 Bre quency D1 visiOnivisssccctsseds cscs lates cfies dh eoira EE A aAa ond snses EA EEEE 7 40 Pulse Generation for ETS s sin icerisine iis ioana ea se paaa rI EERE ESR 7 40 Counter Timing Signals sasies iien iei Ea EE tue TESE LE 7 41 Counter n S
288. t 1 3 arm start trigger 7 51 avoiding scanning faster than necessary MIO X Series devices 4 9 buffered edge counting 7 5 hardware timed acquisitions 4 10 Simultaneous MIO X Series devices 4 44 hardware timed generations 5 4 6 15 position measurement 7 26 two signal edge separation measurement 7 29 bus interface 10 1 RTSI 9 4 C cable management 1 3 cables 2 3 2 7 choosing for your device 1 7 custom 2 7 NI 6320 A 4 NI 6321 6341 A 8 NI 6323 6343 A 12 NI 6351 6361 A 15 X Series User Manual Index NI 6353 6363 A 19 NI 6356 6366 A 22 NI 6358 6368 A 24 X Series devices 2 4 calibration 1 2 circuitry 2 3 calibration certificate NI resources C 2 cascading counters 7 52 Change Detection Event signal 6 23 channel scanning order MIO X Series devices 4 7 Z behavior 7 25 channels analog input 11 4 sampling with AI Sample Clock and AI Convert Clock B 2 charge injection B 1 choosing frequency measurement 7 18 circular buffered acquisition MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 clock 10 MHz reference 9 3 external reference 9 2 generation 9 1 PXI PXI Express and trigger signals 9 8 routing 9 1 common mode input range Simultaneous MIO X Series devices 4 42 noise differential ground referenced signals Simultaneous MIO X Series devices 4 48 differential non referenced or floating signals Simultaneous MIO X Serie
289. t output low 1 000 samples A graphical programming language Light Emitting Diode A semiconductor light source A filter that passes signals below a cutoff frequency while blocking signals above that frequency Least Significant Bit The quantitative determination of a physical characteristic In practice measurement is the conversion of a physical quantity or observation to a domain where a human being or computer can determine the value DAQ devices such as the X Series multifunction I O MIO devices SCXI signal conditioning modules and switch modules X Series User Manual Glossary MHz MIO MITE module monotonicity multichannel multifunction DAQ multiplex mux X Series User Manual Megahertz A unit of frequency 1 MHz 10 Hz 1 000 000 Hz Multifunction I O DAQ module Designates a family of data acquisition products that have multiple analog input channels digital I O channels timing and optionally analog output channels An MIO product can be considered a miniature mixed signal tester due to its broad range of signal types and flexibility Also known as multifunction DAQ MXI Interface To Everything A custom ASIC designed by National Instruments that implements the PCI bus interface The MITE supports bus mastering for high speed data transfers over the PCI bus A board assembly and its associated mechanical parts front panel optional shields and so on A module contains e
290. t once a finite generation completes When using the AO timing engine you also can specify a configurable delay from AO Start Trigger to the first AO Sample Clock pulse By default this delay is two ticks of AO Sample Clock Timebase National Instruments Corporation 5 11 X Series User Manual Chapter 5 Analog Output Figure 5 7 shows the relationship of AO Sample Clock to AO Start Trigger AO Sample Clock Timebase AO Start Trigger i AO Sample Clock Delay From Start Trigger Figure 5 7 AO Sample Clock and AO Start Trigger AO Sample Clock Timebase Signal X Series User Manual The AO Sample Clock Timebase ao SampleClockTimebase signal is divided down to provide a source for AO Sample Clock You can route any of the following signals to be the AO Sample Clock Timebase signal e 100 MHz Timebase default e 20 MHz Timebase e 100 kHz Timebase e PXI CLK10 e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI _ STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger AO Sample Clock Timebase is not available as an output on the I O connector You might use AO Sample Clock Timebase if you want to use an external sample clock signal but need to divide the signal down If you want to use an external sample clock signal but do not need to divide the signal then you should use AO Sample Clock rather than AO Sample Clock Ti
291. t take effect until the beginning of the next sample When you generate digital output signals the generation pauses as soon as the pause trigger is asserted If the source of your sample clock is the onboard clock the generation resumes as soon as the pause trigger is deasserted as shown in Figure 6 9 Pause Trigger Sample Clock Figure 6 9 DO Pause Trigger with the Onboard Clock Source If you are using any signal other than the onboard clock as the source of your sample clock the generation resumes as soon as the pause trigger is deasserted and another edge of the sample clock is received as shown in Figure 6 10 Pause Trigger Ao l Sample Clock Figure 6 10 DO Pause Trigger with Other Signal Source National Instruments Corporation 6 21 X Series User Manual Chapter 6 Digital 1 0 1 0 Protection Using a Digital Source To use DO Pause Trigger specify a source and a polarity The source can be one of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI _ STAR e PXIe DSTAR lt A B gt e Counter n Internal Output e Counter n Gate e AI Pause Trigger ai PauseTrigger e AO Pause Trigger ao PauseTrigger e DI Pause Trigger di PauseTrigger The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the L
292. te steps A trigger that occurs at a user selected point on an incoming analog signal Triggering can be set to occur at a specific level on either an increasing or a decreasing signal positive or negative slope Analog triggering can be implemented either in software or in hardware When implemented in software LabVIEW all data is collected transferred into system memory and analyzed for the trigger condition When analog triggering is implemented in hardware no data is transferred to system memory until the trigger condition has occurred A software program that creates an end user function The process of getting an instrument ready to perform a function For example the trigger circuitry of a digitizer is armed meaning that it is ready to start acquiring data when an appropriate trigger condition is met G 2 ni com ASIC asynchronous BNC buffer bus buses C C calibration calibrator cascading National Instruments Corporation G 3 Glossary Application specific integrated circuit A proprietary semiconductor component designed and manufactured to perform a set of specific functions for a specific customer 1 Hardware A property of an event that occurs at an arbitrary time without synchronization to a reference clock 2 Software A property of a function that begins an operation and returns prior to the completion or termination of the operation Bit One binary digit either 0 or 1
293. tem Overview for more information National Instruments Corporation 1 7 X Series User Manual DAQ System Overview Figure 2 1 shows a typical DAQ system which includes sensors transducers signal conditioning devices cables that connect the various devices to the accessories the X Series device programming software and PC The following sections cover the components of a typical DAQ system AULA Signal Cables and DAQ DAQ Personal Computer Conditioning Accessories Hardware Software or Sensors and Transd PXI Express ransducers Chassis Figure 2 1 Components of a Typical DAQ System DAQ Hardware DAQ hardware digitizes signals performs D A conversions to generate analog output signals and measures and controls digital I O signals Figure 2 2 features components common to all X Series devices National Instruments Corporation 2 1 X Series User Manual Chapter 2 DAQ System Overview Analog Input Analog Output g L Digtal 35 Routing Bus 8 Digital O and Clock Interface Bus O m Generation Counters RTSI PFI DAQ STC3 Figure 2 2 General X Series Block Diagram The DAQ STC3 and DAQ 6202 implement a high performance digital engine for X Series data acquisition hardware Some key features of this engine include the following X Series User Manual
294. ter 7 Counters In this case Frequency Output is low for D 1 2 cycles and high for D 1 2 cycles of the Frequency Output Timebase Figure 7 37 shows the output waveform of the frequency generator when the divider is set to 5 Frequency Output Timebase FREQ OUT Divisor 5 Figure 7 37 Frequency Generator Output Waveform Frequency Output can be routed out to any PFI lt 0 15 gt or RTSI lt 0 7 gt terminal All PFI terminals are set to high impedance at startup The FREQ OUT signal also can be routed to many internal timing signals In software program the frequency generator as you would program one of the counters for pulse train generation For information about connecting counter signals refer to the Default Counter Timer Pinouts section Frequency Division The counters can generate a signal with a frequency that is a fraction of an input signal This function is equivalent to continuous pulse train generation Refer to the Continuous Pulse Train Generation section for detailed information For information about connecting counter signals refer to the Default Counter Timer Pinouts section Pulse Generation for ETS X Series User Manual In the equivalent time sampling ETS application the counter produces a pulse on the output a specified delay after an active edge on Gate After each active edge on
295. ternal source for AO Sample Clock You also can specify whether the DAC update begins on the rising edge or falling edge of AO Sample Clock Using an Internal Source One of the following internal signals can drive AO Sample Clock e AO Sample Clock Timebase divided down e Counter n Internal Output e Change Detection Event e Counter n Sample Clock e AT Convert Clock ai ConvertClock e AI Sample Clock ai SampleClock e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock 5 10 ni com Chapter 5 Analog Output A programmable internal counter divides down the AO Sample Clock Timebase signal Several other internal signals can be routed to AO Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an External Source Use one of the following external signals as the source of AO Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger Routing AO Sample Clock Signal to an Output Terminal You can route AO Sample Clock as an active low signal out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal Other Timing Requirements The AO timing engine on your device internally generates AO Sample Clock unless you select some external source AO Start Trigger starts the timing engine and either the software or hardware can stop i
296. ters Sample Clocked Buffered Pulse Width Measurement A Sample Clocked Buffered pulse width measurement is similar to single pulse width measurement but buffered pulse width measurement takes measurements over multiple pulses correlated to a sample clock The counter counts the number of edges on the Source input while the Gate input remains active On each sample clock edge the counter stores the count in the FIFO of the last pulse width to complete A DMA controller transfers the stored values to host memory Figure 7 7 shows an example of a sample clocked buffered pulse width measurement Gate l Source M J Lyi 2 2 14 2 2 13 Sample Clock f Buffer p K 3 Figure 7 7 Sample Clocked Buffered Pulse Width Measurement Hardware Timed Single Point Pulse Width Measurement A hardware timed single point HWTSP pulse width measurement has the same behavior as a sample clocked buffered pulse width measurement Note Ifa pulse does not occur between sample clocks an overrun error will occur Si g Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations For information about connecting counter signals refer to the Default Counter Time
297. th single pulse width measurement the counter counts the number of edges on the Source input while the Gate input remains active When the Gate input goes inactive the counter stores the count in the FIFO and ignores other edges on the Gate and Source inputs Software then reads the stored count X Series User Manual 7 6 ni com Chapter 7 Counters Figure 7 5 shows an example of a single pulse width measurement GATE ee J L eee im SOURCE A Counter Value 0 Latched Value 2 N HSeeeeceeceee5 Figure 7 5 Single Pulse Width Measurement Implicit Buffered Pulse Width Measurement An implicit buffered pulse width measurement is similar to single pulse width measurement but buffered pulse width measurement takes measurements over multiple pulses The counter counts the number of edges on the Source input while the Gate input remains active On each trailing edge of the Gate signal the counter stores the count in the counter FIFO A DMA controller transfers the stored values to host memory Figure 7 6 shows an example of an implicit buffered pulse width measurement GATE SOURCE Counter Value Buffer 3 2 Figure 7 6 Implicit Buffered Pulse Width Measurement National Instruments Corporation 7 7 X Series User Manual Chapter 7 Coun
298. the NI Developer Zone document NJ DAQmx Hardware Timed Single Point Lateness Checking for more information To access this document go to ni com info and enter the Info Code daghwtsp 3 Note NI USB 634x 635x 636x Devices USB X Series devices do not support hardware timed single point HWTSP operations Analog Input Triggering Analog input supports three different triggering actions e Start trigger e Reference trigger e Pause trigger Refer to the AZ Start Trigger Signal AI Reference Trigger Signal and AI Pause Trigger Signal sections for information about these triggers An analog or digital trigger can initiate these actions All Simultaneous MIO X Series devices support digital triggering but some do not support analog triggering To find your device triggering options refer to the specifications document for your device National Instruments Corporation 4 45 X Series User Manual Chapter 4 Analog Input Connecting Analog Input Signals Table 4 6 summarizes the recommended input configuration for different types of signal sources for Simultaneous MIO X Series devices Table 4 6 Simultaneous MIO X Series Analog Input Signal Configuration Floating Signal Sources Not Connected to Earth Ground Ground Referenced Signal Sources Examples e Ungrounded thermocouples e Signal conditioning with isolated outputs Example e Plug in instruments with non isolated outputs
299. the USB X Series device in place attach the front bracket to the backpanel wall mount by tightening the two thumbscrews DIN Rail Mounting Complete the following steps to mount your USB X Series device to a DIN rail using the USB X Series mounting kit with DIN rail clip part number 781515 01 not included in your X Series USB device kit 1 Fasten the DIN rail clip to the back of the backpanel wall mount using a 1 Phillips screwdriver and four machine screws part 1 4 ni com Chapter 1 Getting Started number 740981 01 included in the kit as shown in Figure 1 3 Tighten the screws to a torque of 0 4 N m 3 6 Ib in Figure 1 3 Attaching the DIN Rail Clip to the Backpanel Wall Mount 2 Clip the bracket onto the DIN rail as shown in Figure 1 4 P lt _ 3 1 DIN Rail Clip 2 DIN Rail Spring 3 DIN Rail Figure 1 4 DIN Rail Clip Parts Locator Diagram 3 Place the USB X Series device on the backpanel wall mount with the signal wires facing down and the device bottom sitting on the backpanel wall mount lip 4 While holding the USB X Series device in place attach the front bracket to the backpanel wall mount by tightening the two thumbscrews National Instruments Corporation 1 5 X Series User Manual Chapter 1 Getting Started USB Cable Strain Relief USB X Series Devices You can provide strain relief for the USB cable by using the jackscrew on the locking USB ca
300. timing sequences for a four channel acquisition using AI channels 0 1 2 and 3 and demonstrate proper and improper sequencing of AI Sample Clock and AI Convert Clock Al Sample Clock Al Convert Clock f Channel Measured 0123 tH _ _ Convert Period Figure 4 18 Scan Overrun Condition Al Sample Clock Too Fast For Convert Clock Causes an Error Al Sample Clock Al Convert Clock Channel Measured 0123 0123 0123 m Sample 1 gt a Sample 2 pa Sample 3 gt Figure 4 19 Al Convert Clock Too Fast For Al Sample Clock Al Convert Clock Pulses Are Ignored National Instruments Corporation 4 33 X Series User Manual Chapter 4 Analog Input Al Sample Clock Al Convert Clock Channel Measured 0o 4 2 3 0 1 2 3 0 a Sample 1 gt lt Sample 2 gt lt Sample 3 j X Series User Manual Figure 4 20 Al Sample Clock and Al Convert Clock Improperly Matched Leads to Aperiodic Sampling Al Sample Clock Al Convert Clock l l l f Channel Measured 012 3 l 012 3 012 3 iq Sample 1 Sample 2 q Sample 3 Figure 4 21 Al Sample Clock and Al Convert Clock Properly Matched Al Convert Clock Timebase Signal
301. tle this much To avoid this effect you should arrange your channel scanning order so that transitions from large to small input ranges are infrequent In general you do not need this extra settling time when the NI PGIA is switching from a small input range to a larger input range Insert Grounded Channel between Signal Channels Another technique to improve settling time is to connect an input channel to ground Then insert this channel in the scan list between two of your signal channels The input range of the grounded channel should match the input range of the signal after the grounded channel in the scan list Consider again the example above where a 4 V signal is connected to channel 0 anda 1 mV signal is connected to channel 1 Suppose the input range for channel 0 is 10 V to 10 V and the input range of channel 1 is 200 mV to 200 mV You can connect channel 2 to AI GND or you can use the internal ground refer to Internal Channels in the NI DAQmx Help Set the input range of channel 2 to 200 mV to 200 mV to match channel 1 Then scan channels in the order 0 2 1 Inserting a grounded channel between signal channels improves settling time because the NI PGIA adjusts to the new input range setting faster when the input is grounded Minimize Voltage Step between Adjacent Channels When scanning between channels that have the same input range the settling time increases with the voltage step between the channels I
302. to 12 Mbps bandwidth for connecting computers to keyboards printers and other peripheral devices USB 2 0 retains compatibility with the original USB specification Common mode voltage Ground loop voltage Volts input high Volts input low Volts in Measured voltage Volts output high Volts output low Volts out G 16 ni com V S virtual channel W waveform X X Series Glossary Signal source voltage See channel 1 The plot of the instantaneous amplitude of a signal as a function of time 2 Multiple voltage readings taken at a specific sampling rate An architecture for instrumentation class multichannel data acquisition devices based on the earlier M Series architecture with added new features National Instruments Corporation G 17 X Series User Manual Index Symbols 5 V power source 3 3 Numerics 10 MHz reference clock 9 3 100 kHz Timebase 9 2 100 MHz source mode 7 53 Timebase 9 2 20 MHz Timebase 9 2 A A D converter MIO X Series devices 4 2 AC coupling connections Simultaneous MIO X Series devices 4 48 accessories 2 3 2 7 choosing for your device 1 7 field wiring considerations Simultaneous MIO X Series devices 4 50 NI 6320 A 4 NI 6321 6341 A 8 NI 6323 6343 A 12 NI 6351 6361 A 15 NI 6353 6363 A 19 NI 6356 6366 A 22 NI 6358 6368 A 24 accuracy analog triggers 11 8 acquisitions circular buffered MIO X Series devices 4 10 Simultaneo
303. to the NI PGIA If a different channel is routed to the NI PGIA the trigger condition on the desired channel could be missed The other channels also could generate false triggers This behavior places some restrictions on using AI channels as trigger sources When you use an analog start trigger the trigger channel must be the first channel in the channel list When you use an analog reference or pause trigger and the analog channel is the source of the trigger there can be only one channel in the channel list Analog Input Channels on Simultaneous MIO X Series Devices With Simultaneous MIO X Series devices every AI channel drives its own NI PGIA The NI PGIA amplifies the signal as determined by the input range The output of the NI PGIA then drives the analog trigger detection circuit By using the NI PGIA you can trigger on very small voltage changes in the input signal Since channels are not multiplexed there are no restrictions on the analog input channel list order or number of channels with reference and pause triggers However the analog input channels must be in the scan list Analog Trigger Actions X Series User Manual The output of the analog trigger detection circuit is the Analog Comparison Event signal You can program your DAQ device to perform an action in response to the Analog Comparison Event signal The action can affect the following e Analog input acquisition e Analog output generation e Digital inp
304. ts Corporation 6 27 X Series User Manual Chapter 6 Digital I O Watchdog Timer The watchdog timer is a software configurable feature used to set critical outputs to safe states in the event of a software failure a system crash or any other loss of communication between the application and the X Series device When the watchdog timer is enabled if the X Series device does not receive a watchdog reset software command within the time specified for the watchdog timer the outputs go to a user defined safe state and remain in that state until the watchdog timer is disarmed by the application and new values are written the device is reset or the computer is restarted The expiration signal that indicates an expired watchdog will continue to assert until the watchdog is disarmed After the watchdog timer expires the device ignores any digital writes until the watchdog timer is disarmed Note When the watchdog timer is enabled and the computer enters a fault condition ports that are set to tri state remain tri stated and do not go to user defined safe states You can set the watchdog timer timeout period to specify the amount of time that must elapse before the watchdog timer expires The counter on the watchdog timer is configurable up to 23 1 x 8 ns approximately 34 seconds before it expires A watchdog timer can be set for all DIO and PFI lines Connecting Digital 1 0 Signals The DIO signals PO lt 0 31 gt P1 lt 0 7 gt
305. uadrature encoders or two pulse encoders You can measure angular position with X1 X2 and X4 angular encoders Linear position can be measured with two pulse encoders You can choose to do either a single point on demand position measurement or a buffered sample clock position measurement You must arm a counter to begin position measurements 7 23 X Series User Manual Chapter 7 Counters X Series User Manual Refer to the following sections for more information about the X Series position measurement options e Measurements Using Quadrature Encoders e Measurements Using Two Pulse Encoders e Buffered Sample Clock Position Measurement Measurements Using Quadrature Encoders The counters can perform measurements of quadrature encoders that use X1 X2 or X4 encoding A quadrature encoder can have up to three channels channels A B and Z e X1 Encoding When channel A leads channel B in a quadrature cycle the counter increments When channel B leads channel A in a quadrature cycle the counter decrements The amount of increments and decrements per cycle depends on the type of encoding X1 X2 or X4 Figure 7 18 shows a quadrature cycle and the resulting increments and decrements for X1 encoding When channel A leads channel B the increment occurs on the rising edge of channel A When channel B leads channel A the decrement occurs on the falling edge of channel A Cha M m n eee ene LT Counter V
306. uency measurement where the measurement is made on a continuous repetitive signal The prescaling counter cannot be read therefore you cannot determine how many edges have occurred since the previous rollover Prescaling can be used for event counting provided it is acceptable to have an error of up to seven or one ticks Prescaling can be used when the counter Source is an external signal Prescaling is not available if the counter Source is one of the internal timebases 100MHzTimebase 20MHzTimebase or 100kHzTimebase 7 52 ni com Chapter 7 Counters Synchronization Modes The 32 bit counter counts up or down synchronously with the Source signal The Gate signal and other counter inputs are asynchronous to the Source signal so X Series devices synchronize these signals before presenting them to the internal counter Depending on how you configure your device X Series devices use one of three synchronization methods e 100 MHz Source Mode e External Source Greater than 25 MHz e External or Internal Source Less than 25 MHz 100 MHz Source Mode In 100 MHz source mode the device synchronizes signals on the rising edge of the source and counts on the third rising edge of the source Edges are pipelined so no counts are lost as shown in Figure 7 40 100 MHz Source A A Synchronize Count Figure 7 40 100 MHz Source Mode External Source Greater than 25 MHz With an external s
307. ulse width are measured in terms of a number of active edges of the Source input The initial delay can be applied to only the first trigger or to all triggers using the CO EnableInitalDelayOnRetrigger property The default for a single pulse is True while the default for finite pulse trains is False The counter ignores the Gate input while a pulse generation is in progress After the pulse generation is finished the counter waits for another Start Trigger signal to begin another pulse generation For retriggered pulse generation pause triggers are not allowed since the pause trigger also uses the gate input Figure 7 31 shows a generation of two pulses with a pulse delay of five and a pulse width of three using the rising edge of Source with CO EnableInitalDelayOnRetrigger set to the default True Counter Load Values 43210210 43210210 GATE Start Trigger SOURCE OUT i 5 3 i 5 3 Figure 7 31 Retriggerable Single Pulse Generation with Initial Delay on Retrigger Figure 7 32 shows the same pulse train with CO EnableInitalDelayOnRetrigger set to the default False Counter Load Values 43210210 43210210 GATE _ Start Trigger Fl source JUU UUUUUUUUUUUUUUUUU OUT i 5 3 2 3 Figure 7 32 Retrig
308. unctions e Manages the flow of data between the bus interface and the acquisition generation sub systems analog input analog output digital I O and the counters The digital routing circuitry uses FIFOs if present in each sub system to ensure efficient data movement e Routes timing and control signals The acquisition generation sub systems use these signals to manage acquisitions and generations These signals can come from the following sources Your X Series device Other devices in your system through RTSI User input through the PFI terminals User input through the PXI_STAR terminal e Routes and generates the main clock signals for the X Series device Clock Routing Figure 9 1 shows the clock routing circuitry of an X Series device eri m 10 Mre ek To RTSI lt 0 7 gt MHz Output Selectors Oscillator External N 100 MHz Va RTSI lt 0 7 gt Reference Timebase PXle_CLK100 Clock PLL 20 MHz PXI_STAR a Timebase PFI 100 kHz PXle DSTAR lt A B gt 200 Timebase Figure 9 1 X Series Clock Routing Circuitry National Instruments Corporation 9 1 X Series User Manual Chapter 9 Digital Routing and Clock Generation 100 MHz Timebase 20 MHz Timebase 100 kHz Timebase The 100 MHz Timebase can be used as the timebase for all internal subsystems The 100 MHz
309. upport digital filtering Refer to the PFI Filters section of Chapter 8 PFI for more information 6 16 ni com Chapter 6 Digital 1 0 DO Sample Clock Signal The device uses the DO Sample Clock do SampleClock signal to update the DO terminals with the next sample from the DO waveform generation FIFO You can specify an internal or external source for DO Sample Clock You can also specify whether the DAC update begins on the rising edge or falling edge of DO Sample Clock If the DAQ device receives a DO Sample Clock when the FIFO is empty the DAQ device reports an underflow error to the host software Using an Internal Source One of the following internal signals can drive DO Sample Clock e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock e ATI Sample Clock ai SampleClock e AI Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock e Counter n Sample Clock e Counter n Internal Output e Frequency Output e DI Change Detection output Several other internal signals can be routed to DO Sample Clock through internal routes Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information Using an External Source Use one of the following external signals as the source of DO Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI_STAR e PXIe DSTAR lt A B gt e Analog Comparison Event an analog trigger National Instruments Corporation 6 17 X
310. upport for more information about reducing glitches Counters How do I connect counter signals to my X Series device The Default Counter Timer Pinouts section of Chapter 7 Counters has information about counter signal connections National Instruments Corporation B 3 X Series User Manual Technical Support and Professional Services Visit the following sections of the award winning National Instruments Web site at ni com for technical support and professional services National Instruments Corporation Support Technical support at ni com support includes the following resources Self Help Technical Resources For answers and solutions visit ni com support for software drivers and updates a searchable KnowledgeBase product manuals step by step troubleshooting wizards thousands of example programs tutorials application notes instrument drivers and so on Registered users also receive access to the NI Discussion Forums at ni com forums NI Applications Engineers make sure every question submitted online receives an answer Standard Service Program Membership tThis program entitles members to direct access to NI Applications Engineers via phone and email for one to one technical support as well as exclusive access to on demand training modules via the Services Resource Center NI offers complementary membership for a full year after purchase after which you may renew to continue your benefits
311. us MIO X Series devices 4 44 National Instruments Corporation l 1 digital waveform 6 5 double buffered MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 hardware timed MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 on demand MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 software timed MIO X Series devices 4 10 Simultaneous MIO X Series devices 4 44 AI Convert Clock signal 4 30 AI Convert Clock Timebase signal 4 34 AI FIFO MIO X Series devices 4 2 AI Hold Complete Event signal MIO X Series devices 4 34 Simultaneous MIO X Series devices 4 56 AI Pause Trigger signal MIO X Series devices 4 38 Simultaneous MIO X Series devices 4 59 AI Reference Trigger signal MIO X Series devices 4 37 Simultaneous MIO X Series devices 4 58 AI Sample Clock signal MIO X Series devices 4 28 Simultaneous MIO X Series devices 4 53 AI Sample Clock Timebase signal MIO X Series devices 4 30 Simultaneous MIO X Series devices 4 55 X Series User Manual Index AI Start Trigger signal MIO X Series devices 4 35 Simultaneous MIO X Series devices 4 56 ai ConvertClock 4 30 ai ConvertClockTimebase 4 34 ai HoldCompleteEvent MIO X Series devices 4 34 Simultaneous MIO X Series devices 4 56 ai PauseTrigger MIO X Series devices 4 38 Simultaneous MIO X Series devices 4 59 ai ReferenceTrigger MIO X Series devices 4 37 Simultaneous MIO X Series devices 4 58
312. ut behavior 11 4 ni com Chapter 11 Triggering e Digital output behavior e Counter behavior Routing Analog Comparison Event to an Output Terminal You can route Analog Comparison Event out to any PFI lt 0 15 gt or RTSI lt 0 7 gt terminal Analog Trigger Types Configure the analog trigger circuitry to different triggering modes e Analog Edge Triggering Configure the analog trigger circuitry to detect when the analog signal is below or above a level you specify In below level analog triggering mode shown in Figure 11 4 the trigger is generated when the signal value is less than Level Analog Comparison Event Figure 11 4 Below Level Analog Triggering Mode In above level analog triggering mode shown in Figure 11 5 the trigger is generated when the signal value is greater than Level Analog Comparison Event Figure 11 5 Above Level Analog Triggering Mode National Instruments Corporation 11 5 X Series User Manual Chapter 11 Triggering Analog Edge Triggering with Hysteresis Hysteresis adds a programmable voltage region above or below the trigger level that an input signal must pass through before the DAQ device recognizes a trigger condition and is often used to reduce false triggering due to noise or jitter in the signal Analog Edge Trigger with Hysteresis Rising Slope When using hysteresis with a rising slope you specify a trigger level
313. ut not a reference trigger is sometimes referred to as a posttriggered acquisition Retriggerable Analog Input The AI Start Trigger can also be configured to be retriggerable The timing engine will generate the sample and convert clocks for the configured acquisition in response to each pulse on an AI Start Trigger signal The timing engine ignores the AI Start Trigger signal while the clock generation is in progress After the clock generation is finished the counter waits for another Start Trigger to begin another clock generation Figure 4 31 shows a retriggerable analog input with three AI channels and four samples per trigger Al Start Trigger im ni sample ciock l l A I LL X Series User Manual 4 56 ni com Chapter 4 Analog Input B Note Waveform information from LabVIEW will not reflect the delay between triggers They will be treated as a continuous acquisition with constant tO and dt information Reference triggers are not retriggerable Using a Digital Source To use AI Start Trigger with a digital source specify a source and an edge The source can be any of the following signals e PFI lt 0 15 gt e RTSI lt 0 7 gt e Counter n Internal Output e PXISTAR e PXIe DSTAR lt A B gt The source also can be one of several other internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify wheth
314. various applications Table 7 8 Counter Applications and Counter n Source Application Purpose of Source Terminal Pulse Generation Counter Timebase One Counter Time Measurements Counter Timebase Two Counter Time Measurements Input Terminal Non Buffered Edge Counting Input Terminal Buffered Edge Counting Input Terminal Two Edge Separation Counter Timebase 7 42 ni com Chapter 7 Counters Routing a Signal to Counter n Source Each counter has independent input selectors for the Counter n Source signal Any of the following signals can be routed to the Counter n Source input 100 MHz Timebase e 20 MHz Timebase e 100 kHz Timebase e RTSI lt 0 7 gt e PFI lt 0 15 gt e PXI_CLK10 e PXI _ STAR e PXIe DSTAR lt A B gt e Analog Comparison Event e Change Detection Event In addition TC or Gate from a counter can be routed to a different counter source Some of these options may not be available in some driver software Routing Counter n Source to an Output Terminal You can route Counter n Source out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal All PFIs are set to high impedance at startup Counter n Gate Signal The Counter n Gate signal can perform many different operations depending on the application including starting and stopping the counter and saving the counter contents Routing a Signal to Counter n Gate Each counter has independent input se
315. verything required to occupy one or more slots in a mainframe SCXI and PXI devices are modules A characteristic of a DAC in which the analog output always increases as the values of the digital code input to it increase Pertaining to a radio communication system that operates on more than one channel at the same time The individual channels might contain identical information or they might contain different signals See MIO To assign more than one signal to a channel See also mux Multiplexer A set of semiconductor or electromechanical switches arranged to select one of many inputs to a single output The majority of DAQ cards have a multiplexer on the input which permits the selection of one of many channels at a time A switching device with multiple inputs that sequentially connects each of its inputs to its output typically at high speeds in order to measure several signals with a single analog input channel G 10 ni com NI NI DAQmx NI PGIA non referenced signal sources NRSE 0 offset P PCI Express Glossary National Instruments The latest NI DAQ driver with new VIs functions and development tools for controlling measurement devices The advantages of NI DAQmx over Traditional NI DAQ Legacy include the DAQ Assistant for configuring channels and measurement tasks for your device for use in LabVIEW LabWindows CVI and Measurement Studio increased performance such as faster single point an
316. w to confirm that your device is operating properly The NI DAQ Readme lists which devices ADEs and NI application software are supported by this version of NI DAQ Select Start All Programs National Instruments NI DAQ NI DAQ Readme The NI DAQmx Help contains general information about measurement concepts key NI DAQmx concepts and common applications that are applicable to all programming environments Select Start All Programs National Instruments NI DAQ NI DAQm x Help If you are a new user use the Getting Started with LabVIEW manual to familiarize yourself with the LabVIEW graphical programming environment and the basic LabVIEW features you use to build data acquisition and instrument control applications Open the Getting Started with LabVIEW manual by selecting Start All Programs National Instruments LabVIEW LabVIEW Manuals or by navigating to the labview manuals directory and opening LV_Getting_Started pdf Use the LabVIEW Help available by selecting Help Search the LabVIEW Help in LabVIEW to access information about LabVIEW programming concepts step by step instructions for using LabVIEW and reference information about LabVIEW VIs functions palettes menus and tools Refer to the following locations on the Contents tab of the LabVIEW Help for information about NI DAQmx e Getting Started with Lab VIEW Getting Started with DAQ Includes overview information and a tutorial to learn how to take an NI DAQmx m
317. width measurement latches in data on each edge of a pulse For this measurement the measured signal determines when data is latched in These operations are referred to as implicit timed operations However many of the same measurements can be clocked at an interval with a sample clock These are referred to as sample clocked operations Table 7 1 shows the different options for the different measurements Ai Note All hardware timed single point HWTSP operations are sample clocked X Series User Manual 7 2 ni com Chapter 7 Counters Table 7 1 Counter Timing Measurements Sample Clocked Timing Measurement Implicit Timing Support Support Buffered Edge Count No Yes Buffered Pulse Width Yes Yes Buffered Pulse Yes Yes Buffered Semi Period Yes No Buffered Frequency Yes Yes Buffered Period Yes Yes Buffered Position No Yes Buffered Two Signal Edge Separation Yes Yes Counter Input Applications The following sections list the various counter input applications available on X Series devices Counting Edges Counting Edges Pulse Width Measurement Pulse Measurement Semi Period Measurement Frequency Measurement Period Measurement Position Measurement Two Signal Edge Separation Measurement In edge counting applications the counter counts edges on its Source after the counter is armed You can configure the counter to count rising or falling edges on its Source input You also can contr
318. y Note Pause triggers are only sensitive to the level of the source not the edge Getting Started with Al Applications in Software You can use the MIO X Series device in the following analog input applications e Single point analog input on demand e Finite analog input e Continuous analog input e Hardware timed single point You can perform these applications through DMA or programmed I O data transfer mechanisms Some of the applications also use start reference and pause triggers 3 Note For more information about programming analog input applications and triggers in software refer to the NJ DAQmx Help or the LabVIEW Help X Series User Manual MIO X Series devices use the NI DAQm x driver NI DAQm x includes a collection of programming examples to help you get started developing an application You can modify example code and save it in an application You can use examples to develop a new application or add example code to an existing application To locate LabVIEW LabWindows CVI Measurement Studio Visual Basic and ANSI C examples refer to the KnowledgeBase document Where Can I Find NI DAQmx Examples by going to ni com info and entering the Info Code dagmxexp For additional examples refer to zone ni com 4 40 ni com Chapter 4 Analog Input Analog Input on Simultaneous MIO X Series Devices Figure 4 25 shows the analog input circuitry of the Simultaneous MIO X Series devices
319. y host software e PFI lt 0 15 gt e RTSI lt 0 7 gt e Al Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e AO Start Trigger ao StartTrigger e Counter n Internal Output e DI Start Trigger di StartTrigger e DI Reference Trigger di ReferenceTrigger e Change Detection Event e PXISTAR e PXIe DSTAR lt A B gt The source also can be one of several internal signals on your DAQ device Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help for more information You also can specify whether the waveform generation begins on the rising edge or falling edge of DO Start Trigger Using an Analog Source When you use an analog trigger source the waveform generation begins on the first rising or falling edge of the Analog Comparison Event signal Refer to the Triggering with an Analog Source section of Chapter 11 Triggering for more information Routing DO Start Trigger Signal to an Output Terminal You can route DO Start Trigger out to any PFI lt 0 15 gt RTSI lt 0 7 gt or PXIe DSTARC terminal The output is an active high pulse PFI terminals are configured as inputs by default 6 20 ni com Chapter 6 Digital I O DO Pause Trigger Signal Use the DO Pause Trigger do PauseTrigger signal to mask off samples in a DAQ sequence That is when DO Pause Trigger is active no samples occur DO Pause Trigger does not stop a sample that is in progress The pause does no
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 (3.7MB) 3Q Q-pad RC0738C 8GB Black tablet TP3-Permisos de archivo Ednet 84531 CLORATEX 30 ベーシックな抽出機構とパワフルなスチーマーを備えた普及モデル。 Abridged user`s manual (Canada version) User Manual - Box Design by Pro BC-52K取扱説明書 - タニタ TANITA Amendment No. 2 to MoRTH/CMVR/TAP Copyright © All rights reserved.
Failed to retrieve file