Presentation is loading. Please wait.

Presentation is loading. Please wait.

Advantech PCI DAQ Card Training

Similar presentations


Presentation on theme: "Advantech PCI DAQ Card Training"— Presentation transcript:

1 Advantech PCI DAQ Card Training
Jason Ng Advantech IAG Product Support Group

2 Agenda Knowing the signal Select the right tools Setup the DAQ card
Setup the software Develop software

3 Step by Step Prepare: 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
Pressure Sensors: Transducer /Conditioner Thermocouple / RTD Encoder Strain gauge Data type: Voltage Current Counter / Frequency

5 Knowing the signal – Cont.
Analog Input Analog Output 25 KHz to 30 MHz 12 to 16 bits 8 to 32 channels Isolated input 12 to 16 bits Voltage output Current output Isolated Output Digital Input Digital Output 24 to 144 bits TTL and Isolated input Vector Interrupt Counter Function 01010 10111 10001 24 to 144 bits TTL, Relay and Isolated output Timer Function 10111 10011 00100 Here are the signals at a glance: Signal Conditioning Relay Output Amplifier gain up to 1000 Thermocouple, RTD Multiplex up to 256 channels Signal Isolation Rating form 30 VDC to 250 VAC Form A, Form C and SSR Opto-22 compatible

6 Analog Input More accurate Almost 16 times smaller!! A/D Resolution:
12 bits - 2resolution = 212 = 4,096 levels 16 bits - 2resolution = 216 = 65,536 levels Each 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 division For 16 bits AI, input range is +/-10V: Resolution = 20V / 65,536 = mV per division Input range is ±0.005V (PCI-1710HG): Resolution = 0.01 / 4096 = 2.44μV Almost 16 times smaller!! More accurate

7 Analog Input – Cont. ! Sampling rate:
1Hz, 100Hz, 1KHz, 100KHz, 250KHz, 1MHz, 30MHz Nyquist sampling theorem: Sampling rate >= 2 x signal bandwidth Measured signal Sampling 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, 32 Input 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 gain FIFO Buffer Size – 1K, 4K, 32K (PCI-1714) samples Data transfer mode – Software, Interrupt transfer, DMA transfer (BUS master) Trigger mode – Software, Pacer, Pre-Trigger, Post-Trigger, Delay-Trigger, About-Trigger Auto-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 ID Single Ended / Differential: CH0 CH1 CH14 CH15 + - CH0H CH1H CH0L CH1L Differential has advantage of immune to induced 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
Model Channel Resolution Sampling rate Special *PCI-1710/L 16 SE/8 Diff 12 bits 100 KS/s *PCI-1710HG/L With High Gain *PCI-1711/L 16 SE *PCI-1712/L 1 MS/s Bus Master *PCI-1716/L 16 bits 250 KS/s Hi Res., Bus Master PCI-1713 32 SE/16 Diff Isolation PCI-1714 4 SE 30 MS/s Adv. 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/L PCI-1713 PCI-1714 Channel Resolution Sampling rate Special 16 SE/8 Diff 12 bits 100 KS/s 16 SE 1 MS/s Bus Master 32 SE/16 Diff Isolation 16 SE/8 Diff 12 bits 100 KS/s With High Gain 16 SE/8 Diff 16 bits 250 KS/s Hi Res., Bus Master 4 SE 12 bits 30 MS/s Adv. High Speed

11 Analog Output Analog Output Specs
Number of Output Channels - 2, 4, 8, 24 channels Output Ranges - Bipolar (0-5V, 0-10V) - Unipolar (±5, ±10) - Current loop (0~20mA, 4~20mA) D/A Resolution - 12, 14, 16 (PCI-1723) bits Throughput - 15, 38, 250KHz and 10MHz Advanced Features – Retain last output setting after system reset (PCI-1720), Waveform output, Synchronized output FIFO Buffer Size – 1K samples Calibration – Auto calibrate and save settings Board ID

12 Analog Output Card Selection
Model Channel Resolution Throughput Special PCI-1720 4 Isolated 12 bits 15 KS/s PCI-1721 4 10MHz update Bus master, Waveform output PCI-1723 8 16 bits Hi resolution PCI-1724U 32 14 bits

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? Model PCI-1720 PCI-1721 PCI-1723 PCI-1724U Channel Resolution Throughput Special 4 Isolated 12 bits 15 KS/s 4 10MHz update Bus master, Waveform output 8 16 bits 15 KS/s Hi resolution 32 14 bits 15 KS/s

14 Digital Input / Output Specs:
Number of channels – 16, 32, 48, 96, 192* channels / bits I/O types – TTL level, Opto-Isolated up to 2500VDC, Relay output (Form A /C), Dry / Wet Contact Transfer Rate – 10KB/s, 80MB/s (PCI-1755) FIFO Buffer Size – 16KB for DI & 16KB for DO Advance Features – Retain last output values when system hot reset, Pattern match and Change of state detection, PWM, Digital Filter Mixture 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 relays Board ID Relay Form A: NO Relay 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
Category Model Input Channel Output Channel Counter Channel Non-Isolated (TTL) PCI-1751 48 3 x 16 bits PCI-1753/E 96 / 192 PCI-1755 32 PCI-1757UP 24 PCI-1730 16 Isolated 16 (Sink) PCI-1733 32 (Sink) PCI-1734 PCI-1750 1 x 16 bits PCI-1752 64 (Sink) PCI-1754 PCI-1756 PCI-1760U 8 (Sink) 8 (Relay) 2 Up Counter (16 bits) PCI-1761 PCI-1762 16 (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? Category Model Non-Isolation (TTL) PCI-1751 PCI-1753/E PCI-1755 PCI-1757UP PCI-1730 Input Channel Output Channel Counter Channel 48 3 x 16 bits 32 16 96 / 192 24

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? Category Model Input Channel Output Channel Counter Channel Isolated PCI-1730 PCI-1733 PCI-1734 PCI-1750 PCI-1752 PCI-1754 PCI-1756 PCI-1760U PCI-1761 PCI-1762 16 (Sink) 32 (Sink) 64 (Sink) 16 (Sink) 1 x 16 bits 8 (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 counters Input Frequency – 8, 20 MHz Quadruple Encoder – 4 axis AB phase w/ w/t index (PCI-1784) Digital filter – 4 stage with selectable sampling rate Board ID Model Resolution Channels Frequency I/O PCI-1780 16 bits 8 20 MHz 8 In 8 Out TTL PCI-1784 32 bits 4 8 MHz 4 In 4 Out Isolated

19 Counter /Encoder - Quiz
Which board support quadrature input? Which board has maximum input frequency? Model Resolution Channels Frequency I/O PCI-1780 PCI-1784 16 bits 8 20 MHz 8 In 8 Out TTL 32 bits 4 4 In 4 Out Isolated 8 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 Modules Signal Conditioning (T/C, RTD, Strain Gauge, Amplifier) Wiring Terminal (20pin flat, DB-25,37,62, Relay, etc.) PCLD Signal Conditioning Boards Opto-Isolation, Relay, T/C CJC, Screw Terminal

22 ADAM-3000 Series - Signal Conditioning Module
Thermocouple RTD DC Voltage / Current Strain Gauge ADAM-3011 J, K, T, E, S, R, B type ADAM-3013 Pt or Ni type ADAM-3014 ±10mV, ±10V, 0~10mV, 0~10V, ±20mA, 0~20mA ADAM-3016 ±10, 20, 30, 100mV Sensors ADAM-3000 Analog Input Card Platform

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 2m Wiring terminal boards: All DAQ Boards ADAM-3900 Series Pin-to-pin screw terminal board All Multi Function DAQ except PCI-1712 PCLD-8710 for PCI-1710/1711/1716 boards Ps. same pin assignments PCI-1712 ADAM-8712 for PCI-1712 boards

24 PCLD Series – Multifunction DAQ Wiring Solution
Model Type Channel Description PCLD-782/B Opto-Isolated DI 16/24 Provide isolation up to 24VDC to TTL level signal PCLD-785/B Relay Output Provide relay output from TTL level control signal PCLD-786 SSR Carrier Board 8 Hold up to 8 SSR I/O Modules PCLD-788 Relay Multiplexer 16 Multiplex 16 AI channel to 1 AI PCLD-885 Power Relay Output Provide high power relay output from TTL level control signal PCLD-7216 Hold 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 signals Input 8 digital signals and output 8 digital signals 16 bit of resolution What do we need? 4 AI – 5VDC 2 AO – 5VDC 8 DI - TTL 8 DO – TTL A multifunction DAQ card with 16-bit resolution

27 Select the DAQ card Criteria: 4 AI – 5VDC, 2 AO – 5VDC, 8 DI – TTL, 8 DO – 24VDC, 16 bits Type Mode Name Resolution AI Max. Gain Speed AO/DI/DO /CTR Low Cost PCI-1711 12 bits 16SE 1,2,4,8,16 100 KS/s 2AO,16DI, 16DO,1CTR General PCI-1710 16SE/8DI 0.5, 1,2,4,8 High Gain PCI-1710HG 0.5 ~ 1000 High Speed PCI-1712 0.5,1,2,4,8 1 MS/s 16DO,3CTR High Resolution PCI-1716 16 bits 250 KS/s 16DO, 1CTR

28 Select the terminal board
Model Type Channel Description PCLD-8710 Wiring terminal 68 Basic wiring terminal for PCI DAQ cards PCLD-782/B Opto-Isolated DI 16/24 Provide isolation up to 24VDC to TTL level signal PCLD-785/B Relay Output Provide relay output from TTL level control signal PCLD-788 Relay Multiplexer 16 Multiplex 16 AI channel to 1 AI output PCLD-789D Amp. & Multiplexer Multiplex 16 AI channel to 1 AI with gain PCLD-885 Power Relay Output Provide 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 DO PCLD-8710 – Basic wiring terminal for PCI DAQ cards

30 Software driver support
LabVIEW MATLAB Linux Application Windows Application LabVIEW Driver Data Acquisition Tool Box Windows Utility ActiveX OCX Windows 95/98/NT/2000/ME/XP DLL Driver Linux Driver VC Example VB Example BCB Example Delphi Example In this presentation, I want to focus on two topics. 1st topic is our solution for test and measurement applications 2nd topic is to introduce detail about Advantech’s multifunction DAQ products including key specifications, signal conditioning modules and software driver support. GPIB Data Acquisition Motion Comm. Signal Conditioning How to get up-to-date driver support status: Please visit for detail

31 Setup the DAQ card Hardware and software:
Install Advantech Device Manager Install individual DLL driver Configure any DIP switches or jumpers Install the DAQ card in the platform Connect any daughter board and signal conditioner Launch Advantech Device manager Configure 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 to PCLD-8710

33 Additional wiring On PCLD-8710: Wire DA0 OUT to AI0
Wire AI2 to AI GND next to it Plug the 20-pin ribbon cable on CN2 (DIG OUT) and CN3 (DIG IN) Wire PACER OUT to DI15 for Counter test Wire +5V to AI1

34 Advantech Device Manager

35 Device Manager Test Utility

36 Setup the software Install programming examples file – All_Examples.exe Install Advantech ActiveDAQ driver for ActiveX control – ActiveDAQ.exe Install Advantech LabView driver – LabVIEW.exe Now 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 driver You can find all three file on your desktop Now 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 at C:\Program Files\Advantech\ActiveDAQ\Examples\VBNET\AI\AI.sln Step 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-Calibration What 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. ActiveDAQ LabVIEW C++ DRV_DeviceOpen Function Group DRV_DeviceClose All 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… ActiveDAQ Create a simple analog read program by using ActiveDAQ in VB.NET. You can refer to the C:\Program Files\Advantech\ActiveDAQ\ActiveDAQ User Manual.chm Step 1: Add PCI-1716 card in Advantech Device Manager Step 2: Open a new Visual Basic project in Visual Studio.NET Step 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 out Step 5: Configure AI Control in the Properties Window Step 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 it Step 2: Writing code for the additional ActiveDAQ controls Step 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… LabView Create 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_SOFT Create a new project in Win32 Application Name the project Add the source codes (file) to the project Add the resource library file to the project Compile the project

48 Projects Based 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.

49 Questions?

50 Wet Contact: 5~40VDC – High 0~2VDC – Low Dry Contact: Open – High Close – Low


Download ppt "Advantech PCI DAQ Card Training"

Similar presentations


Ads by Google