Home
NI 6124/6154 User Manual
Contents
1. Rg ak 16 Bit Al Data ADC 0 r 0 K Ch SAR anne Contre Control 0 Al Convert 0 __ L 7 Rg 16 Bit Al Data ADC 1 p bu SAR gt gt anne 4 cone a Control 1 Al Convert 1 Peau rtan 3A P Rgd ox 16 Bit Al Data ADC 2 R Spartan 3 pM SAR FPGA k Channel Control 2 Al Convert 2 3 3V 12V 5 gt gt RJ 16 Bit Al Data ADC 3 o S Oo R On Channel Sen 2 9 A Control 3 Control 3 Al Convert 3 S E r Temp o S ibrati 4 gt Sensor o Q Calibration Control o z g o Calibration Calibration Convert Clock a Multiplexer PWM Buffer hi Voltage x Reference fal AO Control DAC 0 Al Convert PCle X1 Link 16 Bit AO Data DAC 0 to PCI DACO J Bridge AO Control DAC 1 DAQ STC2 m ASIC Address 16 Bit AO Data DAC 1 PCI Data DAC Port Digital O 8 bo Digital I O DAQ 6202 Bis REUS gt Protection j ASIC A Configure Lightning Digital 1 0 Bug Bel gt EEPROM Figure A 2 NI 6124 Block Diagram NI 6124 Cables and Accessories This section describes some of the cable and accessory options for the NI 6124 For more specific information about these products refer to ni com NI 6124 6154 User Manual A 4 ni com Appendix A Device Specific Information Using BNCs You can connect BNC cables to your DAQ device using BNC accessories such as the BNC 2110 BNC 2120 and BNC 2090A To connect your DAQ device to a
2. Figure 7 3 Single Point On Demand Edge Counting with Pause Trigger 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 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 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 Gate Counter Armed Sample Clock Sample on Rising Edge SOURCE LELTLALELELTLS Counter Value 0 1 2 3 4 5 6 7 i L3 38 Buffer ge Figure 7 4 Buffered Sample Clock Edge Counting National Instruments Corporation 7 3 NI 6124 6154 User Manual Chapter 7 Counters 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 co
3. High threshold Level Hysteresis Hysteresis ory is Then signal must go below low threshold before Analog Comparison Event asserts Analog Comparison Event T T Low threshold Level Figure 11 6 Analog Edge Triggering with Hysteresis Falling Slope Example National Instruments Corporation 11 5 NI 6124 6154 User Manual Chapter 11 Triggering 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 7 demonstrates a trigger that asserts when the signal enters the window Analog Comparison Event Bottom Figure 11 7 Analog Window Triggering Mode Entering Window Analog Trigger Accuracy NI 6124 6154 User Manual NI 6124 Only 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 and resolution of the analog trigger DACs To improve accuracy you can software calibrate the analog trigger circuitry No hardware calibration is provided for the analog trigger ci
4. AI lt 0 3 gt GND Input Analog Input Channels 0 through 3 These pins are routed to the terminal of the respective channel amplifier AO lt 0 1 gt AO GND Output Analog Output Channels 0 through 1 These pins supply the voltage output of analog output channels 0 and 1 AO GND Analog Output Ground The AO voltages and the external reference voltage are referenced to these pins D GND Digital Ground These pins supply the reference for the digital signals at the I O connector and the 5 VDC supply National Instruments Corporation 3 1 NI 6124 6154 User Manual Chapter 3 1 0 Connector Table 3 1 NI 6124 Device Signal Descriptions Continued I O Connector Pin Reference Direction Signal Description P0 0 7 PFI lt 0 7 gt P1 lt 0 7 gt PFI lt 8 15 gt P2 lt 0 7 gt D GND D GND Input or Output Input or Output Digital I O Channels 0 through 7 You can individually configure each signal as an input or output P0 6 and PO 7 can also control the up down signal of Counters 0 and 1 respectively Programmable Function Interface or Digital I O Channels 0 through 7 and Channels 8 through 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
5. Isolation Barrier AO DACO AO FIFO AO Data Digital Isolators AO Sample Clock Figure 5 2 Isolated S Series Device Analog Output Block Diagram National Instruments Corporation 5 1 NI 6124 6154 User Manual Chapter 5 Analog Output The main blocks featured in the S Series analog output circuitry are as follows 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 that allows you to download all the points of a waveform to your board without host computer interaction AO Sample Clock The DAC reads a sample from the FIFO with every cycle of the AO Sample Clock signal and generates the AO voltage For more information refer to the AO Sample Clock Signal section Isolation Barrier and Digital Isolators NI 6154 Only The digital isolators across the isolation barrier provide a ground break between the isolated analog front end and the chassis ground For more information about isolation and digital isolators refer to the NI 6154 Isolation and Digital Isolators section of Appendix A Device Specific Information DAC Digital to analog converters DACs convert digital codes to analog voltages 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 produ
6. Chapter 4 Analog Input 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 or RTSI lt 0 7 gt 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 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 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 pret
7. DO x Direction Control Static DI lt H Weak Pull Down DI Waveform Measurement 9 FIFO DI Sample Clock NN DI Change Detection Figure 6 1 Non Isolated S Series Digital 1 0 Circuitry The DIO terminals are named PO lt 0 7 gt on the 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 Static DIO for Non Isolated Devices NI 6124 Only Each DIO line 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 DO lines are software timed P0 6 and P0 7 on these devices also can control the up down input of general purpose counters 0 and 1 respectively However it is recommended that you use PFI signals to control the up down input of the counters The up down control signals Counter 0 Up Down and Counter 1 Up Down are input only and do not affect the operation of the DIO lines NI 6124 6154 User Manual 6 2 ni com Chapter 6 Digital I O Digital Waveform Triggering for Non Isolated Devices NI 6124 Only NI 6124 devices do not have an independent DI or DO Start Trigger for digital waveform acquisition or generation To trigger a DI or DO operation first select a signal to be the source of DI Sample
8. the info code feedback 2008 National Instruments Corporation All rights reserved Important Information Warranty NI 6124 and NI 6154 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 carefully revi
9. clock 10 1 clock and trigger signals 9 8 trigger signals 10 1 triggers 9 8 PXI Express and PXI 10 1 chassis compatibility 10 1 PXI CLKI10 9 8 PXI STAR filters 9 9 trigger 9 8 Q quadrature encoders 7 14 R real time system integration bus 9 4 reciprocal frequency measurement 7 11 National Instruments Corporation Index reference clock 10 MHz 9 3 external 9 2 related documentation xii retriggerable single pulse generation 7 20 routing clock 9 1 digital 9 1 RTSI 9 4 connector pinout 9 4 filters 9 6 using as outputs 9 5 using terminals as timing input signals 9 6 S S Series devices A 1 specifications xv sample clock edge counting 7 3 sample clock measurement 7 17 self calibration 1 2 semi period measurement 7 7 buffered 7 8 single 7 8 sensors 2 5 signal conditioning 2 5 signal connections analog input 4 6 analog output 5 4 digital I O for isolated devices 6 12 signal descriptions S Series isolated devices NI 6154 3 2 S Series non isolated devices NI 6124 3 1 signal routing RTSI bus 9 4 signal sources 4 7 NI 6124 6154 User Manual Index signals AI Convert Clock 4 16 AI Convert Clock Timebase 4 17 AI Reference Trigger 4 19 AI Sample Clock 4 14 AI Sample Clock Timebase 4 16 AI Start Trigger 4 18 Change Detection Event 6 8 connecting digital I O 6 9 connecting PFI input 8 6 Counter n A 7 28 Counter n Aux 7 28 Coun
10. Differential Connection for Non Referenced Signals on Non Isolated Devices National Instruments Corporation 4 9 NI 6124 6154 User Manual Chapter 4 Analog Input Figure 4 5 shows a bias resistor connected between AI 0 and the floating signal source ground This resistor provides a return path for the bias current A value of 10 kQ to 100 kQ is usually sufficient If you do not use the resistor 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 Figure 4 6 shows how to connect a floating signal source to a channel on an isolated S Series device Isolated S Series Device Isolation Al 0 Barrier Instrumentation i i Floating t Amplifier Signal Digital Source A Isolators Al 0 V Measured Voltage 1 A VY L Al 0 Connections Shown Figure 4 6 Differential Connection for Non Referenced Signals on Isolated Devices DC Coupled You can connect low source impedance and high source impedance DC coupled sources 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
11. With isolation engineers can safely measure a small voltage in the presence of a large common mode signal Some advantages of isolation are as follows Improved rejection Isolation increases the ability of the measurement system to reject common mode voltages Common mode voltage is the signal that is present or common to both the positive and negative input of a measurement device but is not part of the signal to be measured A 12 ni com Appendix A Device Specific Information Improved accuracy Isolation improves measurement accuracy by physically preventing ground loops Ground loops a common source of error and noise are the result of a measurement system having multiple grounds at different potentials Improved safety Isolation creates an insulation barrier so you can make floating measurements while protecting against large transient voltage spikes NI 6154 Specifications Refer to the NI 6154 Specifications for more detailed information about the device National Instruments Corporation A 13 NI 6124 6154 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 s
12. lt 0 15 gt or RTSI 0 7 terminal The polarity of ai HoldCompleteEvent 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 NI 6124 6154 User Manual 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 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 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 0 15 e RTSI lt 0 7 gt e Counter n Internal Output e PXISTAR 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 in version 8 0 or later for more information You also can specify whether the measurement acquisition begins on the rising edge or falling edge of AI Start Trigger 4 18 ni com
13. no samples occur The 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 This signal is not available as an output 5 10 ni com Chapter 5 Analog Output Using a Digital Source To use ao Pause Trigger specify a source and a polarity The source can be an external signal connected to any PFI or RTSI lt 0 6 gt pin The source can also 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 in version 8 0 or later for more information Also 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 For more information refer to the Triggering with an Analog Source section of Chapter 11 Triggering Getting Started with AO Applications in Software You can use the S Series device in the following analog output applications e Single point generation e Finite generation e Continuous generation e Waveform generation You can perform these generations through DMA interrupt or programmed I O data transfer mechanisms Some of the applications also use start triggers and pause triggers 3 Note For more information about programming analog output applications and triggers in software r
14. 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 point of data Hardware Timed Acquisitions With hardware timed acquisitions a digital hardware signal controls the rate of the acquisition This signal can be generated internally on your device or provided externally 4 4 ni com National Instruments Corporation Chapter 4 Analog Input Hardware timed acquisitions have several advantages over software timed acquisitions The time between samples can be much shorter The timing between samples can be deterministic Hardware timed acquisitions can use hardware triggering For more information refer to Chapter 11 Triggering Hardware timed operations can be buffered or non buffered A buffer is a temporary storage in the computer memory where acquired samples are stored Buffered In a buffered acquisition data is moved from the DAQ device s onboard FIFO memory to a PC buffer using DMA or interrupts before it is transferred to ADE memory Buffered acquisitions 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 For more information about DMA and interrupts refer to the Data Transfer Methods section of Chapter 10 Bus Interface One property of buffered I O operations is the s
15. 35 Example Application That Works Incorrectly Duplicate Counting 7 36 Example Application That Prevents Duplicate Count 7 36 When To Use Duplicate Count Prevention esee 7 37 Enabling Duplicate Count Prevention in NI DAQmx 7 37 Synchronization Modes eese eene enne nennen nenne 7 37 80 MBz Source Mode tte tates 7 38 Other Internal Source Mode see 7 39 External Source Mode saecu eeeteme tetendit 7 39 Chapter 8 Programmable Function Interfaces PFI PFI for Non Isolated Devices eedem ee ert erre terne 8 1 PET fot Isolated D vices ederet reet re ev etie ec nh 8 2 Using PFI Terminals as Timing Input Signals eee 8 4 Exporting Timing Output Signals Using PFI Terminals ees 8 4 Using PFI Terminals as Static Digital Inputs and Outputs ees 8 5 Connecting PFI Input Signals essere rennen enne 8 6 PET Filtets re eee Pieri Hrs OO ee PORE e eer 8 6 I Q Protection au aei eR qu e e tee Dae tei e 8 8 Programmable Power Up States eee nnne nnns 8 8 Chapter 9 Digital Routing and Clock Generation Clock Routing eee ert Ue e EN E ERST 9 1 80 MEIz Timebase eter hice iere t Ee ee e NER ENS FUERAT 9 2 20 MHz Timebase 558 n eret erede RA HP osteo de eevee hale oie 9 2 TOO XKHz Fimeb se 5 reuera te eerte e
16. 4 17 AI Hold Complete Event Signal esee 4 18 Al Start Trigger Signal ete t a eI nh te tee Heo rd 4 18 Using a Digital Source ceteras 4 18 Using an Analog Source essere 4 19 Routing AI Start Trigger to an Output Terminal 4 19 Al Reference Trigger Signal ete eis 4 19 Using a Digital Source netten 4 20 Using an Analog Source esee 4 20 Routing AI Reference Trigger Signal to an Output Terminal 4 20 Getting Started with AI Applications in Software sss 4 21 Chapter 5 Analog Output Minimizing Glitches on the Output Signal eee 5 2 AO Data Generation Methods essent eene nenne 5 2 Analog Output Triggering e e e A nennen eene E a rennen 5 4 Connecting Analog Output Signals essere eene 5 4 Waveform Generation Timing Signals sees 5 6 AQ Sample Clock Signal 4 ntt rete ted tete 5 6 Using an Internal Source eene 5 6 Using an External Source esee esee 5 7 Routing AO Sample Clock Signal to an Output Terminal 5 7 NI 6124 6154 User Manual vi ni com Contents Other Timing Requirements eese 5 7 AO Sample Clock Timebase Signal eee 5 8 AO Start Trigger Signal iicet id e e rater Re sce eyed 5 9 Using a Digital Source eire eta 5
17. 9 Using an Analog Source sese 5 10 Routing AO Start Trigger Signal to an Output Terminal 5 10 AO Pause Trigger Signal e ete Re eye ER IRE deer 5 10 Using Digital Source eter rte ee itat 5 11 Using an Analog Source eese 5 11 Getting Started with AO Applications in Software sss 5 11 Chapter 6 Digital 1 0 Digital I O for Non Isolated Devices eese ene 6 1 Static DIO for Non Isolated Devices sese 6 2 Digital Waveform Triggering for Non Isolated Devices 6 3 Digital Waveform Acquisition for Non Isolated Devices 6 3 DI Sample Clock Signal trot 6 4 Digital Waveform Generation for Non Isolated Devices 6 5 DO Sample Clock Signal 4 ripper s 6 5 I O Protection for Non Isolated Devices eee 6 7 Programmable Power Up States for Non Isolated Devices 6 7 DI Change Detection for Non Isolated Devices eese 6 8 DI Change Detection Applications for Non Isolated Devices 6 9 Connecting Digital I O Signals on Non Isolated Devices 6 9 Getting Started with DIO Applications in Software on Non Isolated Devices 6 10 Digital I O for Isolated Devices esee eere 6 11 Static DIO for Isolated Devices 6 11 I O Protection for
18. 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 Compliance with FCC Canada Radio Frequency Interference Regulations Determining FCC Class The Federal Communications Commission FCC has rules to protect wireless communications from interference The FCC places digital electronics into two classes These classes are known as Class A for use in industrial commercial locations only or Class B for use in residential or commercial locations All National Instruments NI pr
19. BNC accessory use one of the following cables SH68 68 EPM shielded cable e SH68 68R1 EP shielded cable with one right angle connector e SH6868 shielded 68 conductor cable e RC68 68 unshielded cable Using Screw Terminals You can connect signals to your DAQ device using a screw terminal accessory such as e CB 68LP CB 68LPR low cost screw terminal block e SCB 68 shielded screw terminal block with breadboard areas e TBX 68 DIN rail mountable screw terminal block To connect your DAQ device to a screw terminal accessory use one of the following cables e SH68 68 EPM shielded cable e SH68 68R1 EP shielded cable with one right angle connector e RC68 68 unshielded cable Using SSR or ER Digital Signal Conditioning SSR and ER series provide per channel digital signal conditioning Custom Cabling Connectors Options The CA 1000 is a versatile connector enclosure system It allows the user to define I O connectors on a per channel basis Internally the system allows for flexible custom wiring configuration If you want to develop your own cable follow these guidelines for best results e Use shielded twisted pair wires for each differential AI pair Connect the shield for each 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 halves of the cable Failure to do
20. Clock or DO Sample Clock Then generate a trigger that initiates pulses on the source signal The method for generating this trigger depends on which signal is the source of DI Sample Clock or DO Sample Clock For example consider the case where you are using AI Sample Clock as the source of DI Sample Clock To initiate pulses on AI Sample Clock and therefore on DI Sample Clock you use AI Start Trigger to trigger the start of an AI operation The AI Start Trigger causes the non isolated DAQ STC2 S Series device to begin generating AI Sample clock pulses which in turn generates DI Sample clock pulses as shown in Figure 6 2 PFI 1 Al Start Trigger AI Sample Clock DI Sample Clock Al Start Trigger initiates Al Sample Clock and DI Sample Clock Figure 6 2 Digital Waveform Triggering Similarly if you are using AO Sample Clock as the source of DI Sample Clock then AO Start Trigger initiates both AO and DI operations If you are using a Counter output as the source of DI Sample Clock the counter s start trigger enables the counter which drives DI Sample Clock If you are using an external signal such as PFI x as the source for DI Sample Clock or DO Sample Clock you must trigger that external signal Digital Waveform Acquisition for Non Isolated Devices NI 6124 Only You can acquire digital waveforms on the Port 0 DIO lines The DI waveform acquisition FIFO sto
21. DIO NI 6124 6154 User Manual Digital to analog Digital to analog converter an electronic device often an integrated circuit that converts a digital number into a corresponding analog voltage or current See data acquisition DAQ 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 or 1394 FireWire port SCXI modules are considered DAQ devices Data acquisition system timing controller an application specific integrated circuit ASIC for the system timing requirements of a general A D and D A system 1 Acquiring and measuring analog or digital electrical signals from sensors transducers and test probes or fixtures 2 Generating analog or digital electrical signals Decibel the unit for expressing a logarithmic measure of the ratio of two signal levels dB 20log10 V1 V2 for signals in volts Decibel carrier level difference referenced to a carrier level c Direct current although the term speaks of current many different types of DC measurements are made including DC Voltage DC current and DC power 1 An instrument or controller you can access as a single entity that controls or monitors real world I O points A device often is connected to a host computer through some type of communication network 2 See DAQ device Digital input Differential
22. O Using an Internal Source To use DO 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 AI Sample Clock ai SampleClock e AT Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock 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 RTSI Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information Using an External Source You can route any of the following signals as DO Sample Clock e PFI lt 0 15 gt e RTSI lt 0 7 gt e PXI STAR e Analog Comparison Event an analog trigger You can generate samples on the rising or falling edge of DO Sample Clock You must ensure that the time between two active edges of DO Sample Clock is not too short If the time is too short the DO waveform generation FIFO is not able to read the next sample fast enough The DAQ device reports an overrun error to the host software Routing DO Sample Clock to an Output Terminal You can route DO Sample Clock out to any PFI terminal The PFI circuitry inverts the polarity of DO Sample Clock before driving the PFI terminal 6 6 ni com Chapter 6 Digital I O 1 0 Protection for Non Isolated Devices NI 6124 Only Each DIO and PFI signal is protected against overvoltage undervoltage
23. Professional Services Declaration of Conformity DoC A DoC is our claim of compliance with the Council of the European Communities using 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 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 section 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 NI 6124 6154 User Manual B 2 ni com Glossary Symbol Prefix Value p pico 10 2 n nano 10 u micro 10 6 m milli 103 k kilo 10 M mega 106 Symbols o Degree I A D AC Greater than Less than Negative of or minus Ohms Per Percent Plus or minus Positive of or plus Amperes the unit of electric current Analog to digital Alternating current National Instruments Corporation G 1 NI 6124 6154 User Manual Glossary ADC ADE
24. Static digital output 3 Note For more information about programming digital I O applications and triggers in software refer to the NI DA Qmx Help or the LabVIEW Help in version 8 0 or later National Instruments Corporation 6 13 NI 6124 6154 User Manual Counters S Series devices have two general purpose 32 bit counter timers and one frequency generator as shown in Figure 7 1 The general purpose counter timers can be used for many measurement and pulse generation applications Input Selection Muxes Counter 0 7 Counter 0 Source Counter 0 Timebase N lt Counter 9 iata Counter 0 Internal Output Counter 0 Aux A Counter 0 HW Arm Counter 0 A Counter 0 TC Counter 0 B Counter 0 Up_Down Counter 0 Z Input Selection Muxes Counter 1 Counter 1 Source Counter 1 Timebase J Counter IGal Counter 0 Internal Output Counter 1 Aux 7 Counter 1 HW Arm 7 Counter 1 A Counter 0 TC Counter 1 B Counter 1 Up Down Counter 1 Z Input Selection Muxes Frequency Generator Frequency Output Timebase Freq Out Figure 7 1 S Series Counters National Instruments Corporation 7 1 NI 6124 6154 User Manual Chapter 7 Counters The counters have seven 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 Counter Input Applicat
25. The amount of time required for a voltage to reach its final value within specified limits The manipulation of signals to prepare them for digitizing Source signal A measure of the amount of noise seen by an analog circuit or an ADC when the analog inputs are grounded NI 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 The highest value of a counter Gate hold time Gate setup time NI 6124 6154 User Manual Glossary THD THD N thermocouple tore t out tp transducer V V Vec Vem VDC VI virtual instrument NI 6124 6154 User Manual Gate pulse width Total harmonic distortion the ratio of the total rms signal due to harmonic distortion to the overall rms signal in dB or percent Signal to THD plus noise the ratio in decibels of the overall rms signal to the rms signal of harmonic distortion plus noise introduced A temperature sensor created by joining two dissimilar metals The junction produces a small voltage as a function of the temperature An offset delayed pulse the offset is t nanoseconds from the falling edge of the AI CONV CLK signal Output delay time Period of a pulse train See sensor Source clock period Source pulse width Transistor transistor logic a digital circuit composed of bipolar transistors wired
26. Using an External Source You can use a signal connected to any PFI or RTSI lt 0 6 gt pin as the source of AO Sample Clock Figure 5 6 shows the timing requirements of the AO Sample Clock source ty al Rising Edge Polarity Falling Edge Polarity l tw 10 ns minimum Figure 5 6 AO Sample Clock Timing Requirements Routing AO Sample Clock Signal to an Output Terminal You can route ao SampleClock as an active low signal out to any PFI lt 0 15 gt or RTSI lt 0 7 gt terminal Other Timing Requirements A counter on your device internally generates AO Sample Clock unless you select some external source The AO Start Trigger signal starts this counter It is stopped automatically by hardware after a finite acquisition completes or manually through software When using an internally generated AO Sample Clock in NI DAQmx you can also specify a configurable delay from the AO Start Trigger to the first AO Sample Clock pulse By default this delay is two ticks of the AO Sample Clock Timebase signal National Instruments Corporation 5 7 NI 6124 6154 User Manual Chapter 5 Analog Output Figure 5 7 shows the relationship of the AO Sample Clock signal to the AO Start Trigger signal AO Sample Clock Timebase AO Start Trigger AO Sample Clock Delay From Start Trigger Figure 5 7 AO Sample Clock and AO Start Trigger AO Sample Clock Ti
27. eese 7 27 Routing Counter n Gate to an Output Terminal 7 27 Counter 7i AUX Signalaren e ee err tet e eee dees tees 7 28 Routing a Signal to Counter n Aux sese 7 28 Counter n A Counter n B and Counter n Z Signals ssss 7 28 Routing Signals to A B and Z Counter Inputs 7 28 Routing Counter n Z Signal to an Output Terminal 7 28 Counter n Up Down Signali issi risten ieissar re iiia 7 29 Counter n HW Arm Signal esee 7 29 Routing Signals to Counter n HW Arm Input se 7 29 Counter n Internal Output and Counter n TC Signals ss 7 29 Routing Counter n Internal Output to an Output Terminal 7 30 NI 6124 6154 User Manual Viii ni com Contents Frequency Output Signal seen 7 30 Routing Frequency Output to a Terminal esee 7 30 Default Counter Timer Pinouts essere eene rennen enne 7 30 Counter Trgeenmng uoo OP C e eui e ede 7 31 Other Counter Features 5 e eet D ee aie PE ede RR ET Po Reip eus 7 32 Cascading Counters rudi dg BD Rer pes 7 32 Counter Filters zii mn e ERE EHE FERME I ME Pe EIAS 7 32 Prescaling noii den eae Oo RP o oda at dt e pis 7 33 Duplicate Count Prevention iis ereo a E iE AEA 7 34 Example Application That Works Correctly No Duplicate Counting 7
28. hardware 1 2 NI DAQmx 1 1 other software 1 1 instrument drivers NI resources B 1 instrumentation amplifier 4 2 interrupt request IRQ 10 2 IRQ 10 2 isolation NI 6154 A 11 digital isolation A 12 K KnowledgeBase B 1 L LabVIEW documentation xii LabWindows CVI documentation xiii Measurement Studio documentation xiii measurements buffered period 7 7 buffered pulse width 7 5 buffered semi period 7 8 buffered two signal edge separation 7 18 choosing frequency 7 12 frequency 7 9 period 7 6 position 7 14 pulse width 7 4 semi period 7 7 single period 7 6 NI 6124 6154 User Manual Index single pulse width 7 4 single semi period 7 8 single two signal edge separation 7 18 two signal edge separation 7 17 using quadrature encoders 7 14 using two pulse encoders 7 16 measuring high frequency with two counters 7 10 large range of frequencies using two counters 7 11 low frequency with one counter 7 9 averaged 7 9 minimizing glitches on the output signal 5 2 MITE and DAQ PnP 10 1 multiple device synchronization 9 3 mux 4 2 National Instruments support and services B 1 NET languages documentation xiv NI 6124 A 4 analog output A 1 block diagram A 4 cables and accessories A 4 features A 1 I O connector pinout A 2 specifications A 6 NI 6154 A 10 block diagram A 10 cables and accessories A 10 digital I O 6 11 features A 7 I O connector pinout A 8 isol
29. in a certain manner A typical medium speed digital technology Nominal TTL logic levels are 0 and 5 V Volts Nominal 5 V power supply provided by the PC motherboard Common mode noise and ground potential Volts direct current 1 A combination of hardware and or software elements typically used with a PC that has the functionality of a classic stand alone instrument 2 A LabVIEW software module VI which consists of a front panel user interface and a block diagram program Volts input high G 10 ni com Vor Vout V ms Vs virtual channel Volts input low Volts in Measured voltage Volts output high Volts output low Volts out Volts root mean square Ground referenced signal source See channel National Instruments Corporation G 11 Glossary NI 6124 6154 User Manual Index Numerics 10 MHz reference clock 9 3 100 kHz Timebase 9 2 20 MHz Timebase 9 2 80 MHz source mode 7 38 80 MHz Timebase 9 2 A A D converter 4 2 AC coupling connections 4 9 accessories field wiring considerations 4 11 I O connector 3 1 NI 6124 A 4 NI 6154 A 10 acquisitions digital waveform 6 3 AI Convert Clock signal 4 16 AI Convert Clock Timebase signal 4 17 AI Reference Trigger signal 4 19 AI Sample Clock signal 4 14 AI Sample Clock Timebase signal 4 16 AI Start Trigger signal 4 18 ai ConvertClock 4 16 ai ConvertClockTimebase 4 17 ai ReferenceTrigger 4 19 ai SampleClock
30. 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 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 80MHzTimebase 20MHzTimebase or 100kHzTimebase Duplicate Count Prevention NI 6124 6154 User Manual Duplicate count prevention or synchronous counting mode ensures that a counter returns correct data in applications that use a slow or non periodic external source Duplicate count prevention applies only to buffered counter applications such as measuring frequency or period In such buffered applications the counter should store the number of times an external Source pulses between rising edges on the Gate signal 7 34 ni com Chapter 7 Counters Example Application That Works Correctly No Duplicate Counting Figure 7 32 shows an external buffered signal as the period measurement Source Rising Edge of Gate Counter detects rising edge of Gate on the next rising edge of Source Gate Source Counter Value 6 X7 X1 X2 X1 Buffer S 7 2 j 7 Figure 7 32 Duplicate Count Prevention Examp
31. mode an analog input mode consisting of two terminals both of which are isolated from computer ground whose difference is measured Digital input output G 4 ni com DIP DMA DNL DO driver E earth ground EEPROM ESD FIFO floating signal sources National Instruments Corporation G 5 Glossary Dual inline package 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 Differential nonlinearity a measure in least significant bit of the worst case deviation of code widths from their ideal value of 1 LSB Digital output Software unique to the device or type of device and includes the set of commands the device accepts A direct electrical connection to the earth which provides a reference voltage level called zero potential or ground potential against which all other voltages in a system are established and measured Also referred to as building ground Electrically erasable programmable read only memory ROM that can be erased with an electrical signal and reprogrammed Electrostatic Discharge a high voltage low current discharge of static electricity that can damage sensitive electronic components Electrostatic discharge voltage can easily range from 1 000 to 10 000 V Farad a measurement unit of c
32. n Z signal 7 28 counter signals Counter n A 7 28 Counter n Aux 7 28 Counter n B 7 28 Counter n Gate 7 27 Counter n HW Arm 7 29 Counter n Internal Output 7 29 Counter n Source 7 26 Counter n TC 7 29 Counter n Up_Down 7 29 FREQ OUT 7 30 Frequency Output 7 30 counters 7 1 cascading 7 32 connecting terminals 7 30 duplicate count prevention 7 34 edge counting 7 2 filters 7 32 generation 7 19 input applications 7 2 other features 7 32 output applications 7 19 prescaling 7 33 pulse train generation 7 21 retriggerable single pulse generation 7 20 simple pulse generation 7 19 single pulse generation 7 19 single pulse generation with start trigger 7 20 synchronization modes 7 37 timing signals 7 25 triggering 7 31 counting edges 7 2 National Instruments Corporation I 3 Index D DAC FIFO 5 2 DACSs 5 2 DAQ hardware for isolated devices 2 3 hardware for non isolated devices 2 2 system overview 2 1 DAQ PnP 10 1 DAQ STC2 2 3 data generation methods 5 2 data transfer methods changing 10 2 DC coupling connections 4 9 Declaration of Conformity NI resources B 2 default counter terminals 7 30 NI DAQmx counter timer pins 7 30 pins 7 30 device multiple synchronization 9 3 pinouts 1 3 specifications 1 3 DI change detection 6 8 DI Sample Clock signal 6 4 di SampleClock 6 4 diagnostic tools NI resources B 1 DIFF mode about 4 2 connections for ground referenced signal
33. output triggering refer to Chapter 5 Analog Output For more information about counter triggering refer to Chapter 7 Counters 3 Note NI 6154 Only NI 6154 devices do not support analog triggering For information about the triggering capabilities of your device 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 input PFIs or RTSI lt 0 6 gt 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 National Instruments Corporation 11 1 NI 6124 6154 User Manual Chapter 11 Triggering Figure 11 1 shows a falling edge trigger 5V Digital Trigger 0v A Falling edge initiates acquisition Figure 11 1 Falling Edge Trigger You can also 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 acquisitions e analog output generation counter behavior Triggering with an Analog Source NI 6124 Only Some S Series devices can generate a trigger on an analog signal Figure 11 2 shows the analog trigger circuitry Analog Compa
34. propagated to the rest of the circuit The value of N depends on the filter setting refer to Table 9 3 Table 9 3 Filters N Filter Clocks Pulse Width Pulse Width Needed to Guaranteed to Guaranteed to Filter Setting Pass Signal Pass Filter Not Pass Filter 125 ns 5 125 ns 100 ns 6 425 us 257 6 425 us 6 400 us 2 56 ms 101 800 2 56 ms 2 54 ms Disabled National Instruments Corporation 9 9 NI 6124 6154 User Manual Chapter 9 Digital Routing and Clock Generation The filter setting for each input can be configured independently On power up the filters are disabled Figure 9 4 shows an example of a low to high transition on an input that has its filter set to 125 ns N 5 RTSI PFI or PXI STAR Terminal Filtered input goes i high when terminal Filter Clock 1 12 3 4 12 3 4 5 is sampled high on 40 MHz five consecutive filter clocks Filtered Input Figure 9 4 Filter Example Enabling filters introduces jitter on the input signal For the 125 ns and 6 425 us filter settings the jitter is up to 25 ns On the 2 56 ms setting the jitter is up to 10 025 us When a PFI input is routed directly to RTSI or a RTSI input is routed directly to PFI the S Series device does not use the filtered version of the input signal Refer to the KnowledgeBase document Digita
35. so results in noise coupling into the analog signals from transient digital signals National Instruments Corporation A 5 NI 6124 6154 User Manual Appendix A Device Specific Information Mating connectors and a backshell kit for making custom 68 pin cables are available from NI NI recommends that you use one of the following connectors with the I O connector on your device Honda 68 position solder cup female connector e Honda backshell e AMP VHDCI connector 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 NI 6124 Specifications NI 6124 6154 User Manual Refer to the NI 6124 Specifications for more detailed information about the device A 6 ni com Appendix A Device Specific Information NI 6154 The NI 6154 is an isolated Plug and Play multifunction analog digital and timing I O device for PCI bus computers The NI 6154 features Four differential 16 bit analog inputs e Four 16 bit analog output channels e Ten lines of DIO 6 DI and 4 DO e solation for each AI and AO channel from the chassis and from one another e Bank isolation for DIO from the chassis Because the NI 6154 has no DIP switches jumpers or potentiometers it can be easily calibrated and configured in software NI 6154 Analog Output The NI 6154 suppli
36. sources 4 7 connections for non referenced or floating signal sources 4 9 minimizing drift 4 12 differential connections for ground referenced signal sources 4 7 4 11 for non referenced or floating signal sources 4 0 digital isolation NI 6154 A 12 NI 6124 6154 User Manual Index triggering 11 1 waveform acquisition 6 3 waveform generation 6 5 digital I O 6 1 block diagram 6 2 circuitry 6 2 connecting signals 6 9 DI change detection 6 8 digital waveform generation 6 5 getting started with applications in software 6 10 I O protection 6 7 programmable power up states 6 7 static DIO 6 2 waveform acquisition 6 3 waveform triggering 6 3 digital I O for isolated devices connecting signals 6 9 6 12 I O protection 6 12 software 6 13 static DIO 6 11 digital routing 9 1 digital signals Change Detection Event 6 8 connecting 6 9 DI Sample Clock 6 4 DO Sample Clock 6 5 digital waveform acquisition 6 3 generation 6 5 direct memory access DMA 10 2 DMA 10 2 DO Sample Clock signal 6 5 do SampleClock 6 5 documentation conventions used in manual xi NI resources B 1 related documentation xii drivers NI resources B 1 duplicate count prevention 7 34 enabling in NI DAQmx 7 37 NI 6124 6154 User Manual l 4 example 7 35 prevention example 7 36 E edge counting 7 2 buffered 7 3 on demand 7 2 sample clock 7 3 single point 7 2 edge separation measurement buffered two s
37. 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 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 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 Field Wiring Considerations Environmental noise can seriously affect the measurement accuracy of the S 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 National Instruments Corporation 4 11 NI 6124 6154 User Manual Chapter 4 Analog Input Minimize noise pickup and maximize measuremen
38. the frequency of F1 is given by F1 F2 N J Choosing a Method for Measuring Frequency The best method to measure frequency depends on several 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 7 12 ni com Chapter 7 Counters Method 1 uses only one counter It is a good method for many applications However the accuracy of the measurement decreases as the frequency increases Consider a frequency measurement on a 50 kHz signal using an 80 MHz Timebase This frequency corresponds to 1600 cycles of the 80 MHz Timebase Your measurement may return 1600 1 cycles depending on the phase of the signal with respect to the timebase As your frequency becomes larger this error of 1 cycle becomes more significant Table 7 1 illustrates this point Table 7 1 Frequency Measurement Method 1 Task Equation Example 1 Example 2 Actual Frequency to Measure Fi 50 kHz 5 MHz Timebase Frequency Ft 80 MHz 80 MHz Actual Number of Timebase Ft F1 1600 16 Periods Worst Case Measured Number Ft F1 1 1599 15 of Timebase Periods Measured Frequency Ft F1 Ft F1 50 031 kHz 5 33 MHz Error Ft F1 Ft F1 F1 31 Hz 333 kHz Error Ft Ft F1 1 0 06 6 67 National Instruments Corporation Method 1b measuring K periods of F1 improves the accuracy of the measurement A disadvant
39. 0 0 CTR 0 GATE 32 PFI 1 PO 1 CTR 0 AUX 33 PFI 2 P0 2 CTR 0 OUT 17 PFI 6 P1 0 CTROA 13 PFI 0 P0 0 CTROZ 32 PFI 1 PO 1 A 8 ni com Appendix A Device Specific Information Table A 2 NI 6154 Device Default NI DAQmx Counter Timer Pins Continued Counter Timer Signal Default Pin Number Name Port CTROB 33 PFI 2 P0 2 CTR 1 SRC 15 PFI 3 P0 3 CTR 1 GATE 34 PFI 4 P0 4 CTR 1 AUX 35 PFI 5 P0 5 CTR 1 OUT 36 PFI 7 P1 1 CTRIA 15 PFI 3 P0 3 CTRIZ 34 PFI 4 P0 4 CTR1B 35 PFI 5 P0 5 AA Note For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later For a detailed description of each signal refer to the NI 6154 I O Connector Signal Descriptions section of Chapter 3 I O Connector National Instruments Corporation A 9 NI 6124 6154 User Manual Appendix A Device Specific Information NI 6154 Block Diagram Figure A 4 shows the NI 6154 block diagram CAL Circuit FPGA gt DMA Trigger DAQ Interrupt Interface STC2 interface 1 Counter 1 Analog Analog Output Input Bus Timing 1 Timing In
40. 0 MHz Timebase Other Internal Source Measurement 100 kHz Timebase or PXI_CLK10 No All Except Position Any Other Signal External Source Measurement such as PFI or RTSI NI 6124 6154 User Manual 80 MHz Source Mode In 80 MHz source mode the device synchronizes signals on the rising edge of the source and counts on the following rising edge of the source as shown in Figure 7 35 Source A Synchronize Count Figure 7 35 80 MHz Source Mode ni com Chapter 7 Counters Other Internal Source Mode In other internal source mode the device synchronizes signals on the falling edge of the source and counts on the following rising edge of the source as shown in Figure 7 36 Source tt Synchronize Count Figure 7 36 Other Internal Source Mode External Source Mode In external source mode 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 37 A Source Synchronize Delayed Source A Count Figure 7 37 External Source Mode National Instruments Corporation 7 39 NI 6124 6154 User Manual Programmable Function Interfaces PFI Refer to one of the following sections depending on your device e PFI fo
41. 4 14 ai SampleClockTimebase 4 16 ai StartTrigger 4 18 analog edge triggering 11 3 with hysteresis 11 4 analog input circuitry 4 2 data acquisition methods 4 4 fundamentals 4 1 overview 4 1 National Instruments Corporation signals AI Convert Clock 4 16 AI Convert Clock Timebase 4 17 AI Reference Trigger 4 19 AI Sample Clock 4 14 AI Sample Clock Timebase 4 16 AI Start Trigger 4 18 connecting 4 6 terminal configuration 4 2 timing signals 4 13 timing summary 4 13 triggering 4 6 analog output circuitry 5 2 connecting signals 5 4 data generation methods 5 2 fundamentals 5 1 minimizing glitches 5 2 NI 6124 A 1 NI 6154 A 7 overview 5 1 triggering 5 4 analog output signals AO Pause Trigger 5 10 AO Sample Clock 5 6 AO Sample Clock Timebase 5 8 AO Start Trigger 5 9 analog triggering about 11 2 accuracy 11 6 types 11 3 analog window triggering 11 6 ANSI C documentation xiv AO Pause Trigger signal 5 10 AO Sample Clock signal 5 6 AO Sample Clock Timebase signal 5 8 AO Start Trigger signal 5 9 NI 6124 6154 User Manual Index applications counter input 7 2 counter output 7 19 edge counting 7 2 arm start trigger 7 31 block diagram NI 6124 A 4 NI 6154 A 10 PFI input circuitry 8 3 PFI output circuitry 8 3 buffered edge counting 7 3 period measurement 7 7 position measurement 7 17 pulse width measurement 7 5 semi period measurement 7 8 two signal edge separa
42. 425 us filter settings the jitter is up to 25 ns On the 2 56 ms setting the jitter is up to 10 025 us When a PFI input is routed directly to RTSI or a RTSI input is routed directly to PFI the s Series device does not use the filtered version of the input signal Refer to the KnowledgeBase document Digital Filtering with M Series and CompactDAQ for more information about digital filters and counters To access this KnowledgeBase go to ni com info and enter the info code rddfms NI 6124 6154 User Manual Chapter 8 Programmable Function Interfaces 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 If you configure a PFI or DIO line as an output do not connect it to any external signal source ground or power supply If you 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 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 Treat the DAQ device as you would treat any static sensi
43. 6154 User Manual 6 10 ni com Chapter 6 Digital I O Digital 1 0 for Isolated Devices NI 6154 Only S Series isolated devices contain ten lines of unidirectional DIO signals The digital I O port is comprised of six digital inputs and four digital outputs all bank isolated Each digital line has the functionality of a PFI line Input PFI lines can be used to input trigger signals to the different function modules of the DAQ STC2 ASIC The PFI pins also can be used as static digital inputs when not used to input triggers Output PFI lines can export internal signals generated in any internal function module as well as signals present in the RTSI bus The PFI pins also can be used as static digital outputs when not used as trigger lines The voltage input and output levels and the current drive levels of the DIO lines are listed in the M 6154 Specifications Figure 6 5 shows the circuitry of one bank isolated DIO line Isolation Barrier PFI q __ I Static DI m 8 Sew ee cope Digital PFI Isolators 8 Static DO 7 m Q Figure 6 5 Isolated S Series Devices Digital 1 0 Block Diagram Static DIO for Isolated Devices NI 6154 Only Isolated devices have unidirectional digital lines that are either static digital inputs DI or static digital outputs DO You can use DI and DO lines to monitor or control digital signals All samples of static DI lines and updates of DO lines are s
44. 9 gt P1 lt 0 3 gt are referenced to D GND PFI lt 0 5 gt P0 lt 0 5 gt are inputs and PFI lt 6 9 gt P1 lt 0 3 gt are outputs Figure 6 6 shows digital inputs PFI lt 0 5 gt P0 lt 0 5 gt and digital outputs PFI lt 6 9 gt P1 lt 0 3 gt 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 Figure 6 6 NI 6124 6154 User Manual 6 12 ni com Chapter 6 Digital I O Barrier A Isolation VW PFI lt 6 9 gt P1 lt 0 3 gt o a o 4 E eee eae ee Digital o Isolators TTL Signal PFI lt 0 5 gt P0 lt 0 5 gt TER dit o gt T T Switch 1 i xi D GND l O Connector Isolated S Series Device Figure 6 6 Isolated S Series Device Digital 1 0 Signal Connections N Caution Exceeding the maximum input voltage ratings which are listed in the NJ 6154 Specifications 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 on Isolated Devices NI 6154 Only You can use isolated S Series devices in the following digital I O applications e Static digital input e
45. Al aliasing AO ASIC bipolar building ground C C CalDAC NI 6124 6154 User Manual Analog to digital converter an electronic device often an integrated circuit that converts an analog voltage to a digital number Application Development Environment a software environment incorporating the development debug and analysis tools for software development LabVIEW Measurement Studio and Visual Studio are examples 1 Analog input 2 Analog input channel signal The consequence of sampling that causes signals with frequencies higher than half the sampling frequency to appear as lower frequency components in a frequency spectrum Analog output Application Specific Integrated Circuit a proprietary semiconductor component designed and manufactured to perform a set of specific functions A signal range that includes both positive and negative values for example 5 to 5 V See earth ground Celsius Calibration DAC G 2 ni com channel chassis ground cm CMOS CMRR CompactPCI correlated DIO counter timer coupling CTR Glossary 1 Physical a terminal or pin at which you can measure or generate an analog or digital signal A single physical channel can include more than one terminal as in the case of a differential analog input channel or a digital port of eight lines The name used for a counter physical channel is an exception because that physical channel name is
46. DAQ S Series NI 6124 6154 User Manual DAQ STC2 S Series Simultaneous Sampling Multifunction Input Output Devices August 2008 lt 7 NATIONAL 372613A 01 ANiNsrRUMENTS 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 3390150 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 com info and enter
47. EW Getting Started with DAQ Includes overview information and a tutorial to learn how to take an NI DAQmx measurement in LabVIEW using the DAQ Assistant Xii ni com About This Manual e VI and Function Reference Measurement I O VIs and Functions Describes the LabVIEW NI DAQmx VIs and properties 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 LabWindows CVI The Data Acquisition book of the LabWindows CVI Help contains measurement concepts for NI DAQmx This book also 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 The NI DAQmx 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 NET You can generate the configuration code based on your task or channel in Measureme
48. Find Examples Measurement Studio Visual Basic and ANSI C examples are in the following directories e NI DAQmx examples for Measurement Studio supported languages are in the following directories MeasurementStudioNVCNETN Examples NNIDaq MeasurementStudio DotNET Examples NIDaq NI DAQmx examples for ANSI C are in the NI DAQ Examples DAQmx ANSI C Dev directory For additional examples refer to zone ni com 2 6 ni com 1 0 Connector This chapter contains information about the S Series I O connector Refer to one of the following sections depending on your device e NI 6124 I O Connector Signal Descriptions e NI 6154 I O Connector Signal Descriptions Refer to Appendix A Device Specific Information for the I O connector pinout for your device NI 6124 1 0 Connector Signal Descriptions NI 6124 Only Table 3 1 describes the signals found on the NI 6124 I O connector For more information about these signals refer to the NI 6124 Specifications Table 3 1 NI 6124 Device Signal Descriptions I O Connector Pin Reference Direction Signal Description AI lt 0 3 gt GND Analog Input Channels 0 through 3 Ground These pins are the bias current return point for differential measurements AI lt 0 3 gt AI lt 0 3 gt GND Input Analog Input Channels 0 through 3 These pins are routed to the terminal of the respective channel amplifier AI 0 3
49. I 6124 Only Refer to the PXI CLKIO PXI Triggers PXI STAR Trigger and PXI STAR Filters sections of Chapter 9 Digital Routing and Clock Generation for more information about PXI clock and trigger signals NI 6124 Only NI PXI Express S Series devices can be installed in any PXI Express slot or PXI hybrid slots in PXI Express chassis PXI specifications are developed by the PXI System Alliance www pxisa org National Instruments Corporation 10 1 NI 6124 6154 User Manual Chapter 10 Bus Interface Data Transfer Methods There are three primary ways to transfer data across the PCI bus are as follows 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 National Instruments uses DMA hardware and software technology to achieve high throughput rates and to increase system utilization DMA is the default method of data transfer for DAQ devices that support it Interrupt Request IRQ IRQ transfers rely on the CPU to service data transfer requests The device notifies the CPU when it is ready to transfer data The data transfer speed is tightly coupled to the rate at which the CPU can service the interrupt requests If you are using interrupts to acquire data at a rate faster than the rate the CPU can service the interrupts your systems may start to freeze e Programmed I O Pro
50. IP1 5 PFI 15 P2 7 39 5 PFI 6 P1 6 PFI 7 P1 7 38 4 D GND PFI 8 P2 0 37 3 PFI 9 P2 1 D GND 36 2 PFI 12 P2 4 D GND 35 1 PFI 14 P2 6 NC No Connect Figure A 1 NI 6124 Pinout NI 6124 6154 User Manual A 2 ni com Appendix A Device Specific Information Table A 1 Default NI DAQmx Counter Timer Pins Counter Timer Signal Default Pin Number 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 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 CTR1A 42 PFI 3 CTR1Z 4 PFI 4 CTR 1B 46 PFI 11 FREQ OUT 1 PFI 14 3 Note For more information about default NI DAQmx counter inputs refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later For a detailed description of each signal refer to the NI 6124 I O Connector Signal Descriptions section of Chapter 3 I O Connector National Instruments Corporation A 3 NI 6124 6154 User Manual Appendix A Device Specific Information NI 6124 Block Diagram Figure A 2 shows the NI 6124 block diagram
51. Isolated Devices seem 6 12 Connecting Digital I O Signals on Isolated Devices sss 6 12 Getting Started with DIO Applications in Software on Isolated Devices 6 13 Chapter 7 Counters Counter Input Applications ninan nennen enne ren emen 7 2 Counting Edges i esae een T ane te aN 7 2 Single Point On Demand Edge Counting sess 7 2 Buffered Sample Clock Edge Counting sese 7 3 Controlling the Direction of Counting eese 7 4 Pulse Width Measurement esses eene 7 4 Single Pulse Width Measurement sees 7 4 Buffered Pulse Width Measurement eee 7 5 National Instruments Corporation Vii NI 6124 6154 User Manual Contents Period Measurement sse 2s00 5 nova ai aE E R 7 6 Single Period Measurement essere 7 6 Buffered Period Measurement seen 7 7 Semi Period Measurement ene eise re en e Rr tse aie 7 1 Single Semi Period Measurement see 7 8 Buffered Semi Period Measurement esee 7 8 Frequency Measurement esses eene nenne nennen eere 7 9 Choosing a Method for Measuring Frequency sss 7 12 Position Measurement ioien ea peace DI d ede e t redet 7 14 Measurements Using Quadrature Encoders 7 14 Measureme
52. Isolators Gan ai Voltage T Mode Noise and Ground Potential L l O Connector Al 0 Connections Shown Figure 4 4 Differential Connection for Ground Referenced Signals on Isolated Devices NI 6124 6154 User Manual 4 8 ni com 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 these figures 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 Non Referenced or Floating Signal Sources Figure 4 5 shows how to connect a floating signal source to a channel on a non isolated S Series device Non Isolated S Series Device Al 0 O Instrumentation Floating Amplifier Signal v Source Al 0 Measured Bias Voltage Current Return Paths Bias Resistor AI 0 GND 1 O Connector L Al 0 Connections Shown Figure 4 5
53. S 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 S Series analog input circuitry are as follows Mux By default the mux is set to route AI signals to the analog front end When you calibrate your device the state of the mux switches You can manually switch the state of the mux to measure AI GND Instrumentation Amplifier The instrumentation amplifier can amplify or attenuate an AI signal to ensure that you get the maximum resolution of the ADC Some S Series devices provide programmable instrumentation amplifiers that allow you to select the input range Analog Trigger NI 6124 Only For information about the trigger circuitry of S Series devices refer to the Analog Input Triggering section Filter The filter on these S Series devices minimizes high frequency noise and some attenuating signals by 3 dB at 2 MHz ADC The analog to digital converter ADC digitizes the AI signal by converting the analog voltage into a digital number AI Timing Signals For information about the analog input timing signals available on S Series devices refer to the Analog Input Timing Signals section Isolation Barrier and Digital Isolators NI 6154 Only The digital isolators across the isolation barrier provide a ground break between the isolated analog front end and the chassis ground For more i
54. Source eseenessessseesesereesstseesesstnseseunenossennreresesreneeneneesessere 11 2 Amalog Input Channel 3 Aie ere E eU Rte 11 3 Analog Tre ser A CONS sive eae Dei SE On OE EC FUERON 11 3 Analog LIrigger Types ue ect tea ade reed peteret 11 3 Analog Ere serv ACCULACY e Ret et Pee re te teta tees 11 6 Appendix A Device Specific Information Appendix B Technical Support and Professional Services Glossary Index NI 6124 6154 User Manual X ni com About This Manual Conventions The NI 6124 6154 User Manual contains information about using the National Instruments S Series NI 6124 and NI 6154 data acquisition DAQ devices with NI DAQmx 8 8 and later lt gt bold italic monospace Platform The following conventions appear 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 Safet
55. The frequency of F1 is the inverse of the period Figure 7 10 illustrates this method 4 Interval Measured F1 F1 4 Gate 1 2 3 ke ids N Ft Source Ft 4 4 Single Period Period of F1 Measurement Ft Frequency of F1 Ba National Instruments Corporation Figure 7 10 Method 1 Method 1b Measure Low Frequency with One Counter Averaged In this method you measure several periods of your signal using a known timebase This method is good for low to medium frequency signals You can route the signal to measure F1 to the Gate of a counter You can route a known timebase Ft to the Source of the counter The known timebase can be 80MHzTimebase For signals that might be slower than 0 02 Hz use a slower known timebase 7 9 NI 6124 6154 User Manual Chapter 7 NI 6124 6154 User Manual Counters You can configure the counter to make K 1 buffered period measurements Recall that the first period measurement in the buffer should be discarded Average the remaining K period measurements to determine the average period of F1 The frequency of F1 is the inverse of the average period Figure 7 11 illustrates this method Fic piis a LILI U uu Ep Source 12 No ss dus NR Ft Intervals Measured Buffered Period Measurement N No Nx 1 Average Period of F1 x ee K Ft K x Ft Frequen
56. Timing and Triggering in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information iyi Note NI 6154 Only The NI 6154 does not support hardware analog triggering Analog Trigger Types NI 6124 Only Configure the analog trigger circuitry to different triggering modes Analog Edge Triggering Configure the analog trigger circuitry to detect when the analog signal is below or above a level you specify National Instruments Corporation 11 3 NI 6124 6154 User Manual Chapter 11 Triggering NI 6124 6154 User Manual In below level analog triggering mode shown in Figure 11 3 the trigger is generated when the signal value is less than Level Analog Comparison Event Figure 11 3 Below Level Analog Triggering Mode In above level analog triggering mode shown in Figure 11 4 the trigger is generated when the signal value is greater than Level Analog Comparison Event Figure 11 4 Above Level Analog Triggering Mode 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 spec
57. UT RE Figure 7 23 Single Pulse Generation with Start Trigger Retriggerable Single Pulse Generation The counter can output a single pulse in response to each pulse on a hardware Start Trigger signal The pulses appear on the Counter n Internal Output signal of the counter 7 20 ni com 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 pulse width are measured in terms of a number of active edges of the Source input 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 Figure 7 24 shows a generation of two pulses with a pulse delay of five and a pulse width of three using the rising edge of Source GATE Start Trigger source UU UU OUT Figure 7 24 Retriggerable Single Pulse Generation For information about connecting counter signals refer to the Default Counter Timer Pinouts section Pulse Train Generation Continuous Pulse Train Generation This function generates a train of pulses with programmable frequency and duty cycle The pulses app
58. ach 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 NI 6124 devices have eight lines of bidirectional DIO signals e NI 6154 Devices When a terminal is used as a static digital input or output it is called PO x or P1 x On the I O connector each terminal is labeled PFI x PO x or PFI x P1 x National Instruments Corporation 8 5 NI 6124 6154 User Manual Chapter 8 Programmable Function Interfaces PFI Connecting PFI Input Signals All PFI input connections are referenced to D GND Figure 8 4 shows this reference and how to connect an external PFI 0 source and an external PFI 2 source to two PFI terminals PFI 0 PFI 2 PFI O PFI 2 Source Source D GND O I O Connector S Series Device Figure 8 4 PFI Input Signals Connections PFI Filters You can enable a programmable debouncing filter on each PFI RTSI or PXI_STAR signal When the filters are enabled your device samples the input on each rising edge of a filter clock These S Series devices use an onboard oscillator to generate the filter clock with a 40 MHz frequency ik Note NI DAQmx only supports filters on counter inputs The following is an example of low to high transitions o
59. age of Method 1b is that you have to take K 1 measurements These measurements take more time and consume some of the available PCI or PXI bandwidth Method 2 is accurate for high frequency signals However the accuracy decreases as the frequency of the signal to measure decreases At very low frequencies Method 2 may be too inaccurate for your application Another disadvantage of Method 2 is that it requires two counters if you cannot provide an external signal of known width An advantage of Method 2 is that the measurement completes in a known amount of time Method 3 measures high and low frequency signals accurately However it requires two counters 7 13 NI 6124 6154 User Manual Chapter 7 Counters Table 7 2 summarizes some of the differences in methods of measuring frequency Table 7 2 Frequency Measurement Method Comparison Measures High Measures Low Number of Number of Frequency Frequency Counters Measurements Signals Signals Method Used Returned Accurately Accurately 1 1 1 Poor Good 1b 1 Many Fair Good 2 lor2 1 Good Poor 3 2 1 Good Good For information about connecting counter signals refer to the Default Counter Timer Pinouts section Position Measurement You can use the counters to perform position measurements with quadrature 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 e
60. ai ConvertClock AI Sample Clock ai SampleClock AI Start Trigger ai StartTrigger AI Reference Trigger ai ReferenceTrigger AI Sample Clock Timebase ai SampleClockTimebase AO Start Trigger ao StartTrigger AO Sample Clock ao SampleClock AO Sample Clock Timebase ao SampleClockTimebase AO Pause Trigger ao PauseTrigger Counter input signals for either counter Source Gate Aux HW Arm A B orZ DI Sample Clock di SampleClock 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 RTSI Filters You can enable a programmable debouncing filter on each PFI RTSI or PXI STAR signal When the filters are enabled your device samples the input on each rising edge of a filter clock S Series devices use an onboard oscillator to generate the filter clock with a 40 MHz frequency B Note NI DAQmx only supports filters on counter inputs NI 6124 6154 User Manual 9 6 ni com Chapter 9 Digital Routing and Clock Generation 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 v
61. al edges on the Aux input The counter stops counting upon receiving an active edge on the Gate input The counter stores the count in a hardware save register National Instruments Corporation 7 17 NI 6124 6154 User Manual Chapter 7 Counters NI 6124 6154 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 measurement or A to B 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 a hardware save register and ignores other edges on its inputs Software then reads the stored count Figure 7 20 shows an example of a single two signal edge separation measurement Counter Armed i Measured Interval 3 AUX A GATE i SOURCE Counter Value 00001 2 3 4 5 6 7 8 8 8 HW Save Register 8 Figure 7 20 Sing
62. al source specify the signal source and the polarity of the signal The source can be any of the following signals e AI Sample Clock ai SampleClock e AT Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock 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 RTSI Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information Using an External Source You can route any of the following signals as DI Sample Clock e PFI 0 15 e RTSI lt 0 7 gt 6 4 ni com Chapter 6 Digital 1 0 e PXI STAR e Analog Comparison Event an analog trigger You can sample data on the rising or falling edge of DI Sample Clock Routing DI Sample Clock to an Output Terminal You can route DI Sample Clock out to any PFI terminal The PFI circuitry inverts the polarity of DI Sample Clock before driving the PFI terminal Digital Waveform Generation for Non Isolated Devices NI 6124 Only You can generate digital waveforms on the Port 0 DIO lines The DO waveform generation FIFO stores the digital samples These S 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
63. al storms welders radio transmitters and internal sources such as semiconductors resistors and capacitors Noise corrupts signals you are trying to send or receive Peripheral Component Interconnect a high performance expansion bus architecture originally developed by Intel to replace ISA and EISA It offers a theoretical maximum transfer rate of 132 Mbytes s National Instruments Corporation G 7 NI 6124 6154 User Manual Glossary pd PFI PGIA physical channel port ppm pu PXI Express Q quantization R range referenced signal sources rise time rms RTSI bus NI 6124 6154 User Manual Pull down Programmable function interface Programmable gain instrumentation amplifier See channel 1 A communications connection on a computer or a remote controller 2 A digital port consisting of four or eight lines of digital input and or output Parts per million Pull up 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 The process of converting an analog signal to a digital representation Normally performed by an analog to digital converter A D converter or ADC The maximum and minimum parameters between which a sensor instrument or device operates with a specified set of characteristics Signal sources with voltage signal
64. als for more information Minimizing Drift in Differential Mode NI 6124 6154 User Manual 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 a general analog ground connection point to the device 4 12 ni com Chapter 4 Analog Input Analog Input Timing Signals 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 7 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 ai SampleClock until the value reaches zero and all desired samples have been acquired Al Start Trigger Al Sample Clock EN N EN a Sample Counter 4 3 2 1 0 Figure 4 7 Typical Posttrig
65. alue of N depends on the filter setting refer to Table 9 2 Table 9 2 Filters N Filter Clocks Pulse Width Pulse Width Needed to Guaranteed to Guaranteed to Filter Setting Pass Signal Pass Filter Not Pass Filter 125 ns 5 125 ns 100 ns 6 425 us 257 6 425 us 6 400 us 2 56 ms 101 800 2 56 ms 2 54 ms Disabled The filter setting for each input can be configured independently On power up the filters are disabled Figure 9 3 shows an example of a low to high transition on an input that has its filter set to 125 ns N 5 RTSI PFI or PXI STAR Terminal Fit red input goes high when terminal Filter Clock 1 12 3 12 3 4 5 is sampled high on five consecutive filter 40 MHZ clocks Filtered Input Figure 9 3 Filter Example Enabling filters introduces jitter on the input signal For the 125 ns and 6 425 us filter settings the jitter is up to 25 ns On the 2 56 ms setting the jitter is up to 10 025 us When a PFI input is routed directly to RTSI or a RTSI input is routed directly to PFI the S Series device does not use the filtered version of the input signal National Instruments Corporation NI 6124 6154 User Manual Chapter 9 Digital Routing and Clock Generation Refer to the KnowledgeBase document Digital Filtering with M Series and CompactDAQ for more info
66. ample mode The sample mode can be either finite or continuous Finite sample mode acquisition refers to the acquisitions of a specific predetermined number of data samples After the specified number of samples has been collected into the buffer the acquisition stops If you use a reference trigger you must use finite sample mode Refer to the AJ Reference Trigger Signal section for more information 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 A continuous acquisition is also referred to as double buffered or circular buffered acquisition If data cannot be transferred across the bus fast enough the data in the FIFO will be overwritten and an error will be generated 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 Non Buffered In non buffered acquisitions data is read directly from the FIFO on the device Typically hardware timed non buffered operations are used to read single samples with known time increments between them and small latency 4 5 NI 6124 6154 User Manual Chapter 4 Analog Input Analog Input Triggering Connecting Analog Input Signals Analog input supports two different t
67. 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 10 MHz Reference Clock The 10 MHz reference clock can be used to synchronize other devices to your S Series device The 10 MHz reference clock can be routed to the RTSI lt 0 7 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 With the RTSI bus and the routing capabilities of S Series 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 RTSI lt 0 7 gt signals All devices including the initiator device receive the 10 MHz reference clock from RTSI This signal becomes the external reference clock A PLL on each device generates the internal timebases synchronous to the external reference clock On PXI systems you also can synchronize devices to PXI_CLK10 In this application the PXI chassis acts as the initiator Each PXI module routes PXI_CLK10 to its external reference clock Another option in PXI systems is to use PXI_STAR The Star Trigger controller device acts as the initiator and drives PXI_STAR with a c
68. 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 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 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 for Non Isolated Devices 3 NI 6124 Only 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 imp
69. apacitance 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 use FIFOs to buffer digital data from an A D converter or to buffer the data before or after bus transmission Signal sources with voltage signals that are not connected to an absolute reference of system ground Also called nonreferenced signal sources Some common examples of floating signal sources are batteries transformers and thermocouples NI 6124 6154 User Manual Glossary FPGA gain grounded signal sources H I O in INL LED LSB NI 6124 6154 User Manual Field programmable gate array The factor by which a signal is amplified often expressed in dB Gain as a function of frequency is commonly referred to as the magnitude of the frequency response function Signal sources with voltage sources that are referenced to a system ground such as the earth or building ground Also called referenced signal sources Hour Hertz Input output the transfer of data to from a computer system involving communications channels operator interface devices and or data acquisition and control interfaces Inches Integral nonlinearity for an ADC deviation of codes of the actual transfer function from a straight line Current output high Current output low Interrupt request Light emitting diode a semiconductor li
70. ation and digital isolators A 11 isolation barrier and digital isolators 4 2 5 2 specifications A 13 working voltage range 4 4 NI support and services B 1 NI 6124 6154 User Manual NI DAQmx default counter terminals 7 30 documentation xii enabling duplicate count prevention 7 37 0 on demand edge counting 7 2 other internal source mode 7 39 software installing 1 1 outputs using RTSI as 9 5 P pause trigger 7 31 period measurement 7 6 buffered 7 7 single 7 6 PFI 8 1 8 2 connecting input signals 8 6 exporting timing output signals using PFI terminals 8 4 filters 8 6 T O protection 8 8 programmable power up states 8 8 8 9 using terminals as static digital I Os 8 5 using terminals as timing input signals 8 4 PFI terminals as static digital I Os 8 5 pinouts counter default 7 30 device 1 3 NI 6124 A 2 NI 6154 A 8 RTSI connector 9 4 pins default 7 30 polarity and reference selection 5 2 position measurement 7 14 buffered 7 17 power source 3 3 ni com power up states 6 7 8 8 8 9 prescaling 7 33 programmable function interface PFI 8 1 power up states 6 7 8 8 programmable function interface 8 2 programmable power up states 8 9 programmed I O 10 2 programming examples NI resources B 1 pulse encoders 7 16 generation for ETS 7 24 train generation 7 21 continuous 7 21 pulse width measurement 7 4 buffered 7 5 single 7 4 PXI and PXI Express 10 1
71. ations documents contain all specifications for the NI 6124 and NI 6154 S Series devices respectively Documentation for supported devices and accessories including PDF and help files describing device terminals specifications features and operation are on the NI DAQmx CD that includes Device Documentation Insert the CD open the Device Documentation directory and double click the Device Documents shortcut for your language to find view and print device documents If you need more help getting started developing an application with NI products NI offers training courses To enroll in a course or obtain a detailed course outline refer to ni com training Technical Support on the Web For additional support refer to ni com support or zone ni com yi 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 National Instruments Corporation XV NI 6124 6154 User Manual Getting Started The NI 6124 and NI 6154 are simultaneous sampling multifunction I O devices S Series that use the DAQ STC2 ASIC The NI 6124 S Series is a non isolated device featuri
72. ations 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 National Instruments Corporation 6 9 NI 6124 6154 User Manual Chapter 6 Digital I O 5V LED Lag AM a PFI lt 4 7 gt K P1 lt 4 7 gt D TTL Signal gt PFI lt 0 3 gt E P1 lt 0 3 gt 5V e Switch D GND 1 0 Connector Non Isolated S Series Device Figure 6 4 Digital I O Connections UN Caution Exceeding the maximum input voltage ratings which are listed in the specifications document for each non isolated DAQ STC2 S 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 on Non Isolated Devices NI 6124 Only You can use non isolated S Series devices in the following digital I O applications Static digital input Static digital output Digital waveform generation Digital waveform acquisition DI change detection iyi Note For more information about programming digital I O applications and triggers in software refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later NI 6124
73. ces glitches due to released charges The largest glitches occur when the most significant bit MSB of the DAC code switches 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 AO Data Generation Methods NI 6124 6154 User Manual When performing an analog output operation there are several different data generation methods available You can either 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 5 2 ni com National Instruments Corporation Chapter 5 Analog Output 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 The time between samples can be much shorter The timing between samples can be de
74. 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 NI 6124 6154 User Manual 4 10 ni com Chapter 4 Analog Input 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 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 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
75. cquisition and control applications Select Start All Programs National Instruments NI DAQ NI DAQmx C Reference Help NET Languages without NI Application Software NI 6124 6154 User Manual With the Microsoft NET Framework version 1 1 or later you can use NI DAQmx to create applications using Visual Cft and Visual Basic NET without Measurement Studio You need Microsoft Visual Studio NET 2003 or Microsoft Visual Studio 2005 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 NET documentation To view the NI DAQmx NET documentation go to Start Programs National Instruments NI DAQ NI DAQmx NET Reference Help Expand NI Measurement Studio Help NI Measurement Studio NET Class Library Reference to view the function reference Expand NI Measurement Studio Help NI Measurement Studio NET Class Library Using the Measurement Studio NET Class Libraries to view conceptual topics for using NI DAQmx with Visual Cft and Visual Basic NET To get to the same help topics from within Visual Studio go to Help Contents Select Measurement Studio from the Filtered By drop down list and follow the previous instructions xiv ni com About This Manual Device Documentation and Specifications Training Courses The NI 6124 Specifications and NI 6154 Specific
76. cur in some other phase In Figure 7 17 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 ChA LS e a E ChZ 1 Max Timebase Counter Value s i T T Y2 Xs Ya 0 0 1 B Z Figure 7 17 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 each rising edge of channel B as shown in Figure 7 18 cha LI che I Counter Value 2X 3 X 4 X 5 Y 4 Y 3 X 4 Figure 7 18 Measurements Using Two Pulse Encoders 7 16 ni com Chapter 7 Counters For information about connecting counter signals refer to the Default Counter Timer Pinouts section Buffered Sample Clock Position Measurement With buffered position measu
77. cy of F1 Ni t N NK Figure 7 11 Method 1b Method 2 Measure High Frequency with Two Counters In this method you measure one pulse of a known width using your signal and derive the frequency of your signal from the result This method is good for high frequency signals In this method you route a pulse of known duration T to the Gate of 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 F1 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 F1 the frequency of F1 is N T 7 10 ni com Chapter 7 Counters Figure 7 12 illustrates this method Another option would be to measure the width of a known period instead of a known pulse 14 Width of Pulse T Pulse Pulse 4 Gate 1 2 ou N F1 Source n LPL LF Pulse Width Width of _ _N Measurement Pulse F1 Frequency of F1 National Instruments Corporation Figure 7 12 Method 2 Method 3 Measure Large Range of Frequencies Using Two Counters By using two counters you can accurately measure a signal that might be high or low frequency This technique
78. d 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 MI 6124 Specifications PFI for Isolated Devices NI 6154 Only Isolated S Series devices have 10 Programmable Function Interface PFI signals six input signals and four output signals Each PFI lt 0 5 gt P0 lt 0 5 gt can be configured as a timing input signal for AI or counter timer functions or a static digital input Each PFI input also has a programmable debouncing filter NI 6124 6154 User Manual 8 2 ni com Chapter 8 Programmable Function Interfaces PFI Figure 8 2 shows the circuitry of one PFI input line Each PFI line is similar PFI lt 0 5 gt P0 lt 0 5 gt e 4 I O Protection Isolation Barrier i d gt Static DI Digital i Isolators eo 7 To Input Timing i PFI Signal Selectors i Filters Figure 8 2 PFI Input Circuitry on Isolated S Series Devices Each PFI lt 6 9 gt P1 lt 0 3 gt can be configured as a timing output signal from AI or counter timer functions or a static digital output Figure 8 3 shows the circuitry of one PFI output line Each PFI line is similar Isolation Barrier Timing Signals Digital Isolators Static DO Output Buffer i Enable I O Protection Note One ou
79. d 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 National Instruments Corporation 7 19 NI 6124 6154 User Manual Chapter 7 Counters NI 6124 6154 User Manual Figure 7 22 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 PLL OUT Figure 7 22 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 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 Figure 7 23 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 H Start Trigger l source _ LITU LT O
80. e 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 or RTSI lt 0 7 gt terminal All PFI terminals are configured as inputs by default 4 20 ni com Chapter 4 Analog Input Getting Started with Al Applications in Software You can use the S Series device in the following analog input applications e Simultaneous sampling Single point analog input Finite analog input e Continuous analog input You can perform these applications through DMA interrupt 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 DA Qmx Help or the LabVIEW Help in version 8 0 or later National Instruments Corporation 4 21 NI 6124 6154 User Manual Analog Output Figure 5 1 shows the analog output circuitry of a non isolated S Series NI 6124 device AO 0 DACO AO FIFO m AO Data AO 1 DAC1 AO Sample Clock Figure 5 1 Non Isolated S Series Device Analog Output Block Diagram Figure 5 2 shows the analog output circuitry of an isolated S Series NI 6154 device
81. e input range affects the resolution of the S Series device for an AI channel Resolution refers to the magnitude of one ADC code For example a 16 bit ADC converts analog inputs into one of 65 536 2 6 codes meaning one of 65 536 possible digital values These values are spread fairly evenly across the input range So for an input range of 5 V to 5 V the code width of a 16 bit ADC is 5V 5V 716 153 uV S Series devices support bipolar input ranges A bipolar input range means that the input voltage range is between V ref and Vef The instrumentation amplifier applies a different gain setting to the AI signal depending on the input range Gain refers to the factor by which the instrumentation amplifier multiplies amplifies the input signal before sending it to the ADC On S Series devices with programmable input ranges 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 programming these settings refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later National Instruments Corporation 4 3 NI 6124 6154 User Manual Chapter 4 Analog Input Working Voltage Range On most S Series devices the PGIA operates normally by amplifying signal
82. 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 DO Sample Clock Signal NI 6124 Only Use the DO Sample Clock do SampleClock signal to update the DO terminals with the next sample from the DO waveform generation FIFO These S Series devices do not have the ability to divide down a timebase to produce an internal DO Sample Clock for digital waveform generation Therefore you must route an external signal or one of many internal signals from another subsystem to be the DO Sample Clock For example you can correlate digital and analog samples in time by sharing your AI Sample Clock or AO Sample Clock as the source of your DO Sample Clock To generate digital data independent of an AI AO or DI operation you can configure a counter to generate the desired DO Sample Clock or use an external signal as the source of the 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 National Instruments Corporation 6 5 NI 6124 6154 User Manual Chapter 6 NI 6124 6154 User Manual Digital I
83. ear 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 National Instruments Corporation 7 21 NI 6124 6154 User Manual Chapter 7 NI 6124 6154 User Manual Counters 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 25 shows a continuous pulse train generation using the rising edge of Source SOURCE UUU OUT i Counter Armed Figure 7 25 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 Inter
84. ec ode teet dee 9 2 External Reference Clock 6 trt etienne Eo Panes oes 9 2 10 MHz Reference Clock ret RE cre Eee 9 3 Synchronizing Multiple Devices esee nennen eem ener 9 3 National Instruments Corporation ix NI 6124 6154 User Manual Contents Real Time System Integration RTSD o0 e cece eseceseeeseeseceeeeseeseeeaecneecaeseeeeaeenaes 9 4 RTSI Connector Pinout edet ite deret te rede petes 9 4 Using RTSI as O tputs 5 en ertt tet t leere vend 9 5 Using RTSI Terminals as Timing Input Signals esses 9 6 RISE Filters indie ee RR RE deis 9 6 PXI Clock and Trigger Signals eerte pde 9 8 PXI CEKIO 5 iniu RD univ nar pe eU rte abre UG 9 8 PXI Triggerg icesenegnsie etn peo o dee use 9 8 PXI STAR Trigger 5 eR ct erede e et eee d 9 8 PXI STAR Eilters sca tea traen e ert o tete 9 9 Routing Signals in Software sess rennen enne 9 10 Chapter 10 Bus Interface MITE and DAQ PnDP iecit eet ele e aen Re Ee e Aiea ade die 10 1 BXI Consider ti ns 3 etr ettet tt term te ER tpe i ttis 10 1 PXI Clock and Trigger Signals esee 10 1 PXDEXDpt6SS zie re xe t EP ot tete iere 10 1 Data Transfer Methods 5 ed ete mete eeiam ie nera 10 2 Changing Data Transfer Methods between DMA and IRQ 10 2 Chapter 11 Triggering Triggering with a Digital Source nennen ee enne 11 1 Triggering with an Analog
85. ed i Sui TNT EN Ioa Figure 7 15 X2 Encoding X4 Encoding 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 Each cycle results in four increments or decrements as shown in Figure 7 16 ChA 1 ChB rF i Lir rid Counter Value cxx asaazyas SDSYSYTYTYTY Figure 7 16 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 National Instruments Corporation NI 6124 6154 User Manual Chapter 7 NI 6124 6154 User Manual Counters Channel Z behavior when it goes high and how long it stays high differs with quadrature encoder designs You 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 17 channel Z is never high when channel A is high and channel B is low Thus the reload must oc
86. edance input with a weak pull down resistor default e An output driving a 0 e An output driving a 1 Refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information about setting power up states in NI DAQmx or MAX Note When using your S 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 6 7 NI 6124 6154 User Manual Chapter 6 Digital I O DI Change Detection for Non Isolated Devices NI 6124 Only You can configure the DAQ device to detect changes in the DIO signals Figure 6 3 shows a block diagram of the DIO change detection circuitry E Enable P0 0 4 Synch 4 TRU Enable Change Detection Event A Enable P0 7 Synch L 4 EM Enable Figure 6 3 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 S0MHzTimebase 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 Detectio
87. eeeen n n nennen eenn enne tenete nnne nn nnns assesses xii Chapter 1 Getting Started Installing NI DA Qmx i ae Ret eH eH IRE NEU Hb Pe RR PERLE RENE HEN ERAS 1 1 Installing Other Software nennen nne nere enne 1 1 Installing the Hardware 45 eee per e re Ine Rr ee et gleeet 1 2 Device Self Calibration 5 2 ene Rr e n A pe e ted et 1 2 Device Pirio ts 4 eer deni reste tte m rte ee t pte etuti i te etes 1 3 Device Specifications ee Ut ate te e etes 1 3 Chapter 2 DAQ System Overview DAO HardWa te nd tentat eee eset tessuti eee retia 2 2 DAQ STG2 inte dpt es ce eei estet ied ee eee 2 3 Calibration CIrCultry 5 2 0 trn a a n m ee e petere hes 2 4 Internal or Self Calibration s ecs eiia iridis srie ais 2 4 External Calibratioti o odere ce rte ree rerit 2 5 Signal Conditioning one eene nme e ei 2 5 Sensors and Transducers sssssssssseseeeeeeee eene enne nenne entente nnns 2 5 Programming Devices in Software esses eene 2 6 Chapter 3 1 0 Connector NI 6124 I O Connector Signal Descriptions 3 1 NI 6154 I O Connector Signal Descriptions 3 2 Xy VBOWerSOUICe seem e He att s ee es tei epe 3 3 Chapter 4 Analog Input Analog Input Terminal Configuration eese 4 2 Input Polarity and Range nescis ie niente trei aas aides 4 3 Working Voltage R nge oeste teer en oadug E A e A Ea 4 4 AI Data Acquisition Methods eese sense
88. eene EEEE 4 4 Analog Input Triggerihig ette ettet be hne qe leti Revd puse ehe big ch 4 6 National Instruments Corporation V NI 6124 6154 User Manual Contents Connecting Analog Input Signals eese eene 4 6 Types of Signal Sources esee eerie quee dept 4 7 Differential Connections for Ground Referenced Signal Sources 4 7 Common Mode Signal Rejection Considerations 4 0 Differential Connections for Non Referenced or Floating Signal Sources 4 9 DC Coupled 4 deesse aA eR One Ite 4 10 AC Coupled ii e m RE t hee 4 11 Field Wiring Considerations essere 4 11 Minimizing Drift in Differential Mode eere 4 12 Analog Input Timing Signals eese ennt 4 13 Al Sample Clock Signal 5 tni d ree t eterno 4 14 Using an Internal Source eene rtc net 4 14 Using an External Source essere 4 15 Routing AI Sample Clock Signal to an Output Terminal 4 15 Other Timing Requirements esee 4 15 AI Sample Clock Timebase Signal eee 4 16 AI Convert Clock Signal iceren tete tie eee opea 4 16 Using an Internal Source eesseeeeeeene 4 17 Using an External Source seen 4 17 Routing AI Convert Clock Signal to an Output Terminal 4 17 AI Convert Clock Timebase Signal eee
89. efer to the NI DA Qmx Help or the LabVIEW Help in version 8 0 or later National Instruments Corporation 5 11 NI 6124 6154 User Manual Digital 1 0 Refer to one of the following sections depending on your device Digital I O for Non Isolated Devices NI 6124 devices have eight lines of bidirectional DIO lines on Port 0 and 16 PFI signals that can function as static DIO lines Digital I O for Isolated Devices NI 6154 devices have six bank isolated digital inputs and four bank isolated digital outputs Digital 1 0 for Non Isolated Devices NI 6124 Only NI 6124 devices contain eight lines of bidirectional DIO lines on Port 0 In addition The NI 6124 has 16 PFI lines that can function as static DIO lines These S Series devices support the following DIO features on Port 0 National Instruments Corporation Eight 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 6 1 NI 6124 6154 User Manual Chapter 6 Digital I O 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 DO Waveform Generation FIFO DO Sample Clock Static DO Buffer I O Protection e PO x
90. elf calibrate your S 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 This 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 NI DAQmx Devices your device 3 Initiate self calibration using one of the following methods 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 in version 8 0 or later NI 6124 6154 User Manual 1 2 ni com Chapter 1 Getting Started Device Pinouts Refer to Appendix A Device Specific Information for NI 6124 and NI 6154 device pinouts Device Specifications Refer to the specifications for your device the NI 6124 Specifications or the NI 6154 Specificat
91. er 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 31 NI 6124 6154 User Manual Chapter 7 Counters Other Counter Features Cascading Counters 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 Method 3 bullet in the Frequency Measurement section Counter Filters You can enable a programmable debouncing filter on each PFI RTSI or PXI_STAR signal When the filters are enabled your device samples the input on each rising edge of a filter clock S Series devices use an onboard oscillator to generate the filter clock with a 40 MHz frequency iyi Note NI DAQmx only supports filter
92. er the input is edge or level sensitive Exporting Timing Output Signals Using PFI Terminals You can route any of the following timing signals to PFI terminals configured as an output 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 AO Sample Clock ao SampleClock 1 You can use any PFI terminal as a timing input signal on NI 6124 devices You can use PFI 0 5 terminals as timing input signals on NI 6154 devices You can export timing output signals with any PFI terminal on NI 6124 devices You can export timing output signals with PFI lt 6 9 gt on NI 6154 devices NI 6124 6154 User Manual 8 4 ni com Chapter 8 Programmable Function Interfaces PFI e AO Start Trigger ao StartTrigger e Counter n Source e Counter n Gate e Counter n Internal Output e Frequency Output e PXI STAR e RTSI lt 0 7 gt NI 6124 Only Analog Comparison Event e NI 6124 Only Change Detection Event e NI 6124 Only DI Sample Clock di SampleClock NI 6124 Only DO Sample Clock do SampleClock 3 Note Signals with a are inverted before being driven to a terminal that is these signals are active low Using PFI Terminals as Static Digital Inputs and Outputs You can configure PFI terminals to be static digital input or output terminals e NI6124 Devices E
93. ered semi period measurement Counter Armed SOURCE A ALALA ELA if AiL A Counter Value 0 1 2 1 2 3 112 1 SE 2 2 5 2 Buffer 38 8 2 3 i 1 1 2 Figure 7 9 Buffered Semi Period Measurement Note that if you are using an external signal as the Source at least one Source pulse should occur between each active edge of the Gate signal This condition ensures that correct values are returned by the counter If this condition is not met consider using duplicate count prevention described in the Duplicate Count Prevention section 7 8 ni com Chapter 7 Counters For information about connecting counter signals refer to the Default Counter Timer Pinouts section Frequency Measurement You can use the counters to measure frequency in several different ways You can choose one of the following methods depending on your application Method 1 Measure Low Frequency with One Counter In this method you measure one period of your signal using a known timebase This method is good for low frequency signals You can route the signal to measure F1 to the Gate of a counter You can route a known timebase Ft to the Source of the counter The known timebase can be 80MHzTimebase For signals that might be slower than 0 02 Hz use a slower known timebase You can configure the counter to measure one period of the gate signal
94. es you should not use duplicate count prevention Enabling Duplicate Count Prevention in NI DAQmx You can enable duplicate count prevention in NI DAQmx by setting the Enable Duplicate Count Prevention attribute property For specific information about finding the Enable Duplicate Count Prevention attribute property refer to the help file for the API you are using 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 S Series devices synchronize these signals before presenting them to the internal counter S Series devices use one of three synchronization methods e 80 MHz source mode Other internal source mode External source mode National Instruments Corporation 7 37 NI 6124 6154 User Manual Chapter 7 Counters In DAQmx the device uses 80 MHz source mode if you perform the following e Perform a position measurement e Select duplicate count prevention Otherwise the mode depends on the signal that drives Counter n Source Table 7 5 describes the conditions for each mode Table 7 5 Synchronization Mode Conditions Duplicate Count Type of Signal Driving Synchronization Prevention Enabled Measurement Counter n Source Mode Yes Any Any 80 MHz Source No Position Measurement Any 80 MHz Source No Any 80 MHz Timebase 80 MHz Source No All Except Position 2
95. es four channels of AO voltage at the I O connector The range is fixed at bipolar 10 V The AO channels on the NI 6154 contain 16 bit DACs that are capable of 250 kS s for each channel The AO channels are isolated from each other from the AI channels and from the chassis Refer to the NI 6154 Specifications for more detailed information about the AO capabilities of the NI 6154 National Instruments Corporation A 7 NI 6124 6154 User Manual Appendix A Device Specific Information NI 6154 1 0 Connector Pinout Figure A 3 shows the pin assignments for the 37 pin I O connector on the NI 6124 6154 User Manual NI 6154 Al 0 Al 1 NC Al 2 Al 3 NC AO 0 AO 1 NC AO 2 AO 3 NC PFI 1 P0 1 Input PFI 2 P0 2 Input PFI 4 P0 4 Input PFI 5 PO 5 Input PFI 7 P1 1 Output PFI 8 P1 2 Output A a a mk ak ak k oy IO IN E o Qio olooioiogmiwm mmim imimmnme m Oo Oi 6 mi j jo dc o j oj oOn 2 o0 nm o zi N wo AN E E o Al 0 NC Al 1 Al 2 NC Al 3 AO 0 NC AO 1 AO 2 NC AO 3 PFI 0 P0 0 Input D GND PFI 3 PO 3 Input D GND PFI 6 P1 0 Output D GND PFI 9 P1 3 Output NC No Connect Figure A 3 NI 6154 Pinout Table A 2 NI 6154 Device Default NI DAQmx Counter Timer Pins Counter Timer Signal Default Pin Number Name Port CTR 0 SRC 13 PFI 0 P
96. es support digital triggering and some also support analog triggering To find your device s triggering options refer to the specifications document for your device The AO Start Trigger Signal and AO Pause Trigger Signal sections contain information about the analog output trigger signals Refer to Chapter 11 Triggering for more information about triggers Connecting Analog Output Signals The AO signals are AO 0 AO 1 and AO GND AO 0 is the voltage output signal for AO channel 0 AO 1 is the voltage output signal for AO channel 1 AO GND is the ground reference for the AO channels NI 6124 6154 User Manual 5 4 ni com Chapter 5 Analog Output Figure 5 3 shows how AO 0 and AO 1 are wired on a non isolated S Series device AO 0 Channel 0 4 Load VOUT 0 AO GND Load VOUT 1 AO 1 lol Channel 1 Analog Output Channels Non Isolated S Series Device Figure 5 3 Analog Output Connections for Non Isolated S Series Devices Figure 5 4 shows how AO 0 is wired on an isolated S Series device Isolation AO Barrier lol DAC 4 Digital Load VOUT Analog Output Channel Isolators A AO L V4 zu Isolated S Series Device x Figure 5 4 Analog Output Connections for Isolated S Series Devices National Instruments Corporation 5 5 NI 6124 6154 User Manual Chapter 5 Analog Out
97. evice to a screw terminal accessory use one of the following cables e SH37F 37M 2 37 pin female to male shielded I O cable 150 V 2 m non EMI shielding e SH37F 37M 1 37 pin female to male shielded I O cable 150 V m non EMI shielding e SH37F P 4 37 pin female to pigtails shielded I O cable 4 m R37F 37M 1 37 pin female to male ribbon I O cable 1 m e DB37M DB37F EP 37 pin male to female enhanced performance shielded I O cable 1 m EMI shielding For more information about optional equipment available from National Instruments refer to the National Instruments catalog or visit the National Instruments Web site at ni com NI 6154 Isolation and Digital Isolators The NI 6154 is an isolated data acquisition device As shown in Figure 2 2 General NI 6124 Block Diagram the analog input analog output and PFI static DIO circuitry are referenced to separate isolated grounds for each circuit The bus interface circuitry RTSI digital routing and clock generation are all referenced to a non isolated ground Table A 3 shows the ground symbols referenced in Figure 2 2 Table A 3 Ground Symbols Ground Symbol Isolated Ground NA Non Isolated Ground d Not recommended for EMC sensitive applications National Instruments Corporation A 11 NI 6124 6154 User Manual Appendix A Device Specific Information NI 6124 6154 User Manual The non isolated ground is connected to the cha
98. ewed 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 by owner s fa
99. f the Source does not pulse This enables the correct current count to be stored in the buffer even if no Source edges occur between Gate signals as shown in Figure 7 34 Gate Source Counter Value Buffer Counter detects rising Gate edge Counter value increments only one time for each Source pulse 80 MHz Timebase 6 Yz Xo Xt ws NI 6124 6154 User Manual Figure 7 34 Duplicate Count Prevention Example 7 96 ni com Chapter 7 Counters Even if the Source pulses are long the counter increments only once for each Source pulse Normally the counter value and Counter n Internal Output signals change synchronously to the Source signal With duplicate count prevention the counter value and Counter n Internal Output signals change synchronously to the 80 MHz Timebase Note that duplicate count prevention should only be used if the frequency of the Source signal is 20 MHz or less When To Use Duplicate Count Prevention You should use duplicate count prevention if the following conditions are true e You are making a counter measurement e You are using an external signal such as PFI x as the counter Source e The frequency of the external source is 20 MHz or less e You can have the counter value and output to change synchronously with the 80 MHz Timebase In all other cas
100. f the input signal High to low transitions work similarly NI 6124 6154 User Manual 8 6 ni com Chapter 8 Programmable Function Interfaces PFI 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 Table 8 1 Filters Filtered Input N Filter Clocks Pulse Width Pulse Width Needed to Guaranteed to Guaranteed to Filter Setting Pass Signal Pass Filter Not Pass Filter 125 ns 5 125 ns 100 ns 6 425 us 257 6 425 us 6 400 us 2 56 ms 101 800 2 56 ms 2 54 ms Disabled The filter setting for each input can be configured independently On power up the filters are disabled Figure 8 5 shows an example of a low to high transition on an input that has its filter set to 125 ns N 5 RTSI PFI or PXI_STAR Terminal Filtered input goes high when terminal Filter Clock 1 1234 123 4 5 is sampledihighon 40 MHz five consecutive filter clocks National Instruments Corporation 8 7 Figure 8 5 Filter Example Enabling filters introduces jitter on the input signal For the 125 ns and 6
101. fault Counter Timer Pinouts section Period Measurement NI 6124 6154 User Manual 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 Single Period Measurement With single period measurement the counter counts the number of rising or falling edges on the Source input occurring between two active edges of the Gate input On the second active edge of the Gate input the counter stores the count in a hardware save register and ignores other edges on the Gate and Source inputs Software then reads the stored count Figure 7 7 shows an example of a single period measurement GATE Ll source LALALALA A Counter Value 0 HW Save Register 5 Figure 7 7 Single Period Measurement 7 6 ni com Chapter 7 Counters Buffered Period Measurement Buffered period measurement is similar to sing
102. fferent triggering actions 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 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 Trigg
103. gered DAQ Sequence 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 8 shows a typical pretrigger DAQ sequence The AI Start Trigger signal 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 START TRIG line when the acquisition begins When the AI 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 i i i Al Reference Trigger DontCare NI fl Al Sample Clock Sample Counter 3 e tq 60 w2 c GA wd 9 Figure 4 8 Typical Pretriggered DAQ Sequence National Instruments Corporation 4 13 NI 6124 6154 User Manual Chapter 4 Analog Input 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 ac
104. gger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e PXISTAR Analog Comparison Event In addition Counter 1 Internal Output Counter 1 Gate Counter 1 Source or Counter 0 Gate can be routed to Counter 0 Aux Counter 0 Internal Output Counter 0 Gate Counter 0 Source or Counter 1 Gate can be routed to Counter 1 Aux Some of these options may not be available in some driver software Counter n A Counter n B and Counter n Z Signals NI 6124 6154 User Manual 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 0 75 e PFI 0 15 e PXI STAR e Analog Comparison Event Routing Counter n Z Signal to an Output Terminal You can route Counter n Z out to RTSI lt 0 7 gt 7 28 ni com Chapter 7 Counters 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 buffered semi period measurement the counter begins counti
105. gh internal or self calibration or through external calibration Internal or Self Calibration NI 6124 6154 User Manual Self calibration is a process to adjust the device relative to a highly accurate and stable internal reference on the device Self calibration is similar to the autocalibration or autozero found on some instruments You should perform a self calibration whenever environmental conditions such as ambient temperature change significantly To perform self calibration use the self calibrate function or VI that is included with your driver software Self calibration requires no external connections 2 4 ni com Chapter 2 DAQ System Overview External Calibration External calibration is a process to adjust the device relative to a traceable high precision calibration standard The accuracy specifications of your device change depending on how long it has been since your last external calibration National Instruments recommends that you calibrate your device at least as often as the intervals listed in the accuracy specifications For a detailed calibration procedure for NI 6154 S Series devices refer to the Isolated M S Series Calibration Procedure which you can find at ni com calibration and selecting Manual Calibration Procedures Signal Conditioning Many sensors and transducers require signal conditioning before a computer based measurement system can effectively and accurately acquire the signal The front e
106. ght source Least significant bit G 6 ni com m master module MSB mux NC NI NI DAQmx noise PCI Glossary Meter A functional part ofa MXI VME V XIbus device that initiates data transfers on the backplane A transfer can be either a read or a write A board assembly and its associated mechanical parts front panel optional shields and so on A module contains everything required to occupy one or more slots in a mainframe SCXI and PXI devices are modules Most significant bit Multiplexer 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 Normally closed or not connected National Instruments The latest NI DAQ driver with new VIs functions and development tools for controlling measurement devices The advantages of NI DAQmx over earlier versions of NI DAQ 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 analog I O and a simpler API for creating DAQ applications using fewer functions and VIs than earlier versions of NI DAQ An undesirable electrical signal Noise comes from external sources such as the AC power line motors generators transformers fluorescent lights CRT displays computers electric
107. grammed 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 Changing Data Transfer Methods between DMA and IRQ There are a limited number of DMA channels per device refer to the specifications document for your device Each operation specifically AI AO and so on that requires a DMA channel uses that method until all of the DMA channels are used After all of the DMA channels are used you will get an error if you try to run another operation requesting a DMA channel If appropriate you can change one of the operations to use interrupts For NI DAQmx use the Data Transfer Mechanism property node NI 6124 6154 User Manual 10 2 ni com Triggering A trigger is a signal that causes a device to perform an action such as starting an acquisition You can program your DAQ device to generate triggers on any of the following e A software command e A condition on an external digital signal e A condition on an external analog signal You can also program your DAQ device to perform an action in response to a trigger The action can affect the following e Analog input acquisitions e Analog output generation e Counter behavior For more information about analog input triggering refer to Chapter 4 Analog Input For more information about analog
108. hare a common trigger signal among devices A Star Trigger controller can be installed in this first peripheral slot to provide trigger signals to other peripheral modules Systems that do not require this functionality can install any standard peripheral module in this first peripheral slot 9 8 ni com PXI STAR Filters Chapter 9 Digital Routing and Clock Generation An S 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 S Series device is not a Star Trigger controller An S Series device may be used in the first peripheral slot of a PXI system but the system will not be able to use the Star Trigger feature NI 6124 Only You can enable a programmable debouncing filter on each PFI RTSI or PXI STAR signal When the filters are enabled your device samples the input on each rising edge of a filter clock S Series devices use an onboard oscillator to generate the filter clock with a 40 MHz frequency iyi Note NI DAQmx only supports filters on counter inputs 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
109. he I O connector supply 5 V power You can use these pins referenced to D GND to power external circuitry Power rating most devices 4 65 to 45 25 VDC at 1 A To find your device s power rating refer to the specifications document for your device Caution Never connect these 5 V power pins to analog or digital ground or to any other voltage source on the S 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 National Instruments Corporation NI 6124 6154 User Manual Analog Input Figure 4 1 shows the analog input circuitry of each channel of the non isolated S Series NI 6124 device Instrumentation Amplifier Filter Al ADC F4 AIFIFO AI Data Al Mux I CAL Analog Trigger Al Timing Signals Figure 4 1 Non Isolated S Series Analog Input Block Diagram Figure 4 2 shows the analog input circuitry of each channel of the isolated S Series NI 6154 device Instrumentation Isolation Amplifier Filter ELM Ale ADC u Al FIFO AI Data Digital Abr Mux Isolators Al Timing Signals CAL Figure 4 2 Isolated S Series Analog Input Block Diagram National Instruments Corporation 4 1 NI 6124 6154 User Manual Chapter 4 Analog Input On
110. iagram NI 6124 6154 User Manual 2 2 ni com Chapter 2 DAQ System Overview NI 6154 Only S Series isolated hardware also includes bank and channel to channel isolation Isolated DAQ hardware allows for increased protection against hazardous voltages rejection of common mode voltages and reduction of ground loops and their associated noise Figure 2 3 shows the components of the isolated S Series NI 6154 device NAA E 3 Yr Isolation A Barrier Analog Input Paea A AI GND 7 Analog Output S A0 GNO o beats cer Coun is Digital Digital Bus Bus 8 Isolators Routing Interface ore PFI Static DI Po GND RTSI PFI Static DO M P1 GND VY n DAQ STC2 Figure 2 3 General NI 6154 Block Diagram The DAQ STC2 implements a high performance digital engine for S Series data acquisition hardware Some key features of this engine include the following National Instruments Corporation Flexible AI and AO sample and convert timing Many triggering modes Independent AI AO DI and DO FIFOs Generation and routing of RTSI signals for multi device synchronization Generation and routing of internal and external timing signals 2 3 NI 6124 6154 User Manual Chapter 2 DAQ System Overview e Two flexible 32 bit counter timer modules with hardware gating Digi
111. ify a trigger level and amount of hysteresis The high threshold is the trigger level the low threshold is the trigger level minus the hysteresis 11 4 ni com Chapter 11 Triggering 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 5 Then signal must go above high threshold before Analog Comparison Event asserts a ay a nai eae et esata NEA High threshold Level Hysteresis First signal must go a Level Hysteresis below low threshold Analog Comparison Event rz S iac aANT i Low threshold Figure 11 5 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 6 First signal must go
112. ignal 7 18 single two signal 7 18 enabling duplicate count prevention in NI DAQmx 7 37 encoders quadrature 7 14 encoding X1 7 14 X2 7 15 XA 7 15 equivalent time sampling 7 24 examples NI resources B 1 exporting timing output signals using PFI terminals 8 4 external reference clock 9 2 external source mode 7 39 F features counter 7 32 NI 6124 A 1 NI 6154 A 7 field wiring considerations 4 11 FIFO 4 2 filter 4 2 filters counter 7 32 PFI 8 6 PXI_STAR 9 9 RTSI 9 6 ni com finite pulse train timing generation 7 22 FREQ OUT signal 7 30 frequency division 7 24 generation 7 23 generator 7 23 measurement 7 9 Frequency Output signal 7 30 G generations clock 9 1 continuous pulse train 7 21 digital waveform 6 5 frequency 7 23 pulse for ETS 7 24 pulse train 7 21 retriggerable single pulse 7 20 simple pulse 7 19 single pulse 7 19 single pulse with start trigger 7 20 getting started 1 1 DIO applications in software 6 10 glitches 5 2 H hardware 1 2 help technical support B 1 hysteresis analog edge triggering with 11 4 I O connector NI 6124 A 2 NI 6154 A 8 signal descriptions isolated devices 3 2 non isolated devices 3 1 National Instruments Corporation l 5 Index I O protection 6 7 8 8 input coupling 4 2 input polarity and range 4 3 input signals using PFI terminals as 8 4 using RTSI terminals as 9 6 installation
113. ilure 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 National Instruments NI ni com and LabVIEW are trademarks of National Instruments Corporation Refer to the Terms of Use section on ni com legal for more information about National Instruments trademarks 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 Na
114. internally routed to be a counter timer input or an external source for AL 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 or RTSI 0 7 terminal All PFIs are set to high impedance at startup Frequency Output Signal The Frequency Output FREQ OUT signal is the output of the frequency output generator Routing Frequency Output to a Terminal You can route Frequency Output to any PFI 0 15 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 Default Counter Timer Pinouts NI 6124 6154 User Manual By default NI DAQmx routes the counter timer inputs and outputs to the PFIpins Refer to Appendix A Device Specific Information for the default counter timer pin table for your device You can use these defaults or select other sources and destinations for the counter timer signals in NI DAQmx Refer to Connecting Counter Signals in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information about how to connect your signals for common counter measurements and generations DAQ STC2 based S Series default PFI lines for counter functions are listed in Physical Channels in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later 7 30 ni com Chapter 7 Counters Counter Triggering Counters support three di
115. ions Counting Edges NI 6124 6154 User Manual 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 control the direction of counting up or down The counter values can be read on demand or with a sample clock 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 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 7 2 ni com Chapter 7 Counters Counter Armed Pause Trigger Pause When Low i SOURCE A j4 Ajj AJAL Counter Value 0 0 1 2 38 4 5
116. ions available on the NI DAQ Device Document Browser or ni com manuals for more detailed information about the NI 6124 and NI 6154 devices National Instruments Corporation 1 8 NI 6124 6154 User Manual DAQ System Overview Figure 2 1 shows a typical DAQ system setup which includes transducers signal conditioning cables that connect the various devices to the accessories the S Series device and the programming software Refer to Appendix A Device Specific Information for a list of devices and their compatible accessories 1 Sensors and Transducers 4 DAQ Hardware 2 Signal Conditioning 5 Personal Computer Chassis 3 Cable Assembly and DAQ Software Figure 2 1 Typical DAQ System National Instruments Corporation 2 1 NI 6124 6154 User Manual Chapter 2 DAQ System Overview DAQ Hardware DAQ hardware digitizes signals performs D A conversions to generate analog output signals and measures and controls digital I O signals The following sections contain more information about specific components of the DAQ hardware Figure 2 2 shows the components of the non isolated S Series NI 6124 device l gt Analog Input Analog Output 8 3 2 Digital _ Bus 3 8 lt gt Digital I O Routing Interface pus Q gt Counters RTSI qe PFI Figure 2 2 General NI 6124 Block D
117. is called reciprocal frequency measurement In this method you generate a long pulse using the signal to measure You then measure the long pulse with a known timebase The S Series device can measure this long pulse more accurately than the faster input signal 7 11 NI 6124 6154 User Manual Chapter 7 Counters NI 6124 6154 User Manual You can route the signal to measure to the Source input of Counter 0 as shown in Figure 7 13 Assume this signal to measure has frequency F1 Configure Counter 0 to generate a single pulse that is the width of N periods of the source input signal Signal to SOURCE OUT Measure F1 COUNTER 0 Signal of Known aN SOURCE OUT Frequency F2 COUNTER 1 L p GATE CTR_0_SOURCE Signal to Measure CTR 0 OUT CTR 1 GATE 4 Interval to Measure CTR 1 souRcE JUUUUUUUUUUUUUUUU Figure 7 13 Method 3 Then route the Counter 0 Internal Output signal to the Gate input of Counter 1 You can route a signal of known frequency F2 to the Counter 1 Source input F2 can be 80MHzTimebase For signals that might be slower than 0 02 Hz use a slower known timebase Configure Counter 1 to perform a single pulse width measurement Suppose the result is that the pulse width is J periods of the F2 clock From Counter 0 the length of the pulse is M F1 From Counter 1 the length of the same pulse is J F2 Therefore
118. l Chapter 4 Analog Input Figure 4 9 shows the relationship of AI Sample Clock to AI Start Trigger Al Sample Clock Timebase Al Start Trigger Al Sample Clock Delay From Start Trigger Figure 4 9 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 20MHz Timebase 100 kHz Timebase e PXI CLKIO e RTSI lt 0 7 gt e PHI lt 0 15 gt e PXI STAR e Analog Comparison Event an analog trigger AI Sample Clock Timebase is not available as an output on the T 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 Al Convert Clock Signal NI 6124 6154 User Manual Use the AI Convert Clock ai ConvertClock signal to initiate a single A D conversion on every channel 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 4 16 ni com Chapter 4 Analog Input Using an Internal Source One of the following internal signals can drive AI Convert Clock e AT Convert Clock Timebase divided down e Counter n Internal Ou
119. l Filtering with M Series and CompactDAQ for more information about digital filters and counters To access this KnowledgeBase go to ni com info and enter the info code rddfms Routing Signals in Software Table 9 4 lists the basic functions you can use to route signals Table 9 4 Signal Routing in Software Language Function LabVIEW and NI DAQmx DAQmx Export Signal vi and DAQmx Connect Terminals vi C and NI DAQmx Export Signal and DAQmx Connect Terminals Note For more information about routing signals in software refer to the NJ DAQmx Help or the LabVIEW Help in version 8 0 or later NI 6124 6154 User Manual 9 10 ni com Bus Interface Each S Series device is designed on a complete hardware architecture that is deployed on the following platforms e PCI e PXI Express Using NI DAQmx driver software you have the flexibility to change hardware platforms and operating systems with little or no change to software code MITE and DAQ PnP All S Series devices are jumperless for complete plug and play operation The operating system automatically assigns the base address interrupt levels and other resources NI S Series PCI PXIe devices incorporate PCI MITE technology to implement a high performance PCI interface PXI Considerations NI 6124 Only PXI clock and trigger signals are only available on PXI and PXI Express devices PXI Clock and Trigger Signals PXI Express N
120. le On the first rising edge of the Gate the current count of 7 is stored On the next rising edge of the Gate the counter stores a 2 since two Source pulses occurred after the previous rising edge of Gate The counter synchronizes or samples the Gate signal with the Source signal so the counter does not detect a rising edge in the Gate until the next Source pulse In this example the counter stores the values in the buffer on the first rising Source edge after the rising edge of Gate The details of when exactly the counter synchronizes the Gate signal vary depending on the synchronization mode Synchronization modes are described in the Synchronization Modes section National Instruments Corporation 7 85 NI 6124 6154 User Manual Chapter 7 Counters Example Application That Works Incorrectly Duplicate Counting In Figure 7 33 after the first rising edge of Gate no Source pulses occur so the counter does not write the correct data to the buffer No Source edge so no value written to buffer Gate E Source Counter Value 6 X7 X 1 Buffer 7 Figure 7 33 Duplicate Count Example Example Application That Prevents Duplicate Count With duplicate count prevention enabled the counter synchronizes both the Source and Gate signals to the 80 MHz Timebase By synchronizing to the timebase the counter detects edges on the Gate even i
121. le Two Signal Edge Separation Measurement Buffered Two Signal Edge Separation Measurement Buffered and single two signal edge separation measurements are similar but buffered measurement measures multiple intervals 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 a hardware save register On the next active edge of the Gate signal the counter begins another measurement A DMA controller transfers the stored values to host memory 7 18 ni com Chapter 7 Counters Figure 7 21 shows an example of a buffered two signal edge separation measurement AUX A A GATE A A A SOURCE LI TER Counter Value 1 2 3 1 2 3 1 2 3 3 3 3 Buffer 3 3 Figure 7 21 Buffered Two Signal Edge Separation Measurement For information about connecting counter signals refer to the Default Counter Timer Pinouts section Counter Output Applications Simple Pulse Generation 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 measure
122. le period measurement but buffered period measurement measures multiple periods The counter counts the number of rising or falling edges on the Source input between each pair of active edges on the Gate input At the end of each period on the Gate signal the counter stores the count in a hardware save register A DMA controller transfers the stored values to host memory The counter begins when it is armed The arm usually occurs in the middle of a period of the Gate input So the first value stored in the hardware save register does not reflect a full period of the Gate input In most applications this first point should be discarded Figure 7 8 shows an example of a buffered period measurement GATE SOURCE Counter Value Buffer Counter Armed Lp K 414 K 414 A 1 2 3 2 3 1 e EE NI REA P 12 EESE ERA 2 Discard Discard 2 Discard 3 2 3 3 Figure 7 8 Buffered Period Measurement Note that if you are using an external signal as the Source at least one Source pulse should occur between each active edge of the Gate signal This condition ensures that correct values are returned by the counter If this condition is not met consider using duplicate count prevention described in the Duplicate Count Prevention section For information abo
123. lock signal Each target device routes PXI_STAR to its 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 bus and setting their sample clock rates to the same value National Instruments Corporation 9 3 NI 6124 6154 User Manual Chapter 9 Digital Routing and Clock Generation Real Time System Integration RTSI Real Time System Integration RTSI is a set of bused signals 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 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 In a PXI Express system the RTSI bus consists of the RTSI bus interface and the PXI trigger signals on the PXI backplane This bus can route timing and trigger signals between several functions on as many as seven DAQ devices in the system RTSI Connector Pinout NI 6154 Only Figure 9 2 shows the RTSI connector pinout and Table 9 1 describes the RTSI signals Table 9 1 RTSI Signals Terminal RTSI Bus Signal 1 18 N
124. lock 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 1 to 16 The Frequency Output Timebase can be either the 20 MHz Timebase divided by 2 or the 100 kHz Timebase The duty cycle of Frequency Output is 5096 if the divider is either 1 or an even number For an odd divider suppose the divider is set to D 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 28 shows the output waveform of the frequency generator when the divider is set to 5 Frequency Output Timebase FREQ OUT Divisor 5 Figure 7 28 Frequency Generator Output Waveform National Instruments Corporation 7 23 NI 6124 6154 User Manual Chapter 7 Counters 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 DO Sample Clock and DI Sample Clock 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 freque
125. ls waveform generation 5 6 training xv ni com training and certification NI resources B 1 transducers 2 5 trigger arm start 7 31 pause 7 31 PXI 9 8 PXI STAR 9 8 Star Trigger 9 8 start 7 31 triggering analog edge 11 3 analog edge with hysteresis 11 4 analog input 4 6 analog output 5 4 analog types 11 3 analog window 11 6 counter 7 31 digital waveform 6 3 overview 11 1 with a digital source 11 1 with an analog source 11 2 troubleshooting NI resources B 1 two signal edge separation measurement 7 17 buffered 7 18 single 7 18 types of analog triggers 11 3 U using PFI terminals as static digital I Os 8 5 as timing input signals 8 4 to export timing output signals 8 4 RTSI as outputs 9 5 terminals as timing input signals 9 6 using PFI terminals as static digital I Os 8 5 National Instruments Corporation I 9 Index W waveform generation digital 6 5 triggering 6 3 waveform generation timing signals AO Pause Trigger 5 10 AO Sample Clock 5 6 AO Sample Clock Timebase 5 8 AO Start Trigger 5 9 summary 5 6 Web resources B 1 wiring 4 11 working voltage range 4 4 X X1 encoding 7 14 X2 encoding 7 15 X4 encoding 7 15 NI 6124 6154 User Manual
126. mebase Signal You can select any PFI or RTSI pin as well as many other internal signals as the AO Sample Clock Timebase ao SampleClockTimebase signal This signal is not available as an output on the I O connector AO Sample Clock Timebase is divided down to provide the Onboard Clock source for the AO Sample Clock You specify whether the samples begin on the rising or falling edge of AO Sample Clock Timebase You might use the AO Sample Clock Timebase signal 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 the AO Sample Clock signal rather than the AO Sample Clock Timebase If you do not specify an external sample clock timebase NI DAQmx uses the Onboard Clock NI 6124 6154 User Manual 5 8 ni com Chapter 5 Analog Output Figure 5 8 shows the timing requirements for the AO Sample Clock Timebase signal tp 50 ns minimum ty 23 ns minimum Figure 5 8 AO Sample Clock Timebase Timing Requirements The maximum allowed frequency is 20 MHz with a minimum pulse width of 10 ns high or low There is no minimum frequency Unless you select an external source either the 20MHzTimebase or 100kHzTimebase generates the AO Sample Clock Timebase signal AO Start Trigger Signal You can use the AO Start Trigger signal ao StartTrigger to initiate a wavef
127. n Event signal 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 NI 6124 6154 User Manual 6 8 ni com Chapter 6 Digital I O The Change Detection Event signal also can be used to detect changes on digital output events DI Change Detection Applications for Non Isolated Devices NI 6124 Only 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 acquisition 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 samples You also can use the Change Detection Event signal to trigger DO or counter generations Connecting Digital 1 0 Signals on Non Isolated Devices NI 6124 Only The DIO signals P0 0 7 PFI lt 0 7 gt P1 lt 0 7 gt and PFI lt 8 15 gt P2 lt 0 7 gt are referenced to D GND You can individually program each line as an input or output Figure 6 4 shows PFI lt 0 3 gt P1 lt 0 3 gt configured for digital input and PFI lt 4 7 gt P1 lt 4 7 gt configured for digital output Digital input applic
128. n against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user is required to correct the interference at their own expense Canadian Department of Communications This Class A digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations Cet appareil num rique de la classe A respecte toutes les exigences du R glement sur le mat riel brouilleur du Canada Compliance with EU Directives Users in the European Union EU should refer to the Declaration of Conformity DoC for information pertaining to the CE marking Refer to the Declaration of Conformity DoC for this product for any additional regulatory compliance information 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 The CE marking Declaration of Conformity contains important supplementary information and instructions for the user or installer Contents About This Manual CGOMVENEIONS ERE Seek nk acces Ei ees E E oye ne is Sead ne soak eee xi Related Documentation eeeeeeeeeeeeee
129. nal Output signal is equal to the frequency of the Source input divided by M N For information about connecting counter signals refer to the Default Counter Timer Pinouts section Finite Pulse Train Generation This function generates a train of pulses of predetermined duration This counter operation requires both counters The first counter for this example Counter 0 generates a pulse of desired width The second counter Counter 1 generates the pulse train which is gated by the pulse of the first counter The routing is done internally Figure 7 26 shows an example finite pulse train timing diagram Counter 0 Paired Counter Counter 1 Generation Complete Figure 7 26 Finite Pulse Train Timing Diagram 7 22 ni com Chapter 7 Counters Frequency Generation You can generate a frequency by using a counter in pulse train generation mode or by using the frequency generator circuit Using the Frequency Generator The frequency generator can output a square wave at many different frequencies The frequency generator is independent of the two general purpose 32 bit counter timer modules on S Series devices Figure 7 27 shows a block diagram of the frequency generator Frequency Output 20 MHz Timebase 100 kHz Timebase 2 Timebase Frequency Generator FREQ OUT Divisor 1 16 Figure 7 27 Frequency Generator B
130. nalog Output The NI 6124 supplies two channels of AO voltage at the I O connector The range is fixed at bipolar 10 V The AO channels on the NI 6124 contain 16 bit DACs that are capable of 4 MS s for one channel or 2 5 MS s for each of two channels Refer to the NI 6124 Specifications for more detailed information about the AO capabilities of the NI 6124 National Instruments Corporation A 1 NI 6124 6154 User Manual Appendix A Device Specific Information 3 Note The AO channels do not have analog or digital filtering hardware and do produce images in the frequency domain related to the update rate NI 6124 1 0 Connector Pinout Figure A 1 shows the pin assignments for the 68 pin connector on the NI 6124 AIO 68 34 Al0 AI 0 GND 67 33 Al 14 Al1 66 32 AI 1 GND AI2 4 65 31 AI2 Al 2 GND 64 30 Al3 AI3 63 29 AI3 GND NC 62 28 NC NC 61 27 NC NC 60 26 NC NC 59 25 NC NC 58 24 NC NC 57 23 NC NC 56 22 AOO AO GND 55 21 AO 1 AO GND 54 20 NC D GND 53 19 P0 4 P0 0 52 18 D GND BOS 51 17 Po 1 D GND 50 16 P0 6 P0 2 49 15 D GND P0 7 48 14 5V PO 3 47 13 D GND PFI 11 P2 3 46 12 D GND PFI 10 P2 2 45 11 PFI 0 P1 0 D GND 44 10 PFI 1 P1 1 PEL2 P 1 2 43 9 D GND PFI 3 P1 3 42 8 5V PFI 4 P1 4 41 7 DGND PFI 13 P2 5 40 6 PFIS
131. ncoders 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 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 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 NI 6124 6154 User Manual ni com Chapter 7 Counters Figure 7 14 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 ee o om v Ch B Ud a ton Counter Value 5 X 6 X 7 7 X 6 X 5 Figure 7 14 X1 Encoding 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 15 Ch A l ChB i e
132. ncy 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 NI 6124 6154 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 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 and the pulse on the output will increase 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 7 24 ni com Chapter 7 C
133. nd signal conditioning system can include functions such as signal amplification attenuation filtering electrical isolation simultaneous sampling and multiplexing In addition many transducers require excitation currents or voltages bridge completion linearization 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 gages 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 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 Content
134. nformation about isolation and digital isolators refer to the NI 6154 Isolation and Digital Isolators section of Appendix A Device Specific Information AI FIFO A large first in first out FIFO buffer located inside the FPGA holds data during A D conversions to ensure that no data is lost S Series devices can handle multiple A D conversion operations with DMA interrupts or programmed I O Analog Input Terminal Configuration NI 6124 6154 User Manual S Series devices support only differential DIFF input mode The channels on S 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 4 2 ni com Chapter 4 Analog Input Caution Exceeding the differential and common mode input ranges distorts the input A 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 S Series device Input Polarity and Range Input range refers to the set of input voltages that an analog input channel can digitize with the specified accuracy On some S Series devices you can individually program the input range of each AI channel Th
135. ng PXI Express connectivity four simultaneously sampling 16 bit analog inputs two 16 bit voltage analog outputs 24 lines of bidirectional DIO and two general purpose 32 bit counter timers The NI 6154 S Series is an isolated PCI device featuring four isolated differential 16 bit analog inputs four isolated 16 bit analog outputs six DI lines four DO lines and two general purpose 32 bit counter timers If you have not already installed your device refer to the DAQ Getting Started Guide For specifications arranged by S Series device family refer to the specifications document for your device on ni com manuals Before installing your DAQ device you must install the software you plan to use with the device Installing NI DAQmx The DAQ Getting Started Guide which you can download at ni com manuals offers NI DAQmx users step by step instructions for installing software and hardware configuring channels and tasks and getting started developing an application Installing Other Software If you are using other software refer to the installation instructions that accompany your software National Instruments Corporation 1 1 NI 6124 6154 User Manual Chapter 1 Getting Started Installing the Hardware The DAQ Getting Started Guide contains non software specific information about how to install PCI and PXI Express devices as well as accessories and cables Device Self Calibration NI recommends that you s
136. ng when it is armed In other applications such as single pulse width measurement the counter begins waiting for the Gate signal when it 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 Routing Signals to Counter 7 HW Arm Input Any of the following signals can be routed to the Counter n HW Arm input e RTSI 0 75 e PHI 0 15 e AIT Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e PXI STAR e Analog Comparison Event Counter Internal Output can be routed to Counter 0 HW Arm Counter 0 Internal Output can be routed to Counter 1 HW Arm Some of these options may not be available in some driver software 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 National Instruments Corporation 7 29 NI 6124 6154 User Manual Chapter 7 Counters With pulse or pulse train generation tasks the counter drives the pulse s on the Counter n Internal Output signal The Counter n Internal Output signal can be
137. nnected 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 6 shows how to connect a ground referenced signal source to a channel on a non isolated S Series device National Instruments Corporation 4 7 NI 6124 6154 User Manual Chapter 4 Analog Input Non Isolated S Series Device Al 0 EE Ground Referenced Signal Vs r4 Source 2 i al Al 0 Measured Commot Voltage Mode Noise and Ground Vem Potential SIT Al 0 GND am o a 1 O Connector Al 0 Connections Shown Figure 4 3 Differential Connection for Ground Referenced Signals on Non Isolated Devices Figure 4 4 shows how to connect a ground referenced signal source to a channel on an isolated S Series device D Isolated S Series Device ins T Isolation Al O nstrumentation Barrier Gouna Lot Amplifier i 1 Referenced Signal dd T T Digital A Measured
138. not the name of the terminal where the counter measures or generates the digital signal 2 Virtual a collection of property settings that can include a name a physical channel input terminal connections the type of measurement or generation and scaling information You can define NI DAQmx virtual channels outside a task global or inside a task local Configuring virtual channels is integral to every measurement you take in NI DAQmx In NI DAQmx you can configure virtual channels either in MAX or in a program and you can configure channels as part of a task or separately Any connection back to the protective conductor earth ground See also earth ground Centimeter Complementary metal oxide semiconductor Common mode rejection ratio a measure of the capability of an instrument to reject a signal that is common to both input leads A Eurocard configuration of the PCI bus for industrial applications A feature that allows you to clock digital I O on the same clock as analog I O A circuit that counts external pulses or clock pulses timing The manner in which a signal is connected from one circuit to another When applied to instrument products or DAQ cards it refers to the input signal coupling technique Counter signal National Instruments Corporation G 3 NI 6124 6154 User Manual Glossary D A DAC DAQ DAQ device DAQ STC data acquisition DAQ dB dBc DC device DI DIFF
139. nt Studio Refer to the DAQ Assistant Help for additional information about generating code You also can create channels and tasks and write your own applications in your ADE using the NI DAQmx API For help with NI DAQmx methods and properties refer to the NI DAQmx NET Class Library or the NI DAQmx Visual C Class Library included in the NJ Measurement Studio Help For general help with programming in Measurement Studio refer to the NJ Measurement Studio Help which is fully integrated with the Microsoft Visual Studio NET help To view this help file in Visual Studio NET select Measurement Studio NI Measurement Studio Help National Instruments Corporation xiij NI 6124 6154 User Manual About This Manual To create an application in Visual C Visual C or Visual Basic NET follow these general steps 1 In Visual Studio NET select File New Project to launch the New Project dialog box 2 Find the Measurement Studio folder for the language you want to create a program in 3 Choose a project type You add DAQ tasks as a part of this step ANSI C without NI Application Software The NI DAQmx Help contains API overviews and general information about measurement concepts Select Start All Programs National Instruments NI DAQ NI DAQmx Help The NI DAQmx C Reference Help describes the NI DAQmx Library functions which you can use with National Instruments data acquisition devices to develop instrumentation a
140. nts Using Two Pulse Encoders esses 7 16 Buffered Sample Clock Position Measurement 7 17 Two Signal Edge Separation Measurement esee 7 17 Single Two Signal Edge Separation Measurement 7 18 Buffered Two Signal Edge Separation Measurement 7 18 Counter Output Applications eeseeseseeseeeeeeee nennen eene rte eene 7 19 Simple Pulse Generation 0e ete e ede tete etie des rte eR let 7 19 Single Pulse Generation sisii rrieta 7 19 Single Pulse Generation with Start Trigger sese 7 20 Retriggerable Single Pulse Generation sees 7 20 Pulse Train Generation une tete pede irre o e 7 21 Continuous Pulse Train Generation see 7 21 Finite Pulse Train Generation 7 22 Frequency Generation ete ctt der rbd dtes 7 23 Using the Frequency Generator eee 7 23 Frequency Division ato ee eate dotada erede 7 24 Pulse Generation for ETS sse rennen eene 7 24 Counter Timing Signals ee eg tte eret ette dat sa 7 25 Counter n Source Sigh lirsciis miehiin ine aeaieie a 7 26 Routing a Signal to Counter n Source sese 7 26 Routing Counter n Source to an Output Terminal 7 27 Counter 5n Gate Signal edere ite ee n atte 7 27 Routing a Signal to Counter n Gate eee
141. oducts are FCC Class A products Depending on where it is operated this Class A product could be subject to restrictions in the FCC rules In Canada the Department of Communications DOC of Industry Canada regulates wireless interference in much the same way Digital electronics emit weak signals during normal operation that can affect radio television or other wireless products All Class A products display a simple warning statement of one paragraph in length regarding interference and undesired operation The FCC rules have restrictions regarding the locations where FCC Class A products can be operated Consult the FCC Web site at www fcc gov for more information FCC DOC Warnings This equipment generates and uses radio frequency energy and if not installed and used in strict accordance with the instructions in this manual and the CE marking Declaration of Conformity may cause interference to radio and television reception Classification requirements are the same for the Federal Communications Commission FCC and the Canadian Department of Communications DOC Changes or modifications not expressly approved by NI could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protectio
142. oftware timed All DO lines are controlled by the same output enable When a digital output line is enabled all other digital output lines will also be enabled and driven to a default value of 0 You can select the up down control input of general purpose counters 0 and 1 from any of the six digital input lines National Instruments Corporation 6 11 NI 6124 6154 User Manual Chapter 6 Digital I O 1 0 Protection for Isolated Devices NI 6154 Only Each DIO and PFI signal is protected against over voltage under voltage and over current conditions as well as ESD events However you should avoid these fault conditions by following these guidelines e Do not connect any DO line to any external signal source ground signal or power supply e Understand the current requirements of the load connected to DO 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 Do not drive any DI 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 Connecting Digital 1 0 Signals on Isolated Devices NI 6154 Only The DIO signals PFI lt 0 5 gt P0 lt 0 5 gt and PFI lt 6
143. orm generation If you do not use triggers you begin a generation with a software command Using a Digital Source To use AO Start Trigger specify a source and an edge The source can be an external signal connected to any PFI or RTSI lt 0 6 gt pin The source can also 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 in version 8 0 or later for more information National Instruments Corporation 5 9 NI 6124 6154 User Manual Chapter 5 Analog Output Figure 5 9 shows the timing requirements of the AO Start Trigger digital source Rising Edge Polarity Falling Edge Polarity ty 10 ns minimum Figure 5 9 AO Start Trigger Timing Requirements Using an Analog Source When you use an analog trigger source the waveform generation begins on the first rising edge of the Analog Comparison Event signal For more information refer to the Triggering with an Analog Source section of Chapter 11 Triggering Routing AO Start Trigger Signal to an Output Terminal You can route ao StartTrigger out to any PFI lt 0 15 gt or RTSI lt 0 7 gt terminal The output is an active high pulse PFI terminals are configured as inputs by default AO Pause Trigger Signal NI 6124 6154 User Manual You can use the AO Pause Trigger signal ao PauseTrigger to mask off samples in a DAQ sequence That is when AO Pause Trigger is active
144. ot Connected Do not connect signals to these terminals 19 21 23 25 27 29 31 33 D GND 20 RTSIO 22 RTSI 1 24 RTSI2 26 RTSI3 28 RTSI 4 30 RTSI5 NI 6124 6154 User Manual 9 4 ni com Chapter 9 Digital Routing and Clock Generation Table 9 1 RTSI Signals Continued Terminal RTSI Bus Signal 32 RTSI 6 34 RTSI 7 Terminal 34 Terminal 33 Terminal 1 Figure 9 2 S Series PCI Device RTSI Pinout Using RTSI as Outputs 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 AI Reference Trigger ai ReferenceTrigger e AT Convert Clock ai ConvertClock e AI Sample Clock ai SampleClock e AO Sample Clock ao SampleClock e AO Start Trigger ao StartTrigger e AO Pause Trigger ao PauseTrigger e 10 MHz Reference Clock National Instruments Corporation 9 5 NI 6124 6154 User Manual Chapter 9 Digital Routing and Clock Generation Counter n Source Gate Z Internal Output Change Detection Event Analog Comparison Event FREQ OUT PFI 0 5 ik Note Signals with 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 S Series functions Each RTSI terminal can be routed to any of the following signals AI Convert Clock
145. ounters 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 29 shows an example of pulse generation for ETS the delay from the trigger to the pulse increases after each subsequent Gate active edge cate g p i pt OUT D1 D2 D1 AD D3 D1 2AD Figure 7 29 Pulse Generation for ETS For information about connecting counter signals refer to the Default Counter Timer Pinouts section Counter Timing Signals S 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 n A Signal e Counter n B Signal e Counter n Z Signal e Counter n Up Down Signal e Counter n HW Arm Signal e Counter n Internal Output Signal e Counter n TC Signal e Frequency Output Signal In this section n refers to either Counter 0 or 1 For example Counter n Source refers to two signals Counter 0 Source the source input to Counter 0 and Counter 1 Source the source input to Counter 1 National Instruments Corporation 7 25 NI 6124 6154 User Manual Chapter 7 Counters Counter 7 Source Signal NI 6124 6154 User Manual The selected edge of the Counter n Source signal increments and decrements the counter val
146. pter 3 1 0 Connector Table 3 2 NI 6154 I O Connector Signal Descriptions Continued I O Connector Pin Reference Direction Signal Description PFI lt 0 5 gt P0 lt 0 5 gt D GND Input Programmable Function Interface or Static Digital Input Channels 0 to 5 Each of these terminals can be individually configured as a PFI terminal or a digital input terminal As an input each PFI terminal can be used to supply an external source for AI or AO timing signals or counter timer inputs Note PFI lt 0 5 gt P0 lt 0 5 gt are isolated from earth ground and chassis ground PFI lt 6 9 gt P1 lt 0 3 gt D GND Output Programmable Function Interface or Static Digital Output Channels 6 to 9 Each of these terminals can be individually configured as a PFI terminal or a digital output terminal As a PFI output you can route many different internal AI or AO timing signals to each PFI terminal You also can route the counter timer outputs to each PFI terminal Note PFI lt 6 9 gt P1 lt 0 3 gt are isolated from earth ground and chassis ground D GND Digital Ground D GND supplies the reference for input PFI lt 0 5 gt P0 lt 0 5 gt and output PFI lt 6 9 gt P1 lt 0 3 gt Note D GND is isolated from earth ground and chassis ground NC No Connect Do not connect signals to these terminals 5 V Power Source NI 6124 Only The 5 V pins on t
147. put Waveform Generation Timing Signals There is one AO Sample Clock that causes all AO channels to update simultaneously Figure 5 5 summarizes the timing and routing options provided by the analog output timing engine RTSI 7 e 3 Master Timebase PFI 0 9 Ctr1InternalOutput Onboard RTSI 0 6 ao SampleClock PELO Mi ao SampleClock Clock Timebase Onboard RTSI 0 6 20 MHz Timebase M Clock s 200 Divisor B Figure 5 5 Analog Output Engine Routing Options S Series devices feature the following waveform generation timing signals e AO Sample Clock Signal e AO Sample Clock Timebase Signal AO Start Trigger Signal e AO Pause Trigger Signal A0 Sample Clock Signal NI 6124 6154 User Manual You can use the AO Sample Clock ao SampleClock signal to initiate AO samples Each sample updates the outputs of all of the DACs The source of the AO Sample Clock signal can be internal or external You can specify whether the DAC update begins on the rising edge or falling edge of the AO Sample Clock signal Using an Internal Source By default AO Sample Clock is created internally by dividing down the AO Sample Clock Timebase signal Several other internal signals can be routed to the sample clock Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information 5 6 ni com Chapter 5 Analog Output
148. put signal For the 125 ns and 6 425 us filter settings the jitter is up to 25 ns On the 2 56 ms setting the jitter is up to 10 025 us When a PFI input is routed directly to RTSI or a RTSI input is routed directly to PFI the S Series device does not use the filtered version of the input signal Refer to the KnowledgeBase document Digital Filtering with M Series and CompactDA Q for more information about digital filters and counters To access this KnowledgeBase go to ni com info and enter the info code rddfms Prescaling allows the counter to count a signal that is faster than the maximum timebase of the counter S 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 National Instruments Corporation 7 33 NI 6124 6154 User Manual Chapter 7 Counters External Signal Prescaler Rollover Used as Source by Counter Counter Value 0 X 1 Figure 7 31 Prescaling Prescaling is intended to be used for frequency measurement where the
149. quired For more information about start and reference triggers refer to the Analog Input Triggering section In order to provide all of the timing functionality described throughout this section the DAQ STC2 provides an extremely powerful and flexible timing engine For more information about all of the clock routing and timing options that the analog input timing engine provides refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later S Series devices feature the following analog input timing signals e Al Sample Clock Signal e Al Sample Clock Timebase Signal e AI Convert Clock Signal e AI Convert Clock Timebase Signal e AI Hold Complete Event Signal e AI Start Trigger Signal e AI Reference Trigger Signal Al Sample Clock Signal NI 6124 6154 User Manual Use the AI Sample Clock ai SampleClock signal to initiate a set of measurements Your S Series device samples the AI signals of every channel in the task once for every AI Sample Clock 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 A programmable internal counter divides down the sample clock timebase 4 14 ni com Chapte
150. r 4 Analog Input Several other internal signals can be routed to AI Sample Clock through RTSI Refer to Device Routing in MAX in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information Using an External Source Use one of the following external signals as the source of AI Sample Clock e PHI 0 15 e RTSI 0 75 e PXI STAR 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 or RTSI lt 0 7 gt terminal This pulse is always active high You can specify the output to have one of two behaviors With the pulse behavior your DAQ device briefly pulses the PFI terminal once for every occurrence of AI Sample Clock With level behavior your DAQ device drives the PFI terminal high during the entire sample All PFI terminals are configured as inputs by default Other Timing Requirements A counter 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 an internally generated AI Sample Clock you also can specify 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 National Instruments Corporation 4 15 NI 6124 6154 User Manua
151. r Non Isolated Devices NI 6124 devices have 16 PFI pins in addition to eight lines of bidirectional DIO signals e PFI for Isolated Devices NI 6154 devices have 10 equivalent directional PFI pins that can be independently configured as an input or output PFI for Non Isolated Devices NI 6124 Only Non isolated S Series devices have 16 Programmable Function Interface PFI signals In addition these devices have eight 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 National Instruments Corporation 8 1 NI 6124 6154 User Manual Chapter 8 Programmable Function Interfaces PFI Each PFI input also has a programmable debouncing filter Figure 8 1 shows the circuitry of one PFI line Each PFI line is similar Static DO Buffer PFI x P1 or H 1 O Protection Le PFI x P2 Direction Control Static DI Weak Pull Down Timing Signals To Input Timing a Signal Selectors PFI Filters Figure 8 1 PFI Circuitry on Non Isolated S Series Devices 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 calle
152. rcuitry In addition 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 6 ni com Device Specific Information This appendix includes device specific information about the following S Series devices e NI6124 e NI6154 NI 6124 The NI 6124 is a Plug and Play multifunction analog digital and timing I O device for PXI Express bus computers The NI 6124 features e Four simultaneously sampling analog inputs at 4 MS s with one 16 bit A D converter ADC per channel e Two 16 bit D A converters DACs with voltage outputs e Eight lines of TTL compatible correlated DIO e 16 lines of TTL compatible static DIO e Two general purpose 32 bit counter timers e Increased common mode noise rejection through differential signal connection Because the NI 6124 has no DIP switches jumpers or potentiometers it can be easily calibrated and configured in software NI 6124 A
153. re each line individually to power up as or 0 Refer to the NI DAQmx Help or the LabVIEW Help in version 8 0 or later for more information about setting power up states in NI DAQmx or MAX National Instruments Corporation 8 9 NI 6124 6154 User Manual Digital Routing and Clock Generation The digital routing circuitry has the following main functions Clock Routing 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 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 S Series device Other devices in your system through RTSI User input through the PFI terminals User input through the PXI_STAR terminal Routes and generates the main clock signals for the S Series device Figure 9 1 shows the clock routing circuitry of an S Series device 10 MHz RefCIk To RTSI lt 0 7 gt Onboard 80 MHz Oscillator External Reference RTSI lt 0 7 gt 4 Clock PXI_CLK10 o PXI STAR 4 PLL Output Selectors e 80 MHz Timebase 200 20 MHz Timebase 100 kHz Timeba
154. rement 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 19 shows an example of a buffered edge X1 position measurement Counter Sample Clock Armed i i Sample on Rising Edge ChA Ch B o d 4 TE B UD e Av Count 1 Buffer Figure 7 19 Buffered Position Measurement 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 addition
155. res the digital samples S 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 National Instruments Corporation 6 3 NI 6124 6154 User Manual Chapter 6 Digital I O NI 6124 6154 User Manual You can configure each DIO line to be an output a static input or a digital waveform acquisition input DI Sample Clock Signal NI 6124 Only Use the DI Sample Clock di SampleClock signal to sample the PO 0 7 terminals and store the result in the DI waveform acquisition FIFO These S Series devices do not have the ability to divide down a timebase to produce an internal DI Sample Clock for digital waveform acquisition Therefore you must route an external signal or one of many internal signals from another subsystem to be the DI Sample Clock For example you can correlate digital and analog samples in time by sharing your AI Sample Clock or AO Sample Clock as the source of your DI Sample Clock To sample a digital signal independent of an AI AO or DO operation you can configure a counter to generate the desired DI Sample Clock or use an external signal as the source of the 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 intern
156. rigger 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 National Instruments Corporation 4 19 NI 6124 6154 User Manual Chapter 4 Analog Input NI 6124 6154 User Manual 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 10 shows the final buffer Reference Trigger Pretrigger Samples l T Complete Buffer Figure 4 10 Reference Trigger Final Buffer 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 PHI lt 0 15 gt e RTSI 0 75 e PXI STAR 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 in version 8 0 or later 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 Sourc
157. riggering actions start and reference An analog or digital hardware trigger can initiate these actions All S Series devices support digital triggering and some also support analog triggering To find your device s triggering options refer to the specifications document for your device The AI Start Trigger Signal and AI Reference Trigger Signal sections contain information about the analog input trigger signals Refer to Chapter 11 Triggering for more information about triggers Table 4 1 summarizes the recommended input configuration for different types of signal sources for S Series devices Table 4 1 S Series Analog Input Signal Configuration Floating Signal Sources Not Connected to Earth Ground Ground Referenced Signal Sources Examples Example Ungrounded thermocouples Plug in instruments with Signal conditioning with isolated non isolated outputs outputs Input Battery devices Ne ALO Al 0 Non Isolated Ov Ls V F 2 AI 0 o Differential MA Ur 9 DIFF R AI GND AI GND NI 6154 a x Isolated Al Isolation Isolation Differential AL Barrier e m j Barrier v JE NI 6124 6154 User Manual 4 6 ni com Chapter 4 Analog Input Refer to the Analog Input Terminal Configuration section for descriptions of the inp
158. rison Event AI Circuitry ADC i i i AIO PGIA i i ADC f i Ali PGIA m Analog Mux Trigger 1 Detection ADC i t i Al2 PGIA ADC 1 i Al 3 PGIA T Analog Trigger Circuitry Output W AO Circuitry Counter Circuitry Figure 11 2 Analog Trigger Circuitry You must specify a source and an analog trigger type The source can be any analog input channel NI 6124 6154 User Manual 11 2 ni com Chapter 11 Triggering Analog Input Channel NI 6124 Only You can select any analog input channel to drive the instrumentation amplifier The instrumentation amplifier amplifies the signal as determined by the input mode and the input polarity and range The output of the instrumentation amplifier then drives the analog trigger detection circuit By using the instrumentation amplifier you can trigger on very small voltage changes in the input signal For more information refer to the Analog Trigger Accuracy section Analog Trigger Actions NI 6124 Only 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 Analog input acquisitions e Analog output generation e Counter behavior i Note Refer to
159. rmation about digital filters and counters To access this KnowledgeBase go to ni com info and enter the info code rddfms PXI Clock and Trigger Signals PXI CLK10 PXI Triggers PXI STAR Trigger NI 6124 6154 User Manual NI 6124 Only PXI clock and trigger signals are only available on PXI and PXI Express devices NI 6124 Only 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 NI 6124 Only A PXI chassis provides eight bused trigger lines to each module in a system Triggers may be passed from one module to another 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 S Series devices the eight PXI trigger signals are synonymous with RTSI lt 0 7 gt 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 NI 6124 Only In a PXI system the Star Trigger bus implements a dedicated trigger line between the first peripheral slot adjacent to the system slot and the other peripheral slots The Star Trigger can be used to synchronize multiple devices or to s
160. s of interest while rejecting common mode signals under the following three conditions The common mode voltage V m which is equivalent to subtracting AI lt 0 x gt GND from AI 0 x must be less than 10 V This V is a constant for all range selections The signal voltage V which is equivalent to subtracting AI 0 x 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 The total working voltage of the positive input which is equivalent to Vem V or subtracting AI 0 x 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 iyi Note All inputs are protected at up to 35 V NI 6154 Only The isolation features of the NI 6154 improve the working voltage range in your applications Refer to the NI 6154 Specifications for more information Al Data Acquisition Methods NI 6124 6154 User Manual When performing analog input measurements there are several different data acquisition methods available You can either 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 to the hardware to initiate each ADC conversion In NI DAQmx
161. s on counter inputs 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 7 4 Table 7 4 Filters N Filter Clocks Pulse Width Pulse Width Needed to Guaranteed to Guaranteed to Filter Setting Pass Signal Pass Filter Not Pass Filter 125 ns 5 125 ns 100 ns 6 425 us 257 6 425 Us 6 400 us 2 56 ms 101 800 2 56 ms 2 54 ms Disabled NI 6124 6154 User Manual 7 82 ni com Chapter 7 Counters The filter setting for each input can be configured independently On power up the filters are disabled Figure 7 30 shows an example of a low to high transition on an input that has its filter set to 125 ns N 5 RTSI PFI or PXI_STAR Terminal Filter Clock 40 MHz Filtered Input Filtered input goes high when terminal 1 12 3 4 12 3 4 5 is sampled high on five consecutive filter clocks Prescaling Figure 7 30 Filter Example Enabling filters introduces jitter on the in
162. s tab National Instruments Corporation 2 5 NI 6124 6154 User Manual Chapter 2 DAQ System Overview e Ifyou are using other application software refer to Common Sensors in the NI DAQmx Help or the LabVIEW Help in version 8 0 or later Programming Devices in Software NI 6124 6154 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 NI DAQmx 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 NI DAQ includes two NI DAQ drivers Traditional NI DAQ Legacy and NI DAQmx DAQ STC2 based S Series devices use the NI DAQmx driver Each driver has its own API hardware configuration and software configuration Refer to the DAQ Getting Started Guide for more information about the two drivers 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 and LabWindows CVI examples open the National Instruments Example Finder In LabVIEW and LabWindows CVI select Help
163. s that are referenced to a system ground such as the earth or a building ground Also called ground signal sources The time for a signal to transition from 10 to 90 of the maximum signal amplitude Root mean square 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 G 8 ni com S s scatter gather SCXI sensor settling time signal conditioning SOURCE system noise T task terminal count toh lesu National Instruments Corporation G 9 Glossary Seconds Samples Samples per second used to express the rate at which a digitizer or D A converter or DAQ device samples an analog signal The term used to describe very high speed DMA burst mode transfers that are made only by the bus master and where noncontiguous blocks of memory are transparently mapped by the controller to appear as a seamless piece of memory 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 SCXI is an open standard available for all vendors A device that responds to a physical stimulus heat light sound pressure motion flow and so on and produces a corresponding electrical signal
164. se National Instruments Corporation Figure 9 1 S Series Clock Routing Circuitry NI 6124 6154 User Manual Chapter 9 Digital Routing and Clock Generation 80 MHz Timebase 20 MHz Timebase 100 kHz Timebase The 80 MHz Timebase can be used as the Source input to the 32 bit general purpose counter timers The 80 MHz Timebase is generated from the following sources Onboard oscillator e External signal by using the external reference clock The 20 MHz Timebase normally generates 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 80 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 NI 6124 6154 User Manual The external reference clock can be used as a source for the internal timebases 80 MHz Timebase 20 MHz Timebase and 100 kHz Timebase on an S 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 0 75 e PXI CLKIO e PXI STAR The external reference clock is
165. ssis ground of the PC or chassis where the device is installed The isolated ground is not connected to the chassis ground of the PC or chassis The isolated ground can be at a higher or lower voltage relative to the non isolated ground All analog measurements are made relative to the isolated ground signal The isolated ground is an input to the NI 6154 device The user must connect this ground to the ground of the system being measured or controlled For more information refer to the following e The Connecting Analog Input Signals section of Chapter 4 Analog Input Figure 4 2 Isolated S Series Analog Input Block Diagram e The Connecting Analog Output Signals section of Chapter 5 Analog Output e Figure 5 2 Isolated S Series Device Analog Output Block Diagram e The Connecting Digital I O Signals on Isolated Devices section of Chapter 6 Digital I O e Figure 6 5 Isolated S Series Devices Digital I O Block Diagram Chapter 8 Programmable Function Interfaces PFI Digital Isolation The NI 6154 uses digital isolators Unlike analog isolators digital isolators do not introduce any analog error in the measurements taken by the device The A D converter used for analog input is on the isolated side of the device The analog inputs are digitized before they are sent across the isolation barrier Similarly the D A converters used for analog output are on the isolated side of the device Benefits of an Isolated DAQ Device
166. t accuracy by taking the following precautions e Use differential AI 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 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 S Series device from high current or high voltage lines These lines can induce currents in or voltages on the signal lines of the S 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 Donot 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 Sign
167. tal waveform acquisition and generation e Static DIO signals e True 5 V high current drive DO e PLL for clock synchronization e PCI PXI interface Independent scatter gather DMA controllers for all acquisition and generation functions Calibration Circuitry Calibration is the process of making adjustments to a measurement device to reduce errors associated with measurements Without calibration the measurement results of your device will drift over time and temperature Calibration adjusts for these changes to improve measurement accuracy and ensure that your product meets its required specifications DAQ devices have high precision analog circuits that must be adjusted to obtain optimum accuracy in your measurements Calibration determines what adjustments these analog circuits should make to the device measurements During calibration the value of a known high precision measurement source is compared to the value your device acquires or generates The adjustment values needed to minimize the difference between the known and measured values are stored in the EEPROM of the device as calibration constants Before performing a measurement these constants are read out of the EEPROM and are used to adjust the calibration hardware on the device NI DAQmx determines when this is necessary and does it automatically If you are not using NI DAQmx you must load these values yourself You can calibrate S Series devices in two ways throu
168. ter n B 7 28 Counter n Gate 7 27 Counter n HW Arm 7 29 Counter n Internal Output 7 29 Counter n Source 7 26 Counter n TC 7 29 Counter n Up Down 7 29 Counter n Z 7 28 counters 7 25 DI Sample Clock 6 4 DO Sample Clock 6 5 exporting timing output using PFI terminals 8 4 FREQ OUT 7 30 Frequency Output 7 30 simple pulse generation 7 19 single period measurement 7 6 point edge counting 7 2 pulse generation 7 19 retriggerable 7 20 with start trigger 7 20 pulse width measurement 7 4 semi period measurement 7 8 two signal edge separation measurement 7 18 NI 6124 6154 User Manual I 8 software 1 1 AI applications 4 21 AO applications 5 11 DIO applications for isolated devices 6 13 NI resources B 1 programming devices 2 6 routing signals in 9 10 specifications device 1 3 NI 6124 A 6 NI 6154 A 13 start trigger 7 31 static DIO 6 2 S Series isolated devices NI 6154 6 11 using PFI terminals as 8 5 support technical B 1 synchronization modes 7 37 80 MHz source 7 38 external source 7 39 other internal source 7 39 synchronizing multiple devices 9 3 synchronous counting mode 7 34 system timing controller DAQ STC2 isolated devices 2 3 T technical support xv B 1 terminals connecting counter 7 30 NI DAQmx default counter 7 30 Timebase 100 kHz 9 2 20 MHz 9 2 80 MHz 9 2 timing output signals exporting using PFI terminals 8 4 timing signa
169. terface Control Control 1 s 1RTSI Bus iming yoiDital voi Interface CAL 16 8 ERI MUX ADC g gt A00 AO 0 z le PGIA 16 Bit BK pe e AL CAL pas SAP IS X ADC 9 AO 1 AO 1 5 le PGIA 16 Bit 9 em S DAC o sepu etre ete eme j 8 T FICA Al 2 MUX 16 8 o a p ADI 2 OL a S A02 A02 5 ole GIA 16 Bit g 5 DAC ___y Al3 Ly UR 16 Bit 9 Z3 ADC 2 03 AO 3 le BGIA 16 Bit 9 DAC 2 Sian Voltage Regulation PCI Connector Figure A 4 NI 6154 Block Diagram NI 6154 Cables and Accessories This section describes some of the cable and accessory options for the NI 6124 6154 User Manual NI 6154 For more specific information about these products refer to ni com Using Screw Terminals You can connect signals to your DAQ device using a screw terminal accessory such as e CB 37F LP unshielded I O connector block with 37 pin D SUB 4 10 Appendix A Device Specific Information e CB 37FH 37 pin screw terminal block horizontal DIN rail mount e CB 37FV 37 pin screw terminal block vertical DIN rail mount e TB 37F 37CP 37 pin crimp amp poke terminals shell with strain relief e TB 37F 378C 37 pin solder cup terminals shell with strain relief e CB 37F HVD 37 pin screw terminal block 150 V CAT II DIN rail mount To connect your DAQ d
170. terministic Hardware timed generations can use hardware triggering For more information refer to Chapter 11 Triggering Hardware timed operations can be buffered or non buffered A buffer is a temporary storage in computer memory for acquired or to be generated samples Buffered In a buffered generation data is moved from a PC buffer to the DAQ device s onboard FIFO using DMA or interrupts before it is written to the DACs one sample at a time Buffered generations typically allow for much faster transfer rates than non buffered generations because data is moved in large blocks rather than one point at a time For more information about DMA and interrupts refer to the Data Transfer Methods section of Chapter 10 Bus Interface 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 When 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 Regeneration is the repe
171. the counter contents Routing a Signal to Counter n Gate Each counter has independent input selectors 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 Al Reference Trigger ai ReferenceTrigger e AI Start Trigger ai StartTrigger e AI Sample Clock ai SampleClock e AT Convert Clock ai ConvertClock e AO Sample Clock ao SampleClock e DI Sample Clock di SampleClock e DO Sample Clock do SampleClock e PXI STAR e Change Detection Event e Analog Comparison Event In addition Counter 1 Internal Output or Counter 1 Source can be routed to Counter 0 Gate Counter 0 Internal Output or Counter 0 Source can be routed to Counter 1 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 or RTSI lt 0 7 gt terminal All PFIs are set to high impedance at startup National Instruments Corporation 7 27 NI 6124 6154 User Manual Chapter 7 Counters Counter n Aux Signal 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 AI Reference Tri
172. 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 45V D GND Output 5 Power Source These pins provide 5 V power For more information refer to the 5 V Power Source section NI 6154 1 0 Connector Signal Descriptions NI 6154 Only Table 3 2 describes the signals found on the NI 6154 I O connector For more information about these signals refer to the NI 6154 Specifications Table 3 2 NI 6154 1 0 Connector Signal Descriptions I O Connector Pin Reference Direction Signal Description AI lt 0 3 gt AI lt 0 3 gt Input Analog Input Channels 0 through 3 4 These pins are routed to the terminal of the respective channel amplifier AI 0 3 Input Analog Input Channels 0 through 3 The reference pins for the corresponding AI lt 0 3 gt pin AO lt 0 3 gt AO lt 0 3 gt Output Analog Output Channels 0 through 3 These pins supply the voltage output of Analog Output channels 0 through 3 AO 0 3 Output Analog Output Channels 0 through 3 The reference pins for the corresponding AO lt 0 3 gt pin NI 6124 6154 User Manual 3 2 ni com Cha
173. tion measurement 7 18 bus interface 10 1 RTSI 9 4 C cables NI 6124 A 4 NI 6154 A 10 calibration 1 2 2 4 calibration certificate NI resources B 2 cascading counters 7 32 Change Detection Event signal 6 8 channel Z behavior 7 15 choosing frequency measurement 7 12 clock 10 MHz reference 9 3 external reference 9 2 generation 9 1 NI 6124 6154 User Manual l 2 PXI and trigger signals 9 8 routing 9 1 common mode input range 4 3 noise differential ground referenced signals 4 9 differential non referenced or floating signals 4 11 differential signals 4 9 rejection 4 11 signal range differential non referenced or floating signals 4 9 signal rejection considerations differential ground referenced signals 4 9 connecting digital I O signals 6 9 PFI input signals 8 6 connecting signals analog input 4 6 analog output 5 4 digital I O S Series isolated devices NI 6154 6 12 S Series non isolated devices NI 6124 6 9 continuous pulse train generation 7 21 controlling counting direction 7 2 conventions used in the manual xi counter input and output 7 30 output applications 7 19 terminals default 7 30 Counter n A signal 7 28 Counter n Aux signal 7 28 Counter n B signal 7 28 Counter n Gate signal 7 27 Counter n HW Arm signal 7 29 Counter n Internal Output signal 7 29 ni com Counter n Source signal 7 26 Counter n TC signal 7 29 Counter n Up_Down signal 7 29 Counter
174. tional 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 ELECTRONIC 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
175. tition 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 5 3 NI 6124 6154 User Manual Chapter 5 Analog Output With FIFO regeneration the entire buffer is downloaded to the FIFO and regenerated from there After 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 after 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 Non Buffered In hardware timed non buffered generations data is written directly to the FIFO on the device Typically hardware timed non buffered operations are used to write single samples with known time increments between them and good latency Analog Output Triggering Analog output supports two different triggering actions start and pause An analog or digital hardware trigger can initiate these actions All S Series devic
176. tive device Always properly ground yourself and the equipment when handling the DAQ device or connecting to it Programmable Power Up States The programmable power up state for the DAQ STC2 based S Series devices are as follows NI 6124 Devices 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 A high impedance input with a weak pull down resistor default An output driving a 0 An output driving a 1 3 Note When using your S 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 NI 6124 6154 User Manual 8 8 ni com Chapter 8 Programmable Function Interfaces PFI NI 6154 Devices By default the digital output lines P1 lt 0 3 gt PFI lt 6 9 gt are disabled high impedance at power up Software can configure the board to power up with the entire port enabled or disabled you cannot enable individual lines If the port powers up enabled you also can configu
177. tput 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 Using an External Source Use one of the following external signals as the source of AI Convert Clock e PFI 0 15 e RTSI lt 0 7 gt e PXI STAR 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 or RTSI lt 0 7 gt terminal All PFI terminals are configured as inputs by default Al Convert Clock Timebase Signal The AI Convert Clock Timebase ai ConvertClockTimebase signal is divided down to provide on 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 20 MHz Timebase AI Convert Clock Timebase is not available as an output on the I O connector National Instruments Corporation 4 17 NI 6124 6154 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 HoldCompleteEvent out to any PFI
178. tput enable is shared by all digital output signals I e PFI lt 6 9 gt P1 lt 0 3 gt Figure 8 3 PFI Output Circuitry on Isolated S Series Devices 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 9 When a terminal is used as a static digital input or output it is called PO x or P1 x The voltage input and output levels and the current drive levels of the PFI signals are listed in the N7 6154 Specifications National Instruments Corporation 8 3 NI 6124 6154 User Manual Chapter 8 Programmable Function Interfaces PFI Using PFI Terminals as Timing Input Signals Use PFI terminals to route external timing signals to many different S Series functions Each PFI terminal or input PFI terminal can be routed to any of the following signals AI Convert Clock ai ConvertClock AI Sample Clock ai SampleClock AI Start Trigger ai StartTrigger AI Reference Trigger ai ReferenceTrigger AI Sample Clock Timebase ai SampleClockTimebase AO Start Trigger ao StartTrigger AO Sample Clock ao SampleClock AO Sample Clock Timebase ao SampleClockTimebase AO Pause Trigger ao PauseTrigger Counter input signals for either counter Source Gate Aux HW Arm A B Z NI 6124 Only DI Sample Clock di SampleClock NI 6124 Only DO Sample Clock do SampleClock Most functions allow you to configure the polarity of PFI inputs and wheth
179. ue depending on the application the counter is performing Table 7 3 lists how this terminal is used in various applications Table 7 3 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 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 e 80 MHz Timebase e 20 MHz Timebase e 100 kHz Timebase RTSI lt 0 7 gt e PHI lt 0 15 gt e PXI CLKIO e PXI STAR e Analog Comparison Event In addition Counter 1 TC or Counter 1 Gate can be routed to Counter 0 Source Counter 0 TC or Counter 0 Gate can be routed to Counter 1 Source Some of these options may not be available in some driver software 7 26 ni com Chapter 7 Counters Routing Counter n Source to an Output Terminal You can route Counter n Source out to any PFI lt 0 15 gt or RTSI lt 0 7 gt 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
180. unt up e Always count down e Count up when the Counter n B input is high count down when it is low For information about connecting counter signals refer to the Default Counter Timer Pinouts section Pulse Width Measurement NI 6124 6154 User Manual 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 Single Pulse Width Measurement With 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 a hardware save register and ignores other edges on the Gate and Source inputs Software then reads the stored count 7 4 ni com Chapter 7 Co
181. unters Figure 7 5 shows an example of a single pulse width measurement GATE JEN eee ML EN SOURCE Lp Le Counter Value 0 HW Save Register 2 Figure 7 5 Single Pulse Width Measurement Buffered Pulse Width Measurement 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 a hardware save register A DMA controller transfers the stored values to host memory Figure 7 6 shows an example of a buffered pulse width measurement GATE SOURCE Counter Value Buffer Lp N Figure 7 6 Buffered Pulse Width Measurement Note that if you are using an external signal as the Source at least one Source pulse should occur between each active edge of the Gate signal This condition ensures that correct values are returned by the counter If this National Instruments Corporation 7 5 NI 6124 6154 User Manual Chapter 7 Counters condition is not met consider using duplicate count prevention described in the Duplicate Count Prevention section For information about connecting counter signals refer to the De
182. upport 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 This 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 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 B 1 NI 6124 6154 User Manual Appendix B Technical Support and
183. ut connecting counter signals refer to the Default Counter Timer Pinouts section Semi Period Measurement 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 National Instruments Corporation 7 7 NI 6124 6154 User Manual Chapter 7 Counters NI 6124 6154 User Manual 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 counter Single Semi Period Measurement Single semi period measurement is equivalent to single pulse width measurement Buffered Semi Period Measurement In buffered semi period measurement on each edge of the Gate signal the counter stores the count in a hardware save register 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 So the first value stored in the hardware save register does not reflect a full semi period of the Gate input In most applications this first point should be discarded Figure 7 9 shows an example of a buff
184. ut 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 e 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 e 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 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 mV and 100 mV but the difference can be much higher if power distribution circuits are improperly co
185. w to install your NI DAQmx supported DAQ device and how to confirm that your device is operating properly Select Start All Programs National Instruments NI DAQ DAQ Getting Started Guide The NI DAQ Readme lists which devices are supported by this version of NI DAQmx 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 DAQmx 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 Lab VIEW 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 Getting Started with LabVI
186. y and Radio Frequency Interference document for information about precautions 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 Xi NI 6124 6154 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 8 8 or later and where applicable version 7 1 or later of the NI application software NI DAOmx for Windows LabVIEW NI 6124 6154 User Manual The DAQ Getting Started Guide describes how to install your NI DAQmx for Windows software ho
Download Pdf Manuals
Related Search
Related Contents
78K/II SERIES 8-BIT SINGLE-CHIP UM 放射線取扱者登録管理システム 取扱説明書 Point of View TGT-560TI-A1-2-C NVIDIA GeForce GTX 560 Ti 2GB graphics card Service Manual - Heritage Parts Samsung 320MXN-3 دليل المستخدم Design House 519363 Installation Guide 記録計AH3000・AL3000 入力インターフェイスモジュール Fiche technique 4 - Association Vergers Vivants OPTIMIZER ® - Thermo 2000 Copyright © All rights reserved.
Failed to retrieve file