advantech pci daq card training jason ng advantech iag product support group jason ng advantech iag...

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

Upload: isaiah-butler

Post on 26-Mar-2015

263 views

Category:

Documents


16 download

TRANSCRIPT

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

Advantech PCI DAQ Card Training

Advantech PCI DAQ Card Training

Jason Ng

Advantech IAG Product Support Group

Jason Ng

Advantech IAG Product Support Group

Page 2: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

AgendaAgenda

• Knowing the signal• Select the right tools• Setup the DAQ card• Setup the software• Develop software

Page 3: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Input signal:Input signal:• VoltageVoltage• CurrentCurrent• TemperatureTemperature• SpeedSpeed• PressurePressure

Knowing the signalKnowing the signalSensors:Sensors:• Transducer /ConditionerTransducer /Conditioner• Transducer /ConditionerTransducer /Conditioner• Thermocouple / RTDThermocouple / RTD• EncoderEncoder• Strain gaugeStrain gauge

Data type:Data type:• VoltageVoltage• CurrentCurrent• VoltageVoltage• Counter / FrequencyCounter / Frequency• VoltageVoltage

Page 4: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Knowing the signal – Cont.Knowing the signal – Cont.

010101011110001

Digital Input

24 to 144 bitsTTL and Isolated inputVector InterruptCounter Function

101111001100100

24 to 144 bitsTTL, Relay and Isolated outputTimer Function

Digital Output

Analog Input25 KHz to 30 MHz12 to 16 bits8 to 32 channels Isolated input

12 to 16 bitsVoltage outputCurrent outputIsolated Output

Analog Output

Signal Conditioning

Amplifier gain up to 1000Thermocouple, RTD Multiplex up to 256 channelsSignal Isolation

Relay Output

Rating form 30 VDC to 250 VACForm A, Form C and SSROpto-22 compatible

Page 5: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

A/D Resolution: A/D Resolution: • 12 bits - 212 bits - 2resolutionresolution = 2 = 21212 = 4,096 levels = 4,096 levels• 16 bits - 216 bits - 2resolutionresolution = 2 = 21616 = 65,536 levels = 65,536 levels

Each level also known as Least Significant bit (LSB) represent how small a Each level also known as Least Significant bit (LSB) represent how small a voltage level can be detect in a specific full scale range.voltage level can be detect in a specific full scale range.

For 12 bits AI, input range is +/-10V:For 12 bits AI, input range is +/-10V:Resolution = 20V / 4096 = 4.88 mV per divisionResolution = 20V / 4096 = 4.88 mV per division

For 16 bits AI, input range is +/-10V:For 16 bits AI, input range is +/-10V:Resolution = 20V / 65,536 = 0.305 mV per divisionResolution = 20V / 65,536 = 0.305 mV per division

Input range is Input range is ±0.005V (PCI-1710HG):±0.005V (PCI-1710HG): Resolution = 0.01 / 4096 = 2.44Resolution = 0.01 / 4096 = 2.44μVμV

Analog InputAnalog Input

Page 6: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Sampling rate:

1Hz, 100Hz, 1KHz, 100KHz, 250KHz, 1MHz, 30MHz

Nyquist sampling theorem: Sampling rate >= 2 x signal bandwidth

Sampling rate:

1Hz, 100Hz, 1KHz, 100KHz, 250KHz, 1MHz, 30MHz

Nyquist sampling theorem: Sampling rate >= 2 x signal bandwidth

Analog Input – Cont.Analog Input – Cont.

Measured signalMeasured signal

Sampling rateSampling 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

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

Page 7: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Other spec:Other spec: Number of channels – 4, 8,16, 32Number of channels – 4, 8,16, 32 Input Ranges - Bipolar (0-0.01, 0-2.5, 0-10, etc)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 gainGain – High gain ( PCI-1710HG/L) , programmable gain FIFO Buffer Size – 1K, 4K, 32K (PCI-1714) samplesFIFO Buffer Size – 1K, 4K, 32K (PCI-1714) samples Data transfer mode – Software, Interrupt transfer, DMA transfer (BUS master)Data transfer mode – Software, Interrupt transfer, DMA transfer (BUS master) Trigger mode – Software, Pacer, Pre-Trigger, Post-Trigger, Delay-Trigger, About-Trigger mode – Software, Pacer, Pre-Trigger, Post-Trigger, Delay-Trigger, About-

TriggerTrigger Auto-calibration 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 IDBoard ID

Analog Input – Cont.Analog Input – Cont.

Single Ended / Differential:Single Ended / Differential:

CH0

CH1

CH14

CH15

+

-

CH0H

CH1H

CH0L

CH1L

+

-

Differential 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.

Differential 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.

Page 8: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Analog Input Card SelectionAnalog Input Card Selection

ModelModel ChannelChannel ResolutionResolution Sampling rateSampling rate SpecialSpecial

*PCI-1710/L*PCI-1710/L 16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 100 KS/s100 KS/s

*PCI-1710HG/L*PCI-1710HG/L 16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 100 KS/s100 KS/s With High GainWith High Gain

*PCI-1711/L*PCI-1711/L 16 SE16 SE 12 bits12 bits 100 KS/s100 KS/s

*PCI-1712/L*PCI-1712/L 16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 1 MS/s1 MS/s Bus MasterBus Master

*PCI-1716/L*PCI-1716/L 16 SE/8 Diff16 SE/8 Diff 16 bits16 bits 250 KS/s250 KS/sHi Res., Bus Hi Res., Bus MasterMaster

PCI-1713PCI-1713 32 SE/16 Diff32 SE/16 Diff 12 bits12 bits 100 KS/s100 KS/s IsolationIsolation

PCI-1714PCI-1714 4 SE4 SE 12 bits12 bits 30 MS/s30 MS/s Adv. High SpeedAdv. High Speed

* Multi-function Card, /L means no Analog Output* Multi-function Card, /L means no Analog Output

Page 9: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Analog Input DAQ card - QuizAnalog Input DAQ card - Quiz1. Which board has High Gain that can accept Thermocouple input

directly, without a signal conditioner?1. Which board has High Gain that can accept Thermocouple input

directly, without a signal conditioner?

ChannelChannel ResolutionResolution Sampling rateSampling rate SpecialSpecial

16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 100 KS/s100 KS/s

16 SE16 SE 12 bits12 bits 100 KS/s100 KS/s

16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 1 MS/s1 MS/s Bus MasterBus Master

32 SE/16 Diff32 SE/16 Diff 12 bits12 bits 100 KS/s100 KS/s IsolationIsolation

ModelModel

*PCI-1710/L*PCI-1710/L

*PCI-1710HG/L*PCI-1710HG/L

*PCI-1711/L*PCI-1711/L

*PCI-1712/L*PCI-1712/L

*PCI-1716/L*PCI-1716/L

PCI-1713PCI-1713

PCI-1714PCI-1714

3. Which board is capable to sample up to 15MHz of sine wave?3. Which board is capable to sample up to 15MHz of sine wave?

2. Which board has the highest resolution of A/D converter?2. Which board has the highest resolution of A/D converter?

16 SE/8 Diff16 SE/8 Diff 12 bits12 bits 100 KS/s100 KS/s With High GainWith High Gain

16 SE/8 Diff16 SE/8 Diff 16 bits16 bits 250 KS/s250 KS/sHi Res., Bus Hi Res., Bus MasterMaster

4 SE4 SE 12 bits12 bits 30 MS/s30 MS/s Adv. High SpeedAdv. High Speed

Page 10: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Analog Output SpecsAnalog Output Specs Number of Output Channels - 2, 4, 8, 24 channelsNumber of Output Channels - 2, 4, 8, 24 channels Output Ranges - Bipolar (0-5V, 0-10V)Output Ranges - Bipolar (0-5V, 0-10V)

- Unipolar (±5, ±10)

- Current loop (0~20mA, 4~20mA) D/A Resolution - 12, 14, 16 (PCI-1723) bitsD/A Resolution - 12, 14, 16 (PCI-1723) bits Throughput - 15, 38, 250KHz and 10MHzThroughput - 15, 38, 250KHz and 10MHz Advanced Features – Retain last output setting after system reset (PCI-Advanced Features – Retain last output setting after system reset (PCI-

1720), Waveform output, Synchronized output1720), Waveform output, Synchronized output FIFO Buffer Size – 1K samplesFIFO Buffer Size – 1K samples Calibration – Auto calibrate and save settingsCalibration – Auto calibrate and save settings Board IDBoard ID

Analog Output SpecsAnalog Output Specs Number of Output Channels - 2, 4, 8, 24 channelsNumber of Output Channels - 2, 4, 8, 24 channels Output Ranges - Bipolar (0-5V, 0-10V)Output Ranges - Bipolar (0-5V, 0-10V)

- Unipolar (±5, ±10)

- Current loop (0~20mA, 4~20mA) D/A Resolution - 12, 14, 16 (PCI-1723) bitsD/A Resolution - 12, 14, 16 (PCI-1723) bits Throughput - 15, 38, 250KHz and 10MHzThroughput - 15, 38, 250KHz and 10MHz Advanced Features – Retain last output setting after system reset (PCI-Advanced Features – Retain last output setting after system reset (PCI-

1720), Waveform output, Synchronized output1720), Waveform output, Synchronized output FIFO Buffer Size – 1K samplesFIFO Buffer Size – 1K samples Calibration – Auto calibrate and save settingsCalibration – Auto calibrate and save settings Board IDBoard ID

Analog OutputAnalog Output

Page 11: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Analog Output Card SelectionAnalog Output Card Selection

ModelModel ChannelChannel ResolutionResolution ThroughputThroughput SpecialSpecial

PCI-1720PCI-1720 4 Isolated4 Isolated 12 bits12 bits 15 KS/s15 KS/s

PCI-1721PCI-1721 44 12 bits12 bits 10MHz update10MHz updateBus master, Bus master, Waveform outputWaveform output

PCI-1723PCI-1723 88 16 bits16 bits 15 KS/s15 KS/s Hi resolutionHi resolution

PCI-1724UPCI-1724U 3232 14 bits14 bits 15 KS/s15 KS/s

Page 12: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Analog Output Card – QuizAnalog Output Card – Quiz

1.1. Which board has the highest resolution of D/A Which board has the highest resolution of D/A converter?converter?

ChannelChannel ResolutionResolution ThroughputThroughput SpecialSpecial

4 Isolated4 Isolated 12 bits12 bits 15 KS/s15 KS/s

44 12 bits12 bits10MHz 10MHz updateupdate

Bus master, Bus master, Waveform outputWaveform output

2.2. Which board has highest number of Analog Output Which board has highest number of Analog Output channel?channel?

ModelModel

PCI-1720PCI-1720

PCI-1721PCI-1721

PCI-1723PCI-1723

PCI-1724UPCI-1724U

88 16 bits16 bits 15 KS/s15 KS/s Hi resolutionHi resolution

3232 14 bits14 bits 15 KS/s15 KS/s

Page 13: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Specs:Specs: Number of channels – 16, 32, 48, 96, 192* channels / bitsNumber of channels – 16, 32, 48, 96, 192* channels / bits I/O types – TTL level, Opto-Isolated up to 2500VI/O types – TTL level, Opto-Isolated up to 2500VDCDC, Relay output , Relay output (Form A /C)(Form A /C), ,

Dry / Wet ContactDry / Wet Contact Transfer Rate – 10KB/s, 80MB/s (PCI-1755)Transfer Rate – 10KB/s, 80MB/s (PCI-1755) FIFO Buffer Size – 16KB for DI & 16KB for DOFIFO Buffer Size – 16KB for DI & 16KB for DO Advance Features – Retain last output values when system hot reset, Pattern Advance Features – Retain last output values when system hot reset, Pattern

match and Change of state detection, PWM, Digital Filtermatch and Change of state detection, PWM, Digital Filter Mixture of I/O type – 32 TTL level and 32 Isolated (PCI-1730)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)Universal PCI support – Support both 3.3V and 5V PCI slot (PCI-1760U) On-board diagnostic – LED indicators to show activated relaysOn-board diagnostic – LED indicators to show activated relays Board IDBoard ID

Digital Input / OutputDigital Input / Output

* Total of 192 bits is possible by expand a PCI-1753E to a PCI-1753* Total of 192 bits is possible by expand a PCI-1753E to a PCI-1753

Page 14: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

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 3 x 16 bits

PCI-1757UP 24

PCI-173016 16

Isolated

16 (Sink) 16 (Sink)

PCI-1733 32 (Sink)

PCI-1734 32 (Sink)

PCI-1750 16 (Sink) 16 (Sink) 1 x 16 bits

PCI-1752 64 (Sink)

PCI-1754 64 (Sink)

PCI-1756 32 (Sink) 32 (Sink)

PCI-1760U 8 (Sink) 8 (Relay) 2 Up Counter (16 bits)

PCI-1761 8 (Sink) 8 (Relay)

PCI-1762 16 (Sink) 16 (Relay)

Digital Input / Output card selectionDigital Input / Output card selection

Page 15: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Digital Input / Output card - QuizDigital Input / Output card - Quiz1.1. Which board can be extended for up to 192 bits?Which board can be extended for up to 192 bits?

2.2. Which board can be plug in to both 3.3V and 5V PCI Which board can be plug in to both 3.3V and 5V PCI slot?slot?

3.3. Which board has low profile form factor?Which board has low profile form factor?

CategoryCategory ModelModel

Non-Isolation

(TTL)

PCI-1751

PCI-1753/EPCI-1753/E

PCI-1755PCI-1755

PCI-1757UPPCI-1757UP

PCI-1730PCI-1730

96 / 19296 / 192

2424

Input ChannelInput Channel Output ChannelOutput Channel Counter ChannelCounter Channel

48 48 3 x 16 bits3 x 16 bits

3232 3 x 16 bits3 x 16 bits

1616 1616

Page 16: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Digital Input / Output card - QuizDigital Input / Output card - Quiz1.1. Which board(s) is Relay output board?Which board(s) is Relay output board?

2.2. Which board has counter for interrupt purpose?Which board has counter for interrupt purpose?

3.3. Which board has both TTL and Isolated I/O?Which board has both TTL and Isolated I/O?

Category Model Input Channel Output Channel Counter Channel

IsolatedIsolated

PCI-1730PCI-1730

PCI-1733PCI-1733

PCI-1734PCI-1734

PCI-1750PCI-1750

PCI-1752PCI-1752

PCI-1754PCI-1754

PCI-1756PCI-1756

PCI-1760UPCI-1760U

PCI-1761PCI-1761

PCI-1762PCI-1762

32 (Sink)32 (Sink)

32 (Sink)32 (Sink)

64 (Sink)64 (Sink)

64 (Sink)64 (Sink)

32 (Sink)32 (Sink) 32 (Sink)32 (Sink)

8 (Sink)8 (Sink) 8 (Relay)8 (Relay) 2 Up Counter (16 bits)2 Up Counter (16 bits)

8 (Sink)8 (Sink) 8 (Relay)8 (Relay)

16 (Sink)16 (Sink) 16 (Relay)16 (Relay)

16 (Sink)16 (Sink) 16 (Sink)16 (Sink) 1 x 16 bits1 x 16 bits

16 (Sink)16 (Sink) 16 (Sink)16 (Sink)

Page 17: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Specification:Specification: Number of channels – 4, 8 channelsNumber of channels – 4, 8 channels Resolution – 16, 32 bits independent countersResolution – 16, 32 bits independent counters Input Frequency – 8, 20 MHzInput Frequency – 8, 20 MHz Quadruple Encoder – 4 axis AB phase w/ w/t index (PCI-1784)Quadruple Encoder – 4 axis AB phase w/ w/t index (PCI-1784) Digital filter – 4 stage with selectable sampling rateDigital filter – 4 stage with selectable sampling rate Board IDBoard ID

Counter /Encoder Counter /Encoder

ModelModel ResolutionResolution ChannelsChannels FrequencyFrequency I/OI/O

PCI-1780PCI-1780 16 bits16 bits 88 20 MHz20 MHz8 In 8 Out8 In 8 Out

TTLTTL

PCI-1784PCI-1784 32 bits32 bits 44 8 MHz8 MHz4 In 4 Out4 In 4 Out

IsolatedIsolated

Page 18: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Counter /Encoder - QuizCounter /Encoder - Quiz

1.1. Which board support quadrature input?Which board support quadrature input?

ModelModel ResolutionResolution ChannelsChannels FrequencyFrequency I/OI/O

PCI-1780PCI-1780

PCI-1784PCI-1784

2.2. Which board has maximum input frequency?Which board has maximum input frequency?

16 bits16 bits 88 20 MHz20 MHz8 In 8 Out8 In 8 Out

TTLTTL

32 bits32 bits 444 In 4 Out4 In 4 Out

IsolatedIsolated8 MHz8 MHz

Page 19: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

You understand various type of input / output signal…You understand various type of input / output signal…

You know each Advantech DAQ card’s specification and specialties…You know each Advantech DAQ card’s specification and specialties…

What else is needed in between the DAQ card and signal?What else is needed in between the DAQ card and signal?

Page 20: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Signal Conditioning and Screw Terminal BoardSignal 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

Page 21: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

ADAM-3000 Series - Signal Conditioning ModuleADAM-3000 Series - Signal Conditioning Module

ThermocoupleThermocouple RTDRTDDC Voltage / DC Voltage /

CurrentCurrent

StrainStrain

GaugeGauge

ADAM-3011ADAM-3011J, K, T, E, S, J, K, T, E, S,

R, B typeR, B type

ADAM-3013ADAM-3013 Pt or Ni typePt or Ni type

ADAM-3014ADAM-3014±10mV, ±10V, ±10mV, ±10V,

0~10mV, 0~10V, 0~10mV, 0~10V, ±20mA, 0~20mA±20mA, 0~20mA

ADAM-3016ADAM-3016±10, 20, 30, ±10, 20, 30,

100mV100mV

Sensors ADAM-3000 Analog Input Card Platform

Page 22: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

ADAM-3900 Series – Screw Wiring TerminalADAM-3900 Series – Screw Wiring Terminal Wiring cable: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:Wiring terminal boards:

All DAQ BoardsAll DAQ Boards

All Multi Function DAQ

except PCI-1712

All Multi Function DAQ

except PCI-1712

PCI-1712PCI-1712

ADAM-3900 SeriesPin-to-pin screw terminal board

ADAM-3900 SeriesPin-to-pin screw terminal board

PCLD-8710 for PCI-1710/1711/1716 boardsPs. same pin assignments

PCLD-8710 for PCI-1710/1711/1716 boardsPs. same pin assignments

ADAM-8712 for PCI-1712 boardsADAM-8712 for PCI-1712 boards

Page 23: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

PCLD Series – Multifunction DAQ Wiring SolutionPCLD Series – Multifunction DAQ Wiring Solution

ModelModel TypeType ChannelChannel DescriptionDescription

PCLD-782/BPCLD-782/B Opto-Isolated DIOpto-Isolated DI 16/2416/24Provide isolation up to 24VProvide isolation up to 24VDCDC to to

TTL level signalTTL level signal

PCLD-785/BPCLD-785/B Relay OutputRelay Output 16/2416/24Provide relay output from TTL Provide relay output from TTL level control signallevel control signal

PCLD-786PCLD-786 SSR Carrier BoardSSR Carrier Board 88 Hold up to 8 SSR I/O ModulesHold up to 8 SSR I/O Modules

PCLD-788PCLD-788 Relay MultiplexerRelay Multiplexer 1616 Multiplex 16 AI channel to 1 AIMultiplex 16 AI channel to 1 AI

PCLD-885PCLD-885 Power Relay OutputPower Relay Output 1616Provide high power relay output Provide high power relay output from TTL level control signalfrom TTL level control signal

PCLD-7216PCLD-7216 SSR Carrier BoardSSR Carrier Board 1616 Hold up to 16 SSR I/O ModulesHold up to 16 SSR I/O Modules

Page 24: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Ready?Ready?

Now we are going to look at a project and we will select Now we are going to look at a project and we will select appropriate components from what we had gone appropriate components from what we had gone through to do measure and control of signals.through to do measure and control of signals.

Page 25: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

1.1. Need to:Need to:a) Measure 4 channels of 5VDC analog signals

b) Control 2 channel of 5VDC analog signalsc) Input 8 digital signals and output 8 digital signalsd) 16 bit of resolution

Criteria…Criteria…

2. What do we need?a) 4 AI – 5VDC

b) 2 AO – 5VDC

c) 8 DI - TTLd) 8 DO – TTL

3. A multifunction DAQ card with 16-bit resolution

Page 26: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

The selected DAQ card and Terminal boardThe selected DAQ card and Terminal board PCI-1716 – 16 bits, 16SE/8Diff, 16DI, 16 DOPCI-1716 – 16 bits, 16SE/8Diff, 16DI, 16 DO PCLD-8710 – Basic wiring terminal for PCI DAQ cardsPCLD-8710 – Basic wiring terminal for PCI DAQ cards

Page 27: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Software driver supportSoftware driver support

OCX

Linux DriverLinux Driver

LinuxLinux

ApplicationApplication

Windows 95/98/NT/2000/ME/XP DLL DriverWindows 95/98/NT/2000/ME/XP DLL Driver

ActiveXActiveXLabVIEWLabVIEW

DriverDriver

Signal ConditioningComm.MotionData AcquisitionGPIB

Data AcquisitionData AcquisitionTool BoxTool Box

LabVIEWLabVIEWMATLABMATLAB

How to get up-to-date driver support status:Please visit www.advantechdirect.com/60DayTrial/Products.htm for detail

Windows UtilityWindows Utility

Windows ApplicationWindows Application

VC ExampleVB ExampleBCB ExampleDelphi Example

Page 28: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Setup the DAQ cardSetup the DAQ cardHardware and software:Hardware and software: Install Advantech Device ManagerInstall Advantech Device Manager Install individual DLL driverInstall individual DLL driver Configure any DIP switches or jumpersConfigure any DIP switches or jumpers Install the DAQ card in the platformInstall the DAQ card in the platform Connect any daughter board and signal conditionerConnect any daughter board and signal conditioner Launch Advantech Device managerLaunch Advantech Device manager Configure DAQ card’s configuration – Input range, Output range, Daughter boardConfigure DAQ card’s configuration – Input range, Output range, Daughter board

Page 29: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

How to connect:How to connect:

1. PCL-10168 68 pin SCSI-II cableto connect from PCI-1716 to PCLD-8710

Page 30: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Additional wiringAdditional wiring

On PCLD-8710:On PCLD-8710:1. Wire DA0 OUT to AI02. Wire AI2 to AI GND next to it3. Plug the 20-pin ribbon cable on CN2 (DIG OUT) and

CN3 (DIG IN)4. Wire PACER OUT to DI15 for Counter test5. Wire +5V to AI1

Page 31: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Advantech Device ManagerAdvantech Device Manager

Page 32: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Device Manager Test UtilityDevice Manager Test Utility

Page 33: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Setup the softwareSetup the software• Install programming examples file – All_Examples.exe• Install Advantech ActiveDAQ driver for ActiveX control – ActiveDAQ.exe• Install Advantech LabView driver – LabVIEW.exe

• Install programming examples file – All_Examples.exe• Install Advantech ActiveDAQ driver for ActiveX control – ActiveDAQ.exe• Install Advantech LabView driver – LabVIEW.exe

Page 34: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Step 1: Open MS Studio.NETStep 1: Open MS Studio.NETStep 2: Open an Analog Input example atStep 2: Open an Analog Input example atC:\Program Files\Advantech\ActiveDAQ\Examples\VBNET\AI\AI.slnC:\Program Files\Advantech\ActiveDAQ\Examples\VBNET\AI\AI.sln

Testing the DAQ cardTesting the DAQ card

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.

Page 35: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Auto-CalibrationAuto-Calibration What if the ADC is offset and cause the reading is not What if the ADC is offset and cause the reading is not

accurate?accurate?

What if the ADC is offset and cause the reading is not What if the ADC is offset and cause the reading is not accurate?accurate?

Install the Auto-Calibration Install the Auto-Calibration utility from the DAC CD’s utility utility from the DAC CD’s utility folder – Utility.exefolder – Utility.exe

Install the Auto-Calibration Install the Auto-Calibration utility from the DAC CD’s utility utility from the DAC CD’s utility folder – Utility.exefolder – Utility.exe

Page 36: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Auto-Calibration – Cont.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.

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.

Page 37: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Now we are ready for the real programming hands onNow we are ready for the real programming hands on

We will exercise:1. ActiveDAQ2. LabVIEW3. C++

We will exercise:1. ActiveDAQ2. LabVIEW3. C++

DRV_DeviceOpenDRV_DeviceOpen

Function GroupFunction Group

DRV_DeviceCloseDRV_DeviceClose

Page 38: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

ActiveDAQ – Intro.ActiveDAQ – Intro.

Advantech ActiveDAQ is a collection of ActiveX Advantech ActiveDAQ is a collection of ActiveX controls that allows you to perform versatile I/O controls that allows you to perform versatile I/O operations easily through the control properties, operations easily through the control properties, methods, and events. It significantly reduces the methods, and events. It significantly reduces the complexity and effort of the programming.complexity and effort of the programming.

Note: ActiveDAQ 1.6.1 only support PCI DAQ cards, for PCL ISA DAQ card support please install ActiveDAQ 1.56.

Note: ActiveDAQ 1.6.1 only support PCI DAQ cards, for PCL ISA DAQ card support please install ActiveDAQ 1.56.

Page 39: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Exercise… ActiveDAQExercise… 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.chm

Step 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

Page 40: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Exercise… ActiveDAQ – Cont.Exercise… ActiveDAQ – Cont.

Now we want to read it continuously.Now we want to read it continuously.

Step 1: Add a Timer and 3 buttons control to the form and configure it 1: Add a Timer and 3 buttons control to the form and configure it

Step 2: Writing code for the additional ActiveDAQ controlsStep 2: Writing code for the additional ActiveDAQ controls

Step 3: Test your new programStep 3: Test your new program

Page 41: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

LabVIEW driver – Intro.LabVIEW driver – Intro.

The LabVIEW driver forms an interface between The LabVIEW driver forms an interface between Advantech DAC device (DLL) drivers, which Advantech DAC device (DLL) drivers, which contain all the relevant functions to control the contain all the relevant functions to control the DA&C device, and the LabVIEW software.DA&C device, and the LabVIEW software.

Page 42: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Exercise… LabViewExercise… 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\ C:\Program Files\National Instruments\LabVIEW 7.0\LabVIEW Driver Manual.chm for description on LabVIEW 7.0\LabVIEW Driver Manual.chm for description on Advantech LabVIEW VI’s functions.Advantech LabVIEW VI’s functions.

Page 43: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

C++ Programming- IntroC++ Programming- Intro

Free DLL drivers available in all Advantech DAQ Free DLL drivers available in all Advantech DAQ cards.cards.

Lower software development cost.Lower software development cost. Provide a flexible low level programming Provide a flexible low level programming

environment.environment.

Page 44: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Exercise… C++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

1.1. Create a new project in Win32 ApplicationCreate a new project in Win32 Application

2.2. Name the projectName the project

3.3. Add the source codes (file) to the projectAdd the source codes (file) to the project

4.4. Add the resource library file to the projectAdd the resource library file to the project

5.5. Compile the projectCompile the project

Page 45: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

ProjectsProjects

Based on your choice of programming tools, try to add a Analog Output (AO) 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.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.If you have time left, add a Digital I/O function as well.

Page 46: Advantech PCI DAQ Card Training Jason Ng Advantech IAG Product Support Group Jason Ng Advantech IAG Product Support Group

Questions?Questions?