1.1 Startup of DAQ cards

Getting Started
Chapter 1 Getting Started
As we know, the speed of PC is getting faster and faster today, and more and
more users would like to choose PC as the platform for their application. Therefore,
the Advantech also develop the drivers based on the Windows system for the DAQ
products so that the users can set up their application under Windows system easily.
This Chapter will instruct you how to use the DAQ card in Advantech, about the
startup of DAQ cards, the driver installation, and how to test the Advantech’s DAQ
cards in Utility.
1.1 Startup of DAQ cards
This section will introduce the utility – Advantech Device Manager first. And
then guide you how to install the Advantech’s DAQ cards which includes ISA cards
(have to install manually), and PCI, USB and CPCI cards (Plug-and-Play devices) on
the computer. Here will also instruct you how to use the Advantech Device Manager
with Advantech’s DAQ cards to do some tests to check if the card is workable.
Advantech IAG Training Center (Internal Use Only)
1
2
Getting Started
1.1.1 The Introduction of the Advantech Device Manager
The Advantech Device Manager is a convenient utility which can allow you to
configure the hardware and store the settings in the Windows registry. These settings
will be used when you call the APIs of Advantech 32-bit Device Drivers.
Now we use USB-4716 as an example to show each function in this utility.
Please follow the steps to install the driver and utility, and learn how to do the test in
the Advantech Device Manager with USB-4716.
1. Please install the driver of USB-4716 and the Advantech Device Manager which
can be found in the driver CD.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-1 Install Driver and Advantech Device Manager from the driver CD
2. You can also download the files from the Advantech Support & Download
website.
http://support.advantech.com.tw/Support/SupportCategoryView.aspx?ID=1-2MLJZA
Advantech IAG Training Center (Internal Use Only)
3
4
Getting Started
Figure 1-2 The Advantech Support& Download website
Please search the USB-4716 product and you can find the Universal 32-bit
Windows driver in the driver’s tab.
http://support.advantech.com.tw/Support/DownloadSearchByProduct.aspx?keyword=
USB-4716&ctl00_ContentPlaceHolder1_EbizTabStripNoForm1_Tab=Driver
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-3 The driver’s page of USB-4716
Then please download the Advantech Device Manager and the driver of
USB-4716 from the website.
Advantech IAG Training Center (Internal Use Only)
5
6
Getting Started
Figure 1-4 Download the Advantech Device Manager and the driver of USB-4716
from the website
3. After the installation, you can connect USB-4716 to the computer and you will
see the USB-4716 on the “Installed Devices” in the Advantech Device Manage.
The Device Number is used to specify the device in the software program while
the BoardID is used to identify cards of the same type. The Control Button is to
Advantech IAG Training Center (Internal Use Only)
Getting Started
let you configure the device setting, test the basic functions, and remove the
device.
Figure 1-5 Install the USB-4716 in the Advantech Device Manager
4. Click the “Setup” button and you can set the driver default device property values,
and these values will be saved in system. The device properties will be referenced
by the device driver functions.
Advantech IAG Training Center (Internal Use Only)
7
8
Getting Started
BoardID: USB device has a virtual “Board ID”. It is the “ID” of device. When
there are multiple USB devices connected to Host, we can use this ID to identify each
device. This ID exists in EPROM of USB device, so it will not be disappeared or
changed when power off. It can be set form 0~15 (Default is 0). Please note if
multi-devices are connected to the Host, each device must have different “Board ID”
or Host will fail to find the device. And we can find the device with specified Board
ID via this “Locate” button.
AI Channel Configuration: Set the Single-Ended or Differential Configuration
for the selected channel.
AO Channel 0/1 Ref: Set the D/A reference voltage for the A/O output channel.
Calibration: Do the Auto-Calibration for the AI or AO.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-6 Configure the USB-4716
5. After the Device Configuration, we can demonstrate the hardware functions by
clicking the Test button.
6. First of all, please click on the Analog input tab in the test utility and the analog
input test panel will appear as shown in the Figure 4-7. Select the range for each
channel in the Input range field. Configure the sampling rate by dragging the
scroll bar. Switch the channels with the up or down arrow.
Advantech IAG Training Center (Internal Use Only)
9
10
Getting Started
Figure 1-7 Analog input tab
7. Click on the Analog output tab to switch to the analog output test panel as
shown in the Figure 4-8. The panel allows the sine, square, and triangle
waveforms to be outputted automatically, or a single value to be outputted
manually. Configure the waveform frequency by dragging the scroll bar. Switch
the output channels with the up or down arrow.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-8 Analog output tab
8. Click on the Digital input tab to switch to the digital input test panel. The up or
down arrow may be used to switch the digital input channel.
Advantech IAG Training Center (Internal Use Only)
11
12
Getting Started
Figure 1-9 Digital input tab
9. Click on the Digital output tab to switch to the digital output test panel. By
pressing the buttons on the panel, the desired values may be outputted to the
corresponding ports. The up or down arrows may be used to switch the digital
output channel.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-10 Digital output tab
10. Click on the Counter tab to switch to the counter test panel. The panel provides
event counting and pulse output functions. The pulse frequency may be
configured by scrolling the scroll bar. The counter channel may be switched by
using the up or down arrow.
Advantech IAG Training Center (Internal Use Only)
13
14
Getting Started
Figure 1-11 Counter tab
Advantech IAG Training Center (Internal Use Only)
Getting Started
1.1.2 Startup of ISA cards
For the ISA cards, we take PCL-818L (40 kS/s, 12-bit, 16-ch ISA Multifunction
Card) as an example.
1. Install the Advantech Device Manager and Drivers from the driver CD or
Advantech website.
2. After the installation, we have to check the system resource to install the
PCL-818L manually since ISA cards (PCL and PCM series) can not support
Plug-and-Play function.
3. First of all, please check the Base I/O Address in the Windows Device Manager.
You can see that the address 300-376H is not shared by other add-on devices in
the Figure 4-12.
Advantech IAG Training Center (Internal Use Only)
15
16
Getting Started
Figure 1-12 Check the Base I/O Address in the Device Manager
4. Please check the Interrupt Request (IRQ) in the Windows Device Manager. You
can see that the IRQ 7 is shared by other add-on devices in the Figure 4-13.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-13 Check the IRQ in the Device Manager
5. Please check the DMA channel in the Windows Device Manager. You can see that
the DMA channel 1 is shared by other add-on devices in the Figure 4-14.
Advantech IAG Training Center (Internal Use Only)
17
18
Getting Started
Figure 1-14 Check the DMA channel in the Device Manager
6. Please refer to the hardware manual of PCL-818L to set the jumper and switch on
the PCL-818L card. For example, the Figure 4-15 shows how to set the Base I/O
Address.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-15 Set the Base I/O Address of PCL-818L
7. Scroll down the List of Supported Devices and select the PCL-818L to be
installed. Click the “Add” button to install the PCL-818L in the Advantech
Device Manager manually.
Advantech IAG Training Center (Internal Use Only)
19
20
Getting Started
Figure 1-16 Add the PCL-818L in the Advantech Device Manager
8. After clicking the Add button, a configuration dialog box will load for the
specified device as shown in the Figure 4-17. Please set the device configuration
in the Advantech Device Manager. Please also note the software setting should be
corresponding to the hardware setting. And the resource (Base Address, IRQ and
DMA channel) can not be shared by other add-on devices.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-17 Set the device configuration in the Advantech Device Manager
9. After configuring the device, click the “OK” button and the device will be shown
in the Installed Devices field as shown in the Figure 4-18. Then we can do some
tests in the Advantech Device Manager.
Advantech IAG Training Center (Internal Use Only)
21
22
Getting Started
Figure 1-18 Test the functions of PCL-818L
10. As show in the Figure 4-19, the AI0 will read 2.5V by inputting a 2.5VDC voltage
signal to the AI0 channel. You can also do the test with other functions (AO, DIO
and Counter) in the Advantech Device Manager.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-19 Test the AI function of PCL-818L
Advantech IAG Training Center (Internal Use Only)
23
24
Getting Started
1.1.3 Startup of PCI, USB and CPCI cards
For the PCI, USB and CPIC cards, we do not need to install the devices
manually since they can all support Plug-and-Play function. And here we take
PCI-1710HG (100 kS/s, 12-bit, 16-ch PCI Multifunction Card) as an example.
1. Install the Advantech Device Manager and Drivers from the driver CD. Or you
can also download the files from the Advantech Support& Download website.
http://support.advantech.com.tw/support/DownloadSRDetail.aspx?SR_ID=1-O1VSR
2. After the installation of the driver, we can plug the PCI-1710HG card on the PC
directly and the hardware will be installed after the PC boots or re-scan of device
in Windows Device Manager. All the bus-related configurations (Ex. Base I/O
address) will be handled by the Plug-and-Play function automatically.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-20 Setup and test the functions of PCI-1710HG
3. In the Setup, you can set the Device Configuration such as the A/D channels
configuration and the D/A voltage reference.
Advantech IAG Training Center (Internal Use Only)
25
26
Getting Started
Figure 1-21 Set the Device Configuration
Click the “Options” button, there will pop up a window and you can select the
expansion board for the extended application (Ex. use PCLD-8710 to measure the
temperature).
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-22 Set the expansion board
On the other hand, you can do the Auto-calibration of the AI can AO functions
by clicking the “Calibration” button. For more information about the calibration,
please refer to the hardware manual.
Figure 1-23 Do the Auto-calibration
4. By testing, we can set the analog output value in the AO tab. Here we set the
output value as 2.5VDC as show in the Figure 4-24.
Advantech IAG Training Center (Internal Use Only)
27
28
Getting Started
Figure 1-24 Set AO output value
5. Then connecting AO0 channel to AI0 channel directly and you can see the AI0
will read 2.5V as show in the Figure 4-25.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-25 Test the AI function of PCI-1710HG
6. Now we do the DIO test. In the beginning, you can see all the DI status is “High”
as shown in the Figure 4-26. It is because there are pull-up resistors in the DI
channels of PCI-1710HG.
Advantech IAG Training Center (Internal Use Only)
29
30
Getting Started
Figure 1-26 The default DI status of PCI-1710HG
By connecting the DO0 channel to the DI0 channel, the DI0 status will become
“Low” since the DO0 status is “Off” which means there is no voltage output.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-27 Test the DI function of PCI-1710HG
Whenever you “On” the DO0 button in the DO tab, the DI status will become
“High” again since the DO0 will output a 5V voltage signal.
Advantech IAG Training Center (Internal Use Only)
31
32
Getting Started
Figure 1-28 Test the DO function of PCI-1710HG
7. Finally, we can test the counter function by inputting a TTL signal to the counter
of PCI-1710HG. As shown in the Figure 4-29, the counter starts to count by the
1KHz TTL signal.
Advantech IAG Training Center (Internal Use Only)
Getting Started
Figure 1-29 Test the Counter function of PCI-1710HG
Advantech IAG Training Center (Internal Use Only)
33