background image

 

I-8014W API User Manual, v 1.0.1, September 2011                    E-mail: [email protected] 

Copyright ©  2011 ICP DAS Co., Ltd. All Rights Reserved.     

Hardware 

Specifications 

Input Range 

+/- 10 V, +/- 5 V, +/- 2.5 V, +/- 1.25 V 

-20 mA ~ +20 mA (Requires Optional External 
125 Ohm Resistor) 

Resolution 

16 bits 

Sampling Rate 

Single Channel, Polling Mode :250K S/s 

FIFO   

4k sample (8 k bytes) 

Accuracy 

0.05 % of FSR +/- 1 LSB 

Input Mode 

Polling, Pacer (Magic Scan) 

Magic Scan Mode 

Mode1: standard mode 

Mode2: virtual sample and hold 

Overvoltage Protection 

+60 V ~ -45 V 

Input Impedance 

20 k, 200 k, 20 M (Jumper Select) 

Intra-module Isolation, Field 
to Logic 

2500 Vrms 

LED Power Indicator 

Yes 

Power Consumption 

2.5 W Max 

Operating Temperature 

-25 ~ +75 °C 

Storage Temperature 

-30 ~ +85 °C 

Humidity 

5 to 95 % RH, Non-condensing 

Dimensions (W x L x H) 

30 mm x 102 mm x 115 mm 

Summary of Contents for I-8014W

Page 1: ...0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 1 I 8014W User Manual 250 KS s 16 bit 8 channel differential 16 channel single ended analog input module...

Page 2: ...S 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 i...

Page 3: ...ock Diagram 11 Demo Programs Location 12 Quick Start 14 On MiniOS7 platform controller 14 Getting Started Guide 14 Calibration 17 On Windows platform controller 26 Getting Started Guide 26 Calibration...

Page 4: ...ngleEndJumper 62 i8014W_ReadGainOffset 64 i8014W_ReadAI 66 i8014W_ReadAIHex 68 i8014W_ConfigMagicScan 70 i8014W_StartMagicScan 73 i8014W_StopMagicScan 74 i8014W_ReadFIFO 75 i8014W_CalibrateData 77 i80...

Page 5: ...g multi channel system This manual contains Chapter 1 Hardware Provides hardware information such as specifications jumper setting note and wiring Chapter 2 Quick Start Provides how to start an overvi...

Page 6: ...ling Mode 250K S s FIFO 4k sample 8 k bytes Accuracy 0 05 of FSR 1 LSB Input Mode Polling Pacer Magic Scan Magic Scan Mode Mode1 standard mode Mode2 virtual sample and hold Overvoltage Protection 60 V...

Page 7: ...I 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 7 Pin Assignments...

Page 8: ...nual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 8 Jumper setting Differential Single Ended select jumper Input impedance select jumper Secondary...

Page 9: ...h as 20k 200k default setting and 20M Ohm to meet system requirement For most of cases 200k is good enough Every time when the input impedance is changed on a calibrated module it is necessary to cali...

Page 10: ...All Rights Reserved E mail service icpdas com 10 Wire Connection Tips Warnings It is recommended to connect the V to AGND system ground when measuring differential voltage inputs as the figure shows b...

Page 11: ...I 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 11 Block Diagram...

Page 12: ...ry CD Napdos 8000 841x881x demo Lib Demo CD Napdos 8000 841x881x demo IO_in_Slot For iPAC 8000 on Web Library ftp ftp icpdas com pub cd 8000cd napdos ipac8000 demo basic i p 84x1_ip 88x1 lib Demo ftp...

Page 13: ...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 For Wi...

Page 14: ...platform controller page 26 WinCE and WES unit On MiniOS7 platform controller This section contains Getting Started Guide page 14 Calibration page 17 Getting Started Guide The executable file AI_INFO...

Page 15: ...setting page 8 make sure the Differential Single Ended select jumper is in differential position Step 2 Connect your stable signal source ex a battery output to I 8014W by differential wiring as below...

Page 16: ...on PC verify the basic information and AI read from each channel as follows Tips Warnings Unused channel should be connected to GND to avoid floating Library and FPGA version information Single ended...

Page 17: ...such as 3 1 2 digit power supplier or better or a battery output One 4 1 2 digit voltage meter 15 bit resolution or better Calibration Program see page 12 to get the demo program located in I 8014W d...

Page 18: ...iPAC 8000 unit Step 1 Repeat from step1 to step3 in Quick Start See page 14 a Wire the power to control unit and control unit to PC b Set the Differential Single Ended jumper in differential position...

Page 19: ...r MiniOS7 Utility http www icpdas com download minios7 htm 8014cal exe the calibration program for I 8000 unit located at the same folder as I 8014W demo programs See Demo Programs Location page 12 iP...

Page 20: ...anual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 20 c Highlight the calibration program and click Upload d Right click the updated calibration f...

Page 21: ...mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 21 The calibration program in control unit runs and on PC the 7188xw exe runs to provide a command line interface Step 3 Calib...

Page 22: ...two values points in the range of the selected input type for calibration process For example after selecting 0 10V 10V we would like to use 8V and 8V as the two calibration points c Make calibration...

Page 23: ...ration source output the other point 8V f Enter the value read by meter at the input 2nd voltage prompt and press Enter The console displays new gain and offset values for this calibration as New Gain...

Page 24: ...ved 24 To verify the calibration Step1 Make the calibration source output a voltage to channel 0 of I 8014W For example 2V Step2 In the same console of calibration program enter t Read calibrated AI v...

Page 25: ...opyright 2011 ICP DAS Co Ltd All Rights Reserved 25 To recover default calibration settings For 200k Ohm default setting input impedance the calibration program provides r Recover default calibration...

Page 26: ...of the I 8014W and verify the AI read function The basic information includes Version number and published date of library FPGA version The Single ended differential jumper setting position The gain...

Page 27: ...r Step4 Launch pac_i8014W_BasicInfo exe on controller and verify the basic information and AI read from each channel as follows Tips Warnings Unused channel should be connected to GND to avoid floatin...

Page 28: ...rce such as 3 1 2 digit power supplier or better or a battery output One 4 1 2 digit voltage meter 15 bit resolution or better Calibration Program see page 12 to get the demo program located in I 8014...

Page 29: ...the Differential Single Ended select jumper is in differential position Step2 Connect your calibration source to channel 0 of I 8014W by differential wiring Step3 Plug the I 8014W into the slot of co...

Page 30: ...lot number and input range from the drop down list located in the upper part of the window Step6 Determine two values points in the range of the selected input type for calibration process For example...

Page 31: ...l Rights Reserved 31 Step8 Click the Step1 Set point 1 tab enter the value read by meter ex 8 0 and click Set as Calibration Point 1 Step9 Make calibration source output the other value ex 8V Step10 C...

Page 32: ...l v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 32 Step11 Click the Step3 apply settings tab click Save new calibration settings The calibration fo...

Page 33: ...ce icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 33 To verify the calibration Step1 Make the calibration source output a voltage to channel 0 of I 8014W For example 2V Step2 Click the S...

Page 34: ...ved 34 To recover default calibration settings For 200k Ohm default setting input impedance the calibration program provides Recover default calibration settings function to recover the gain and offse...

Page 35: ...data acquisition At the last part of this chapter it introduces two demo programs for implementing Magic Scan Both the Magic Scan mode and trigger method could be selected in the two programs the onl...

Page 36: ...educe the loading of CPU and advance the performance of your system The following table describes the specification of Magic Scan Max channel Sampling rate FIFO Sampling mode Trigger method Transfer d...

Page 37: ...Reserved 37 Standard mode It converts one data from one channel at every sampling occasion For example if the Ch0 Ch1and Ch2 are configured into the scan function and sampling rate is set as 1 kHz the...

Page 38: ...function are sampled at the same time actually the sampling rate is 250 kHz and the scan cycle time is the period for the sampling rate you set into the Magic Scan For example if you set the sampling...

Page 39: ...Internal hardware trigger method page 40 External hardware trigger method page 41 Software trigger method The API provides a trigger instruction to start Magic Scan If you have two or more modules you...

Page 40: ...od If you would like to synchronously start the Magic Scan function on two or more modules you can set the trigger source as the internal hardware signal in program and the internal trigger signal wil...

Page 41: ...o accepts external trigger source from the first two terminals and with this trigger method you can set it as rising edge triggered or falling edge triggered After setting the external trigger source...

Page 42: ...quisition data is saved into the FIFO one by one in the scan process We have to read back data from the FIFO in time to avoid FIFO filled if the FIFO is filled the data can not be saved again until a...

Page 43: ...mpling count Sampling rate 2 250 kHz Scan mode 1 standard mode 2 virtual sample and hold mode Trigger method 0 software trigger 1 internal hardware trigger 2 external hardware trigger External hardwar...

Page 44: ...modes See Demo Programs Location page 12 to get the demo program for your controller Magic exe page 44 transfer data by polling Mag_ISR exe page 50 transfer data by interrupt Magic exe This section d...

Page 45: ...After complete setting of the Magic Scan parameters press any key to start Magic Scan as below Step1 Input total scan channel count Form 1 to 16 Step2 Set channel number and input range for the channe...

Page 46: ...2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 46 If scan mode is set as standard mode the total spend time equals 1000 multiplied by sampling period 1000 is the total sample count...

Page 47: ...c exe on Windows platform Step6 Click the Start Magic Scan tag and press Start Magic Scan The data and scan order shows in the right pane Step1 Select slot and input scan channel count From 1 to 16 St...

Page 48: ...ult of standard scan mode Click the Start Magic Scan tag when the sampling rate is set as 200 Hz the sampling period is 1 200 1000 5 ms And spend time equals total sample count multiplied by sampling...

Page 49: ...mode Click the Start Magic Scan tag When the sampling rate is set as 200 Hz the period for one scan cycle is 1 200 1000 5 ms The number of scan cycle Total sample count Total scan channel count In th...

Page 50: ...lotIndex Slot_ISR triggerLevel i8014W_StartMagicScan slotIndex The ISR installed will handle the task when interrupt signal is arisen from FIFO and parameter triggerLevel is for setting the interrupt...

Page 51: ...umper on I 8014W as differential input mode Step2 Set input channel as ch0 ch3 and input range of each channel as 10 10 V Gain 0 Step3 Set sampling rate as 200 and scan mode as mode2 virtual sample an...

Page 52: ...r the floating data through Ethernet Tips Warnings It is recommended to create several buffers to deal with the data obtained from FIFO and reuse them in process as the figure below This allows the sy...

Page 53: ...n MiniOS7 and Linux platform and pac_i8014W_ is prefixed to the functions for Windows platform In this manual we use the function name on MiniOS7 platform as example and the title of the section for e...

Page 54: ...gleEndJumper Gets the single ended differential jumper position set on the I 8014W i8014W_ReadGainOffset Obtains the gain and offset values for each input type i8014W_ReadAI Reads a floating point inp...

Page 55: ...lears FIFO after the UnlockFIFO function executed i8014W_InstallMagicScanISR Installs ISR for interrupt events form FIFO i8014W_UnInstallMagicScanI SR Uninstalls Magic Scan ISR i8014W_ClearInt Clears...

Page 56: ...d WES short pac_i8014W_Init int slot Parameter slot 0 7 Return 0 the module plugged in the slot is I 8014W 1 there is no I 8014W module in this slot For other returned value see Error code list page 5...

Page 57: ...pyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 57 Example C C int slotIndex err err i8014W_Init slotIndex if err 0 Print There is an I 8014W at slot d n slotIndex else Print...

Page 58: ...FPGA firmware It is for troubleshooting or recording only Prototype For MiniOS7 short i8014W_GetFirmwareVer_L1 int slot For Windows CE and WES short pac_i8014W_GetFirmwareVer_L1 int slot Parameter slo...

Page 59: ...GA firmware It is for troubleshooting or recording only Prototype For MiniOS7 short i8014W_GetFirmwareVer_L2 int slot For Windows CE and WES short pac_i8014W_GetFirmwareVer_L2 int slot Parameter slot...

Page 60: ...on gets the version number of 8014W lib It is for troubleshooting or recording only Prototype For MiniOS7 short i8014W_GetLibVersion void For Windows CE and WES short pac_i8014W_GetLibVersion void Par...

Page 61: ...bDate This function is used to get the release date of 8014W lib Prototype For MiniOS7 void i8014W_GetLibDate char LibDate For Windows CE and WES void pac_i8014W_GetLibDate char libDate Parameter LibD...

Page 62: ...ou want to use 8 channel differential input the jumper needs to be put in differential position similarly the jumper needs be put in single ended position then the 16 channel single ended input works...

Page 63: ...2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 63 Example C short jumper 0 maxCh 0 jumper i8014W_GetSingleEndJumper slot if jumper maxCh 16 Print i8014W Input Mode Single End n r el...

Page 64: ...5 V 2 2 5 V 3 1 25 V 4 20 mA Prototype For MiniOS7 void i8014W_ ReadGainOffset int slot int gain unsigned short gainValue short offsetValue For Windows CE and WES void pac_i8014W_ReadGainOffset int s...

Page 65: ...1 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 65 Example C unsigned short gVal 0 short oVal 0 i8014W_ReadGainOffset slot gain gVal oVal Print nThe Gain and Offset for C...

Page 66: ...el Prototype For MiniOS7 short i8014W_ReadAI int slot int ch int gain float fVal For Windows CE and WES short pac_i8014W_ReadAI int slot short ch short gain float fVal Parameter slot 0 7 ch 0 7 for di...

Page 67: ...0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 67 Example C int slot ch gain float fVal 0 0 slot 0 gain 0 10V for ch 0 ch 8 ch i8014W_ReadAI slot ch gain fVa...

Page 68: ...l Prototype For MiniOS7 short i8014W_ReadAIHex int slot int ch int gain short hVal For Windows CE and WES short pac_i8014W_ReadAIHex int slot short ch short gain short hVal Parameter slot 0 7 ch 0 7 f...

Page 69: ...1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 69 Example C int slot ch gain short hVal 0 0 slot 0 gain 0 10V for ch 0 ch 8 ch i8014W_ReadAIHex slot ch gain h...

Page 70: ...called before the start Magic Scan instruction Prototype For MiniOS7 void i8014W_ConfigMagicScan int slot int chArr int gainArr int scanChCount float sampleRate int scanMode int triggerSource int tri...

Page 71: ...the same index in chArr 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA scanChCount the count of channels which are added in chArr sampleRate total sampling rate 2 250 kHz scanMode 1 standard mode 2 virtual sa...

Page 72: ...d Input range 0 gainArr 1 1 element 1 assigned Input range 1 gainArr 15 4 element 15 assigned Input range 4 scanChCount 1 only sample chArr 0 channel 0 sampleRate 25000 0 set Sample rate 25 KHz scanMo...

Page 73: ...till it receives the trigger signal If you would like to start Magic Scan on more than one I 8014W simultaneously by internal hardware trigger source configure each module and execute StartMagicScan f...

Page 74: ...operation of saving data into FIFO is also stopped because no data is converted again Prototype For MiniOS7 short i804W_StopMagicScan int slot For Windows CE and WES short pac_i8014W_StopMagicScan in...

Page 75: ...a and readCount till all the data required is obtained and then stop the Magic Scan Prototype For MiniOS7 short i804W_ReadFIFO int slot short hexData short readCount short dataCountFromFIFO For Window...

Page 76: ...Example C int slot short hexData 8192 long readCnt 0 short totalScaned 0 short TargetCnt 1000 slot 0 i8014W_ReadFIFO slot hexData totalScaned TargetCnt totalScaned readCnt if readCnt 0 totalScaned re...

Page 77: ...to floating point value Prototype For MiniOS7 void i8014W_CalibrateData int slot short iGain short dataFromFIFO float calibratedAI For Windows CE and WES void pac_i8014W_CalibrateData int slot short i...

Page 78: ...hts Reserved E mail service icpdas com 78 Example C int slot int i float calibratedAI 0 printf Start to Print all data n n r for i 0 i totalScaned i slot 0 i8014W_CalibrateData slotIndex gainArr i sca...

Page 79: ...Prototype For MiniOS7 void i8014W_CalibrateDataHex int slot short iGain short dataFromFIFO short calibratedAI For Windows CE and WES void pac_i8014W_ CalibrateDataHex int slot short iGain short dataFr...

Page 80: ...hts Reserved E mail service icpdas com 80 Example C int slot int i float calibratedAI 0 printf Start to Print all data n n r for i 0 i totalScaned i slot 0 i8014W_CalibrateDataHex slotIndex gainArr i...

Page 81: ...ed to unlock FIFO when the FIFO locked because of filled Keep the FIFO unlocked and cleared before the next Magic Scan starting Prototype For MiniOS7 void i804W_UnLockFIFO int slot For Windows CE and...

Page 82: ...used to clear FIFO after the UnlockFIFO function executed Keep the FIFO unlocked and cleared before the next Magic Scan starting Prototype For MiniOS7 void i804W_ClearFIFO int slot For Windows CE and...

Page 83: ...n FIFO is more than the definition of argument triggerLevel set as table below the interrupt event occurs and the ISR executes to serve the event In ISR use ReadFIFO to transfer data from FIFO and Cle...

Page 84: ...tion based on the count of data in FIFO If the argument is set more than 7 it will be coerced to 7 If the number of data in FIFO is more than the condition that triggerLevel set the interrupt will be...

Page 85: ...slot ISRFUN TrgLevel i8014W_ConfigMagicScan Detail reviews i8014W_ConfigMagicScan section i8014W_StartMagicScan slot while 1 if IntCnt 1 i8014W_UnInstall_MagicScanISR slot break void ISRFUN int slot I...

Page 86: ...d to uninstall the Magic Scan ISR Prototype For MiniOS7 short i804W_UnInstallMagicScanISR int slot For Windows CE and WES short pac_i8014W_UnInstallMagicScanISR int slot Parameter slot 0 7 Return 0 No...

Page 87: ...the Magic Scan interrupt In ISR it should be called to clear the triggered status for dealing with the next interrupt event Prototype For MiniOS7 void i804W_ClearInt int slot For Windows CE and WES v...

Page 88: ...the AI function on WinCE or WES unit If the data read from the I 8014W is inconsistent with the input signal and you would like to confirm the input function pac_i8014W_Utility exe may help you The ut...

Page 89: ...ed to wire Vn and AGND analog ground pin additional to enhance the accuracy When measuring current input it is no use to enhance to accuracy Step2 Launch pac_i8014W_Utility exe Step3 Read the informat...

Page 90: ...ul for troubleshooting when a service is requested Verifying the gain and offset value The gain value is around 33000 if it is far from 33000 meaning that the value is incorrect To correct the situati...

Page 91: ...and select the input range from the gain drop down list b Input the total count of samples and choose the data format from the format drop down list c Press Start After the sampling process completed...

Page 92: ...the data read from I 8014W seem unstable If the battery testing could measure voltage correctly but not the real signal source it maybe caused by the following factors a noise corrupted signal source...

Page 93: ...executed the data converted is saved into FIFO continuously If we do not stop the Magic Scan after obtained data or we do not read data from FIFO in time the FIFO will be filled and then locked When...

Reviews: