Presentation on theme: "Advantech PCI DAQ Card Training"— Presentation transcript:
1 Advantech PCI DAQ Card Training Jason NgAdvantech IAG Product Support Group
2 Agenda Knowing the signal Select the right tools Setup the DAQ card Setup the softwareDevelop software
3 Step by StepPrepare:Understand various type of input and output needs.Understand with various data acquisition topologies and industrial technologies.Understand each DAQ card’s specification and specialties.Understand the connectivity.Selection:Select the right sensor.Select the appropriate signal conditioner and/or wiring terminal.Select the right DAQ card.Select the appropriate software tools.
4 Knowing the signal Input signal: Voltage Current Temperature Speed PressureSensors:Transducer /ConditionerThermocouple / RTDEncoderStrain gaugeData type:VoltageCurrentCounter / Frequency
5 Knowing the signal – Cont. Analog InputAnalog Output25 KHz to 30 MHz12 to 16 bits8 to 32 channelsIsolated input12 to 16 bitsVoltage outputCurrent outputIsolated OutputDigital InputDigital Output24 to 144 bitsTTL and Isolated inputVector InterruptCounter Function01010101111000124 to 144 bitsTTL, Relay and Isolated outputTimer Function101111001100100Here are the signals at a glance:Signal ConditioningRelay OutputAmplifier gain up to 1000Thermocouple, RTDMultiplex up to 256 channelsSignal IsolationRating form 30 VDC to 250 VACForm A, Form C and SSROpto-22 compatible
6 Analog Input More accurate Almost 16 times smaller!! A/D Resolution: 12 bits - 2resolution = 212 = 4,096 levels16 bits - 2resolution = 216 = 65,536 levelsEach level also known as Least Significant bit (LSB) represent how small a voltage level can be detect in a specific full scale range.For 12 bits AI, input range is +/-10V:Resolution = 20V / 4096 = 4.88 mV per divisionFor 16 bits AI, input range is +/-10V:Resolution = 20V / 65,536 = mV per divisionInput range is ±0.005V (PCI-1710HG):Resolution = 0.01 / 4096 = 2.44μVAlmost 16 times smaller!!More accurate
7 Analog Input – Cont. ! Sampling rate: 1Hz, 100Hz, 1KHz, 100KHz, 250KHz, 1MHz, 30MHzNyquist sampling theorem: Sampling rate >= 2 x signal bandwidthMeasured signalSampling rate!Multiplexing means that the sampling rate is shared across all active input channels.For example, 100KS/s / 16 channels = 6.25KS/s per channel !!!But PCI-1714 is capable of up to 30MS/s per channel – 4 A/D converters
8 Analog Input – Cont. Differential has advantage of immune to Other spec:Number of channels – 4, 8,16, 32Input Ranges - Bipolar (0-0.01, 0-2.5, 0-10, etc)- Unipolar (±10, ±5, ±1, ±0.005, etc)Gain – High gain ( PCI-1710HG/L) , programmable gainFIFO Buffer Size – 1K, 4K, 32K (PCI-1714) samplesData transfer mode – Software, Interrupt transfer, DMA transfer (BUS master)Trigger mode – Software, Pacer, Pre-Trigger, Post-Trigger, Delay-Trigger, About-TriggerAuto-calibration - The built-in calibration circuitry corrects gain and offset errors in analog input and analog output channels eliminating the need for external equipment and user adjustments.Board IDSingle Ended / Differential:CH0CH1CH14CH15+-CH0HCH1HCH0LCH1LDifferential has advantage of immune toinduced noise on the two input terminals. Since these two signals are subtracted from each other, rather than one terminal to ground, hence, the term is differential.
9 Analog Input Card Selection ModelChannelResolutionSampling rateSpecial*PCI-1710/L16 SE/8 Diff12 bits100 KS/s*PCI-1710HG/LWith High Gain*PCI-1711/L16 SE*PCI-1712/L1 MS/sBus Master*PCI-1716/L16 bits250 KS/sHi Res., Bus MasterPCI-171332 SE/16 DiffIsolationPCI-17144 SE30 MS/sAdv. High Speed* Multi-function Card, /L means no Analog Output
10 Analog Input DAQ card - Quiz Which board has High Gain that can accept Thermocouple input directly, without a signal conditioner?Which board has the highest resolution of A/D converter?Which board is capable to sample up to 15MHz of sine wave?Model*PCI-1710/L*PCI-1710HG/L*PCI-1711/L*PCI-1712/L*PCI-1716/LPCI-1713PCI-1714ChannelResolutionSampling rateSpecial16 SE/8 Diff12 bits100 KS/s16 SE1 MS/sBus Master32 SE/16 DiffIsolation16 SE/8 Diff12 bits100 KS/sWith High Gain16 SE/8 Diff16 bits250 KS/sHi Res., Bus Master4 SE12 bits30 MS/sAdv. High Speed
11 Analog Output Analog Output Specs Number of Output Channels - 2, 4, 8, 24 channelsOutput Ranges - Bipolar (0-5V, 0-10V)- Unipolar (±5, ±10)- Current loop (0~20mA, 4~20mA)D/A Resolution - 12, 14, 16 (PCI-1723) bitsThroughput - 15, 38, 250KHz and 10MHzAdvanced Features – Retain last output setting after system reset (PCI-1720), Waveform output, Synchronized outputFIFO Buffer Size – 1K samplesCalibration – Auto calibrate and save settingsBoard ID
13 Analog Output Card – Quiz 1. Which board has the highest resolution of D/A converter?2. Which board has highest number of Analog Output channel?ModelPCI-1720PCI-1721PCI-1723PCI-1724UChannelResolutionThroughputSpecial4 Isolated12 bits15 KS/s410MHz updateBus master, Waveform output816 bits15 KS/sHi resolution3214 bits15 KS/s
14 Digital Input / Output Specs: Number of channels – 16, 32, 48, 96, 192* channels / bitsI/O types – TTL level, Opto-Isolated up to 2500VDC, Relay output (Form A /C), Dry / Wet ContactTransfer Rate – 10KB/s, 80MB/s (PCI-1755)FIFO Buffer Size – 16KB for DI & 16KB for DOAdvance Features – Retain last output values when system hot reset, Pattern match and Change of state detection, PWM, Digital FilterMixture of I/O type – 32 TTL level and 32 Isolated (PCI-1730)Universal PCI support – Support both 3.3V and 5V PCI slot (PCI-1760U)On-board diagnostic – LED indicators to show activated relaysBoard IDRelay Form A: NORelay Form C: NC/NO* Total of 192 bits is possible by expand a PCI-1753E to a PCI-1753
15 Digital Input / Output card selection CategoryModelInput ChannelOutput ChannelCounter ChannelNon-Isolated(TTL)PCI-1751483 x 16 bitsPCI-1753/E96 / 192PCI-175532PCI-1757UP24PCI-173016Isolated16 (Sink)PCI-173332 (Sink)PCI-1734PCI-17501 x 16 bitsPCI-175264 (Sink)PCI-1754PCI-1756PCI-1760U8 (Sink)8 (Relay)2 Up Counter (16 bits)PCI-1761PCI-176216 (Relay)Question:
16 Digital Input / Output card - Quiz Which board can be extended for up to 192 bits?Which board can be plug in to both 3.3V and 5V PCI slot?Which board has low profile form factor?CategoryModelNon-Isolation(TTL)PCI-1751PCI-1753/EPCI-1755PCI-1757UPPCI-1730Input ChannelOutput ChannelCounter Channel483 x 16 bits321696 / 19224
17 Digital Input / Output card - Quiz Which board(s) is Relay output board?Which board has counter for interrupt purpose?Which board has both TTL and Isolated I/O?CategoryModelInput ChannelOutput ChannelCounter ChannelIsolatedPCI-1730PCI-1733PCI-1734PCI-1750PCI-1752PCI-1754PCI-1756PCI-1760UPCI-1761PCI-176216 (Sink)32 (Sink)64 (Sink)16 (Sink)1 x 16 bits8 (Sink)8 (Relay)2 Up Counter (16 bits)16 (Sink)16 (Relay)
18 Counter /Encoder Specification: Number of channels – 4, 8 channels Resolution – 16, 32 bits independent countersInput Frequency – 8, 20 MHzQuadruple Encoder – 4 axis AB phase w/ w/t index (PCI-1784)Digital filter – 4 stage with selectable sampling rateBoard IDModelResolutionChannelsFrequencyI/OPCI-178016 bits820 MHz8 In 8 OutTTLPCI-178432 bits48 MHz4 In 4 OutIsolated
19 Counter /Encoder - Quiz Which board support quadrature input?Which board has maximum input frequency?ModelResolutionChannelsFrequencyI/OPCI-1780PCI-178416 bits820 MHz8 In 8 OutTTL32 bits44 In 4 OutIsolated8 MHz
20 Think Now! You understand various type of input / output signal… You know each Advantech DAQ card’s specification and specialties…What else is needed in between the DAQ card and signal?
21 Signal Conditioning and Screw Terminal Board ADAM-3000 ModulesSignal Conditioning (T/C, RTD, Strain Gauge, Amplifier)Wiring Terminal (20pin flat, DB-25,37,62, Relay, etc.)PCLD Signal Conditioning BoardsOpto-Isolation, Relay, T/C CJC, Screw Terminal
22 ADAM-3000 Series - Signal Conditioning Module ThermocoupleRTDDC Voltage /CurrentStrainGaugeADAM-3011J, K, T, E, S, R, B typeADAM-3013Pt or Ni typeADAM-3014±10mV, ±10V, 0~10mV, 0~10V, ±20mA, 0~20mAADAM-3016±10, 20, 30, 100mVSensorsADAM-3000Analog Input CardPlatform
23 ADAM-3900 Series – Screw Wiring Terminal Wiring cable:Connector type is 68-pin SCSI-II female connector, also has 50, 37, 25 and 20 pin cable for different terminal board / configuration.Two cable length: 1m and 2mWiring terminal boards:All DAQ BoardsADAM-3900 SeriesPin-to-pin screw terminal boardAll Multi Function DAQ except PCI-1712PCLD-8710 forPCI-1710/1711/1716 boardsPs. same pin assignmentsPCI-1712ADAM-8712 for PCI-1712 boards
24 PCLD Series – Multifunction DAQ Wiring Solution ModelTypeChannelDescriptionPCLD-782/BOpto-Isolated DI16/24Provide isolation up to 24VDC to TTL level signalPCLD-785/BRelay OutputProvide relay output from TTL level control signalPCLD-786SSR Carrier Board8Hold up to 8 SSR I/O ModulesPCLD-788Relay Multiplexer16Multiplex 16 AI channel to 1 AIPCLD-885Power Relay OutputProvide high power relay output from TTL level control signalPCLD-7216Hold up to 16 SSR I/O Modules
25 Ready?Now we are going to look at a project and we will select appropriate components from what we had gone through to do measure and control of signals.
26 Criteria… Need to: Measure 4 channels of 5VDC analog signals Control 2 channel of 5VDC analog signalsInput 8 digital signals and output 8 digital signals16 bit of resolutionWhat do we need?4 AI – 5VDC2 AO – 5VDC8 DI - TTL8 DO – TTLA multifunction DAQ card with 16-bit resolution
27 Select the DAQ cardCriteria: 4 AI – 5VDC, 2 AO – 5VDC, 8 DI – TTL, 8 DO – 24VDC, 16 bitsTypeMode NameResolutionAIMax. GainSpeedAO/DI/DO/CTRLow CostPCI-171112 bits16SE1,2,4,8,16100 KS/s2AO,16DI,16DO,1CTRGeneralPCI-171016SE/8DI0.5, 1,2,4,8High GainPCI-1710HG0.5 ~ 1000High SpeedPCI-17120.5,1,2,4,81 MS/s16DO,3CTRHigh ResolutionPCI-171616 bits250 KS/s16DO, 1CTR
28 Select the terminal board ModelTypeChannelDescriptionPCLD-8710Wiring terminal68Basic wiring terminal for PCI DAQ cardsPCLD-782/BOpto-Isolated DI16/24Provide isolation up to 24VDC to TTL level signalPCLD-785/BRelay OutputProvide relay output from TTL level control signalPCLD-788Relay Multiplexer16Multiplex 16 AI channel to 1 AI outputPCLD-789DAmp. & MultiplexerMultiplex 16 AI channel to 1 AI with gainPCLD-885Power Relay OutputProvide high power relay output from TTL level control signal
29 The selected DAQ card and Terminal board PCI-1716 – 16 bits, 16SE/8Diff, 16DI, 16 DOPCLD-8710 – Basic wiring terminal for PCI DAQ cards
30 Software driver support LabVIEWMATLABLinuxApplicationWindows ApplicationLabVIEWDriverData AcquisitionTool BoxWindows UtilityActiveXOCXWindows 95/98/NT/2000/ME/XP DLL DriverLinux DriverVC ExampleVB ExampleBCB ExampleDelphi ExampleIn this presentation, I want to focus on two topics.1st topic is our solution for test and measurement applications2nd topic is to introduce detail about Advantech’s multifunction DAQ products including key specifications, signal conditioning modules and software driver support.GPIBData AcquisitionMotionComm.Signal ConditioningHow to get up-to-date driver support status:Please visit for detail
31 Setup the DAQ card Hardware and software: Install Advantech Device ManagerInstall individual DLL driverConfigure any DIP switches or jumpersInstall the DAQ card in the platformConnect any daughter board and signal conditionerLaunch Advantech Device managerConfigure DAQ card’s configuration – Input range, Output range, Daughter board
32 How to connect: PCL-10168 68 pin SCSI-II cable to connect from PCI-1716 toPCLD-8710
33 Additional wiring On PCLD-8710: Wire DA0 OUT to AI0 Wire AI2 to AI GND next to itPlug the 20-pin ribbon cable on CN2 (DIG OUT) and CN3 (DIG IN)Wire PACER OUT to DI15 for Counter testWire +5V to AI1
36 Setup the softwareInstall programming examples file – All_Examples.exeInstall Advantech ActiveDAQ driver for ActiveX control – ActiveDAQ.exeInstall Advantech LabView driver – LabVIEW.exeNow we are going to prepare the environment for the programming tools that we will use later today.Advantech programming examples, ActiveDAQ driver and examples, and LabVIEW driverYou can find all three file on your desktopNow install All_Example first, then ActiveDAQ, and lastly LabVIEW driver
37 Testing the DAQ card Step 1: Open MS Studio.NET Step 2: Open an Analog Input example atC:\Program Files\Advantech\ActiveDAQ\Examples\VBNET\AI\AI.slnStep 3: Press F5 to run the example and select the PCI-1716 card.Step 4: Configure the channels and input range.Click on Start and then Get buffer to read values from channels.Now we can run a quick example on analog input using ActiveX control
38 Auto-CalibrationWhat if the ADC is offset and cause the reading is not accurate?Install the Auto-Calibration utility from the DAC CD’s utility folder – Utility.exe
39 Auto-Calibration – Cont. Follow the step by step method on the utility to finish the calibration.Note: Remember to configure the DA Voltage Ref as Internal and the range as +/-5V.
40 Now we are ready for the real programming hands on We will exercise:1. ActiveDAQLabVIEWC++DRV_DeviceOpenFunction GroupDRV_DeviceCloseAll 3 programming method are no difference than one another, Open Device, Read, and Close Device
41 ActiveDAQ – Intro.Advantech ActiveDAQ is a collection of ActiveX controls that allows you to perform versatile I/O operations easily through the control properties, methods, and events. It significantly reduces the complexity and effort of the programming.First is the ActiveDAQ…Note: ActiveDAQ only support PCI DAQ cards, for PCL ISA DAQ card support please install ActiveDAQ 1.56.
42 Exercise… ActiveDAQCreate a simple analog read program by using ActiveDAQ in VB.NET.You can refer to the C:\Program Files\Advantech\ActiveDAQ\ActiveDAQ User Manual.chmStep 1: Add PCI-1716 card in Advantech Device ManagerStep 2: Open a new Visual Basic project in Visual Studio.NETStep 3: On Tools menu | Add/Remove Toolbox Items…| COM Components | Check all (6 components) Advantech ActiveDAQ Controls. All the components can be found in Windows Forms of the Toolbox.Step 4: Design the Form by referring to the ActiveDAQ hand outStep 5: Configure AI Control in the Properties WindowStep 6: Writing Code for the ActiveDAQ Controls – Code can be find in here.Step 7: Test Your Program with PCI-1716 card
43 Exercise… ActiveDAQ – Cont. !Now we want to read it continuously.Step 1: Add a Timer and 3 buttons control to the form and configure itStep 2: Writing code for the additional ActiveDAQ controlsStep 3: Test your new program
44 LabVIEW driver – Intro.The LabVIEW driver forms an interface between Advantech DAC device (DLL) drivers, which contain all the relevant functions to control the DA&C device, and the LabVIEW software.
45 Exercise… LabViewCreate a simple analog read program by using LabView, follow the instructions on the LabVIEW handouts.You can refer to the C:\Program Files\National Instruments\LabVIEW 7.0\LabVIEW Driver Manual.chm for description on Advantech LabVIEW VI’s functions.
46 C++ Programming- Intro Free DLL drivers available in all Advantech DAQ cards.Lower software development cost.Provide a flexible low level programming environment.
47 Exercise… C++ Create a simple analog read program by using VC++. You can refer to the C:\Program Files\Advantech\ADSAPI\Examples\Console\AD_SOFTCreate a new project in Win32 ApplicationName the projectAdd the source codes (file) to the projectAdd the resource library file to the projectCompile the project
48 ProjectsBased on your choice of programming tools, try to add a Analog Output (AO) to the existing program so that you can read back the output values.If you have time left, add a Digital I/O function as well.