ICP I-8014CW User manual

Type
User manual
I
I-8014W and I-8014CW
User Manual
Version 1.0.3/ Dec 2015
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
2
Warranty
All products manufactured by ICP DAS are under warranty
regarding defective materials for a period of one year, beginning
from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from the
use of this product. ICP DAS reserves the right to change this
manual at any time without notice. The information furnished by
ICP DAS is believed to be accurate and reliable. However, no
responsibility is assumed by ICP DAS for its use, nor for any
infringements of patents or other rights of third parties resulting
from its use.
Copyright
Copyright @ 2015 by ICP DAS Co., Ltd. All rights are reserved.
Trademarks
Names are used for identification only may be registered
trademarks of their respective companies.
Contact Us
If you have any problems, please feel free to contact us.
You can count on us for a quick response.
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
3
Table of Contents
Table of Contents ...................................................................... 3
Preface ....................................................................................... 5
Chapter 1. Hardware ............................................................. 6
1.1. Introductions .................................................................................. 6
1.2. Features ........................................................................................ 8
1.3. Specifications ................................................................................ 9
1.4. Pin Assignments .......................................................................... 10
1.5. Jumper Settings .......................................................................... 11
1.6. Wire Connections ........................................................................ 13
1.7. Block Diagram ............................................................................. 14
1.8. Location of the Demo Programs .................................................. 15
Chapter 2. Quick Start ........................................................ 18
2.1. MiniOS7-based Controllers ......................................................... 19
2.1.1. Getting Started Guide ........................................................... 20
2.1.2. Calibration ............................................................................ 23
2.2. Windows-based Controllers ......................................................... 36
2.2.1. Getting Started Guide ........................................................... 37
2.2.2. Calibration ............................................................................ 39
Chapter 3. Magic Scan ........................................................ 48
3.1. Magic Scan Mode ........................................................................ 49
3.1.1. Standard Mode ..................................................................... 50
3.1.2. Virtual Sample and Hold Mode ............................................. 51
3.2. Trigger Methods .......................................................................... 52
3.2.1. Software Trigger Method ...................................................... 53
3.2.2. Internal Hardware Trigger Method ....................................... 54
3.2.3. External Hardware Trigger Method ...................................... 55
3.3. FIFO ............................................................................................ 56
3.4. Magic Scan Procedure ................................................................ 57
3.5. Magic Scan Example ................................................................... 58
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
4
3.5.1. Magic.exe ............................................................................. 59
3.5.2. Mag_ISR.exe ....................................................................... 66
3.6. Case Study .................................................................................. 68
Chapter 4. API References ................................................. 70
4.1. Function List ................................................................................ 71
4.1.1. i8014W_Init .......................................................................... 73
4.1.2. i8014W_GetFirmwareVer_L1 ............................................... 75
4.1.3. i8014W_GetFirmwareVer_L2 ............................................... 76
4.1.4. i8014W_GetLibVersion ........................................................ 77
4.1.5. i8014W_GetLibDate ............................................................. 78
4.1.6. i8014W_GetSingleEndJumper ............................................. 79
4.1.7. i8014W_ReadGainOffset ..................................................... 81
4.1.8. i8014W_Read_mA_GainOffset ............................................ 83
4.1.9. i8014W_ReadAI ................................................................... 85
4.1.10. i8014W_ReadAIHex ......................................................... 87
4.1.11. i8014W_ConfigMagicScan ............................................... 89
4.1.12. i8014W_StartMagicScan .................................................. 92
4.1.13. i8014W_StopMagicScan .................................................. 94
4.1.14. i8014W_ReadFIFO ........................................................... 95
4.1.15. i8014W_CalibrateData ...................................................... 97
4.1.16. i8014W_CalibrateDataHex ............................................... 99
4.1.17. i8014W_UnLockFIFO ..................................................... 101
4.1.18. i8014W_ClearFIFO ......................................................... 103
4.1.19. i8014W_InstallMagicScanISR ........................................ 104
4.1.20. i8014W_UnInstallMagicScanISR .................................... 108
4.1.21. i8014W_ClearInt ............................................................. 109
4.2. Error Code List .......................................................................... 111
Chapter 5. Troubleshooting ............................................. 112
5.1. How to verify the AI function on a WinCE or WES unit .............. 113
5.2. Service/Request Requirements ................................................. 117
5.3. What to do when the data read from I-8014W seems unstable . 118
5.4. How to solve the FIFO LATCHED error (-6) .............................. 119
I
Preface
The I-8014W is a high speed isolated analog input module providing 16 single-ended
or 8 differential analog input channels at 16-bit resolution. Besides including basic
usage instructions and details of the SDK interface, this manual also introduces the
Magic Scan function incorporated in the I-8014W that can be used for scanning
multi-channel systems.
The information contained in this manual is divided into the following topics:
Chapter 1, “Hardware This chapter provides information related to the
hardware, such as the specifications, the jumper settings details and wiring
information.
Chapter 2, “Quick Start” This chapter provides information on how to get
started, an overview of the location of the demo programs, a “Getting Started
Guide, and an outline of the calibration process.
Chapter 3, “Magic Scan” This chapter introduces the attributes related to the
Magic Scan function, the programming procedures, and demo programs.
Chapter 4, “API” This chapter describes the functions provided in the I-8014W
library together with an explanation of the differences in the naming rules used
for the MiniOS7 and Windows platforms.
Chapter 5, “Troubleshooting” This chapter provides some troubleshooting
solutions should you encounter any problems while operating the Ip-8014W.
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
6
Chapter 1. Hardware
1.1. Introductions
The I-8014W/I-8014CW are high performance analog input module. I-8014W
Up to 16-channel single-ended or 8-channel differential inputs. I-8014CW
Up to 8-channel differential inputs. they feature 16-bit resolution, 250Ks/
s sampling rates, and 4K-sample FIFO. they provide isolation protection of
2500 Vrms.
The I-8014W/I-8014CW (Hereinafter referred to as I-8014W) contain an impressive
scan function called Magic Scan, which are able to improve many of the functions and
meets the demands of high-end users. The Magic Scan mechanism not only scans
the different input channels at vastly different rates, but also at different gains.
Even in a multi-channel scan, the sampling rates can be maintained at 250KS/s.
The I-8014W contain two types of Magic Scan. One is a standard
Scan and the other is a virtual Sample and hold function. Almost all AI Cards
are expensive if they provide a sample and hold function, but ICP DAS can
now provide you with a low-cost alternative.
The I-8014W module includes a 4K sample onboard FIFO buffer for A/D conversion.
The new FIFO technology users a trigger interrupt signal, meaning that if the sampled
counter is higher than the pre-defined FIFO level, an interrupt signal will notify the
host.
With the Magic Scan function and 4K FIFO, the I-8014W can easily implement
high-speed and time-critical data acquisition applications.
The differences between I-8014W and I-8014CW are as below:
I-8014W
I-8014CW
Input Range
+/- 10 V, +/- 5 V, +/- 2.5 V, +/-
1.25 V and +/- 20 mA
+/- 20 mA only
Select Input
Type
Differential or Single-ended Mode
Differential Mode only
Wire
Connection
Need external 125 ohm resistor
for measurement current
Do net need external 125 ohm
resistor for measurement current
Calibration
Parameter
8 channels AI using 1 calibration
parameter
8 channels AI using independent
calibration parameter
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
7
Block diagram
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
8
1.2. Features
I-8014W
16 single-ended/8 differential inputs (jumper selectable)
Input Range : +/- 10V, +/- 5V, +/- 2.5V, +/- 1.25V, +/- 20mA
I-8014CW
8 differential inputs
Input Range : +/- 20mA
16-bit 250KHz ADC converter
4K-samples FIFO buffer
External trigger mode : post-trigge
Internal/external trigger start
Magic Scan Type
Type 1: General
Each Sample clock only samples a single.
General type
Type 2: virtual Sample and hold
Each sample clock will to sample all scan channels that have been set.
Virtual Sample and hold type
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
9
1.3. Specifications
I-8014W API User Manual, v1.0.1, June 2011
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
10
1.4. Pin Assignments
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
11
1.5. Jumper Settings
Differential / Single-ended Jumper Selection
Input impedance Jumper Selection
Note : I-8014CW do not have those Jumper, it is only with Differential Mode and
Input impedance 20 KΩ
Secondary
FPGA
Primary
FPGA
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
12
Adjusting the Input impedance
The I-8014W allows three input impedance options, including 20 kΩ, 200 kΩ (default
setting) and 20 MΩ to meet system requirements. In most cases, 200 kΩ is sufficient.
Note that each time the input impedance is adjusted on a calibrated module, the
module must be recalibrated. Refer to the Calibration section on page 23 if you are
using an I-8000 or iPAC-8000 (MiniOS7 platform controller), or refer to page 39 for
details of the calibration process if you are using a module based on the WinCE or
WES platform.
I-8014W API User Manual, v 1.0.2, May 2012 E-mail: service@icpdas.com
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved.
13
1.6. Wire Connections
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
14
1.7. Block Diagram
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
15
1.8. Location of the Demo Programs
ICP DAS provides a range of demo programs for different platforms that can be used
to verify the functions of the I-8014W. The source code contained in these programs
can also be reused in your own custom programs if needed. The following is a list of
the locations where both the demo programs and associated libraries can be found
on either the ICP DAS web site or the enclosed CD.
Both I-8014W and I-8014CW use the same library, but demo. The I-8014W demo is
located at 8014w folder and I-8014CW is located at 8014cw folder. .
For example:
I-8014W demo for I-8000 is located at
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/8000/841x881x/demo/io_in_slot/8014w/
I-8014CW demo for I-8000 is located at
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/8000/841x881x/demo/io_in_slot/8014cw/
Platform
Location
Library
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/8000/841x881x/demo/lib/
Demo
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/8000/841x881x/demo/io_i
n_slot/
Library
CD:\Napdos\8000\841x881x\demo\Lib
Demo
CD:\Napdos\8000\841x881x\demo\IO_in_Slot
Library
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/ipac8000/demo/basic/ip-8
4x1_ip-88x1/lib/
Demo
ftp://ftp.icpdas.com/pub/cd/8000cd/napdos/ipac8000/demo/basic/ip-8
4x1_ip-88x1/io_in_slot/
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
16
Library
CD:\Napdos\iPAC8000\Demo\Basic\iP-84x1_iP-88x1\Lib
Demo
CD:\Napdos\iPAC8000\Demo\Basic\iP-84x1_iP-88x1\IO_in_Slot
Library
ftp://ftp.icpdas.com/pub/cd/winpac/napdos/wp-8x4x_ce50/sdk/io_mo
dules/
Demo
ftp://ftp.icpdas.com/pub/cd/winpac/napdos/wp-8x4x_ce50/demo/winp
ac/evc/pac_io/local/ (eVC demo)
ftp://ftp.icpdas.com/pub/cd/winpac/napdos/wp-8x4x_ce50/demo/winp
ac/dotnet/c%23.net/pac_io/local/ (C# demo)
Platform
Location
Library
CD:\napdos\wp-8x4x_ce50\sdk\IO_Modules
Demo
(eVC & C#)
CD:\napdos\wp-8x4x_ce50\Demo\WinPAC\eVC\PAC_IO\Local
CD:\napdos\wp-8x4x_ce50\Demo\WinPAC\DOTNET\C#.NET\PAC
_IO\Local
XP-8000-C
E6
ftp://ftp.icpdas.com/pub/cd/xp-8000-ce6/sdk/special_io/
ftp://ftp.icpdas.com/pub/cd/xp-8000-ce6/demo/xpac/vc2008/io/local
/
ftp://ftp.icpdas.com/pub/cd/xp-8000-ce6/demo/xpac/c%23/io/local/
XP-8000-At
om-CE6
ftp://ftp.icpdas.com/pub/cd/xpac-atom-ce6/sdk/special_io/
ftp://ftp.icpdas.com/pub/cd/xpac-atom-ce6/demo/xpac/vc2008/io/lo
cal/
ftp://ftp.icpdas.com/pub/cd/xpac-atom-ce6/demo/xpac/c%23/io/loc
al/
XP-8000-C
E6
CD:\SDK\Special_IO
CD:\Demo\XPAC\VC2008\IO\Local
CD:\Demo\XPAC\C#\IO\Local
XP-8000-At
om-CE6
CD:\SDK\Special_IO
CD:\Demo\XPAC\VC2008\IO\Local
CD:\Demo\XPAC\C#\IO\Local
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
17
XP-8000
ftp://ftp.icpdas.com/pub/cd/xp-8000/sdk/io/
ftp://ftp.icpdas.com/pub/cd/xp-8000/demo/specialized_io/
XP-8000-At
om
ftp://ftp.icpdas.com/pub/cd/xpac-atom/sdk/io/
ftp://ftp.icpdas.com/pub/cd/xpac-atom/demo/specialized_io/
XP-8000
CD:\SDK\IO
CD:\Demo\Specialized_IO
XP-8000-At
om
CD:\SDK\IO
CD:\Demo\Specialized_IO
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
18
Chapter 2. Quick Start
This section provides a Getting Started guide and details of the calibration process
when using the I-8014W module on either the MiniOS7 or Windows platforms.
This section contains a Getting Started guide and details of the calibration process
when using the I-8014W:
For MiniOS7-based Controllers, see page 19 (i-8000 and iPAC-8000 modules)
For Windows-based Controllers, see page 36 (WinCE and WES modules)
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
19
2.1. MiniOS7-based Controllers
This section contains:
Getting Started Guide, page 37
Calibration, page 23
I-8014W and I-8014CW User Manual, v 1.0.3, Dec 2015 E-mail:
service@icpdas.com
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
20
2.1.1. Getting Started Guide
The AI_INFO.EXE executable file, which is located in the basic_info folder of the
I-8014W demo programs, can be used to retrieve the basic configuration information
related to the I-8014W and to verify the AI read functions. The basic configuration
information includes:
The Version number and the published date of the library.
The FPGA version
The single-ended/differential jumper settings
The gain and offset values for each input range
The data read on each channel
(See the Location of the Demo Programs section on page 15 for details of where to
find the AI_INFO.EXE in the I-8014W demo programs folder)
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119

ICP I-8014CW User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI