Home

I-8014W User Manual

image

Contents

1. CH 0 yvj 10 0 Y CH 0 w 10 0 Y ma as CH 0 w 10 0 CH 0 10 0 V y 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Result 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 period In this demo the spend time 5004 ms equals to about 1000 total sample count defined in code times 5 sampling period orm1 Ioi x Configure Magic Scan Start Magic Scan agic aI Total Scaned iagi n Save Data to file Spend Time Selected Magic Scan Channel Gain Array 0 C 0 G f CH O 2 600098 Selected Magic Scan Channel Gain Array 1 C 1 G CH 1 2 599487 Selected Magic Scan Channel Gain Array 2 C 2 G CH 2 2 600708 Selected Magic Scan Channel Gain Array 3 C 3 G CH 3 2 599792 The Magic Scan Configurations of I 8014W are CH O 2 599792 Scan channel count 4 Total sample count 1000 CH 1 2 598877 CH O 0 Gain OJ 0 10 CH 2 2 601013 CH 1 1 Gain 1J 0 10 CH 3 2 599792 CH 2 2 Gain 2 0 10 CH OJ 2 599487 i 0 Q CH 1 2 599487 Scan Mode 1 M1 Standard CH 2 2 601013 CH 3 2 599792 Trigger State 0 No need for External Trigger Signal CH O 2 598877 Set Sam
2. short version version i8014W_GetLibVersion Print nLibrary Version 04X i8014W_GetLibVersion 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W _ GetLibDate 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 LibDate Output the release date of 8014W lib Return None Example C char libDate 32 i8014W_GetLibDate libDate Print nBuild Date s libDate 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_GetSingleEndJumper This function is used to get the single ended differential jumper position setting on the 1 8014W If you 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 correctly Prototype For MiniOS7 short i8014W_GetSingleEndJumper int slot For Windows CE and WES short pac_i8014W_GetSingleEndJumper int slot Parameter slot 0 7 Return 0 The jumper is in differential position 1 The jumper is in single ended position 1 8014W API User Manual v1 0 1 June 2011 Copyrig
3. Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Mag_ISR exe Mag_ISR exe demonstrates how to transferring data by interrupt By this way the Magic scan parameters settings are identical to those in Magic exe see Magic Scan Procedure page 43 and Magic exe page 44 the only difference is that we have to install interrupt service routine ISR before starting Magic Scan as i18014W_InstallMagicScanISR slotIndex Slot_ISR triggerLevel 18014W_StartMagicScan slotIndex The ISR installed will handle the task when interrupt signal is arisen from FIFO and parameter triggerLevel is for setting the interrupt condition as the follows triggerLevel Data count 0 8 1 16 2 32 3 64 4 128 5 256 6 512 7 2048 If the data count in FIFO meets the condition that triggerLevel set the interrupt signal will be arisen and the code in ISR installed will process Please note that you need to call clear interrupt function in ISR otherwise the next interrupt signal will not be serviced again Using interrupt to transfer data could save the CPU time used to polling and waiting data from FIFO 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Case Example The case requires 1 Measuring 4 differential signals ranged from 10 V to 10V 2 The sampling
4. Search I 8614W There is an i8614 at slot 18614 Input Mode Differential and can have maximum 8 analog input Step1 Input total scan channel count Input all i8614W_ConfigMagicScan parameters Step 1 Define scaned channel counts for magic Input scaned channel counts 1 16 4 Now we have scaned channel counts 4 Form 1 to 16 Step 2 Define 4 elements for channel and gain array The Gain definition of I 8614 Select z 16U Select 5SU Select cy Step2 Set channel number and Select 1 25U i Select AE input range for the channel Differential Mode range channel 7 The order of channel number Select which Channel of Arr lt 6 gt 6 Select which Gain of Arr 81 8 4 9 inputted determines the scan Select which Channel of Arrlil 877 1 d Select which Gain of Arr 11 4 0 order Select which Channel of Arr 2 lt gt 2 33 Select which Gain of Arr 2 1 6 4 gt 6 Select which Channel of Arr 3 877 Select which Gain of Arr l31 8 4 8 Step 3 Define Sample Rate of I 8614 Input Sample rate of 80144 12500000 200 Step3 Input sampling rate Note the real sample rate may not the same as userf inpu the function 188144 _ConfigMagicScan return code is khe real sample rate accepted by I 8614 Step 4 Select Scan Mode of I 8614W Scan Mode 1 M1 Standart Mode gt Step4 Input the scan mode Scan Mode 2 M2 Sample and Hold Mode Input Scan Mode of
5. e FPGA version e The Single ended differential jumper setting position e The gain and offset values for every input range e The data read on each channel See Demo Programs Location page 12 to get Al_INFO EXE in 1 8014W demo program 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 7 Step 1 Refer to Jumper 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 1 8014W by differential wiring as below Step 3 Connect the power supply to the unit and connect the control unit and PC by RS232 cable D BAIXISBIX EE _ a a lell aleg AA i es E i EE AE l A A 5 a 5 POWER SUPPLY a ga ee 10V 30VDC fe d Ea gel ga A alial a FAI FAI tL e ol e i p lt gt CA0915 HOST COMPUTER l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved Step 4 Launch Al_INFO EXE on PC verify the basic information and Al read from each channel as follows Tips amp Warnings A Unused channel should be connected to GND to avoid flo
6. 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 hardware trigger condition 0 rising edge trigger 1 falling edge trigger sal Magie Sean Convert hexadecimal data to floating 4 point Read data from FIFO Physical data till all data is obtained Stop Magic Scan 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Magic Scan Example This section describes two Magic Scan demo programs that use different data transfer modes See Demo Programs Location page 12 to get the demo program for your controller gt Magic exe page 44 transfer data by polling gt Mag_ISR exe page 50 transfer data by interrupt Magic exe This section describes the parameters that should be set in Magic exe and separates the description for MiniOS7 and Windows platforms This section contains gt The demo program on MiniOS7 page 45 gt The demo program on Windows platform page 47 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com The demo program on MiniOS7 The following figure shows the interface and parameters that should be set in Magic exe on MiniOS7 This Demo will show how to use magic scan function to read analog input
7. function name l 8000 series MiniOS7 iPAC 8000 series i8014W_ function name VP 2000 series Linux LinPAC 8000 series i8014W_ function name 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Function list The following table lists the functions provided in 8014W lib for MiniOS7 platform Function i8014W_Init Description Initializes the driver and confirms hardware ID i8014W_GetFirmwareVer_L1 Gets the version number of the primary FPGA firmware for troubleshooting i8014W_GetFirmwareVer_L2 Gets the version number of the secondary FPGA firmware for troubleshooting i8014W_GetLibVersion Gets the version number of 8014W lib i8014W_GetLibDate Gets the release date of 8014W lib i8014W_GetSingleEndJumper Gets the single ended differential jumper position set on the 1 8014W i8014W_ReadGainOffset Obtains the gain and offset values for each input type i8014W_ReadAl Reads a floating point input from one specified channel i8014W_ReadAlHex Reads a hexadecimal input from one specified channel i8014W_ConfigMagicScan Configures all the parameters needed in Magic Scan i8014W_StartMagicScan Starts Magic Scan the data acquired will be saved into FIFO If the external trigger source is selected the Magic Scan will wait after the function is called
8. 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 scanMode 1 use M1 standard mode triggerSource 1 use internal interrupt signal Mode triggerState 0 realsampleRate i8014W_ConfigMagicScan slotIndex chArr gainArr scanCh Count sampleRate scanMode triggerSource triggerState Print Set Sample Rate 6 3f Real Sample Rate 6 3f n sampleRate realsampleRate i804W_StartMagicScan slot i8014W_ReadFIFO Detail reviews i8014W_ReadFIFO section 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_StartMagicScan This function is used to start Magic Scan While Magic scan starts the data converted is saved into FIFO immediately When external hardware trigger is selected the I 8014W will wait after this function executed 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 function once the argument slot could be any one slot number of those modules plugged in Prototype For MiniOS7 short i804W_StartMagicScan int slot For Windows CE and WES short pac_i8014W_StartMagicScan int slot Parameter slot 0 7 Return 0 No Error For other returned value see Error code
9. Ce V7 v15 HE AGND AGND F G AGND 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Jumper setting Te ae Secondary a g E preeeereso crevenet FPGA Differential input Default CIO a Single ended input Select ns m e g P Input Type O1 Foe Input impedance select jumper Select Input Impedance 200 kQ Default Note 1 The Jumpers should set on the same value 2 Input Impedance 2 x setting value 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 ae Input impedance adjustment The 1 8014W provides three input impedances such 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 calibrate the module again refer to Calibration page17 if you are using l 8000 or iPAC 8000 MiniOS7 platform controller if you use WinCE or WES platform unit refer to page 28 for the calibration process Select Input Impedance 200 kQ Default Note 1 The Jumpers should set on the same value 2 Input Impedance 2 x setting value 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved lea Wire C
10. Demo ftp ftp icpdas com pub cd 8000cd napdos ipac8000 demo basic i p 84x1_ip 88x1 io_ in slot For iPAC 8000 on CD Library CD Napdos iPAC8000 Demo Basic iP 84x1_iP 88x1 Lib Demo CD Napdos iPAC8000 Demo Basic iP 84x1_iP 88x1 lO_in_ Slot For Windows CE5 on Web Library ftp ftp icpodas com pub cd winpac napdos wp 8x4x_ce50 sdk io modules Demo ftp ftp icpdas com pub cd winpac napdos wp 8x4x ce50 demo wi npac evc pac_io local eVC demo ftp ftp icpdas com pub cd winpac napdos wp 8x4x ce50 demo wi npac dotnet c 23 net pac_io local C demo 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved hea Platform Location For Windows CE5 on CD Library CD napdos wp 8x4x_ce50 sdk lIO_ Modules CD napdos wp 8x4x_ce50 Demo WinPAC eVC PAC_ O Local Demo CD napdos wp 8x4x_ce50 Demo WinPAC DOTNE T C NET PAC eVC amp C _IO Local For Windows CE6 on Web ftp ftp icpdas com pub cd xp 8000 ce6 sdk special_io XP 8000 ftp ftp icpdas com pub cd xp 8000 ce6 demo xpac vc2008 io loca CE6 1 ftp ftp icpdas com pub cd xp 8000 ce6 demo xpac c 23 io local ftp ftp icpdas com pub cd xpac atom ce6 sdk special_io XP 8000 ftp ftp icpdas com pub cd xpac atom ce6 demo xpac vc2008 io lo Atom CE6 Cal ftp ftp icpodas com pub cd xpac atom ce6 demo xpac c 23 io loc al For Windows CE6 on CD CD SDK Special_ lO eee
11. F 2 Arr i F 2 Arr i F 2 Arr i F 2 66421 66451 66451 66391 66451 66451 Arr 21 F 2 6645 Arr 21 F 2 6645 Arr 2 F 2 6642 1 Arr 2 1 F 2 6645 Arr 2 1 F 2 6645 Arr 2 1 F 2 6642 Arr 3 1 F 2 66451 Arr 3 1 FL2 6642 Arr 3 1 FL2 6642 Arr 3 1 F 2 6642 Arr 3 1 FL 2 6642 Arr 3 1 F 2 6645 Arr 1 FL 2 6642 1 Arr 11 F 2 66421 Arr 21 F 2 66421 Arr 31 F 2 66421 DURS 664 ag 66 4 pe 6 4 np 6 4 4 j D D 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com The demo program on Windows platform The following figure shows the interface and parameters need be set in Magic exe on Windows platform Step1 Select slot and input scan channel count From 1 to 16 Step2 Select trigger source and input sampling rate If external trigger source is selected select trigger state Step3 Select scan mode Ly Single Ended Diff rential Differential me ScanMode mi Standard Trigger Source Software Command x Trigger State High x ge sample Rate arget Sample Count 1000 cH 0 v 10 0 V CH 0 w 4 10 0 V x cH1 Lel 00v Acho ml 100v M Setting SEM EE ad Step4 Select the channel scan order and ns wov co input type for each channel SaL katik Step5 Press the Setting button 2 StartMagic Scan 1 8014W slot Index Slot 1 Scan Channel Count 4
12. Calibrate the I 8014W a Select an input type from 0 3 7188X gt Calibrate Gain_ 16 66U to 16 00U 1 gt Calibrate Gain_1 5 66U to 5 88U 2 gt Calibrate Gain_2 2 56U to 2 5 U 3 gt Calibrate Ga in_3 1 250 to 1 25 U Cr gt Recover default calibration settings lt t gt Read calibrated AI value of Ch Cs gt Show calibrated Gain Offset parameters Cq gt quit X OX OX OX XX X X X X OX KO X X X X X PQ Please choose 6 3 r t s q Original Gain_ 34674 Offset_ 74 Please input ist voltage 6 8 16 0 8 063 Point 1 517 Hex Please input 2nd voltage 6 6 16 6 gt 8 663 Point 2 CFB D Hex New Gain 36116 Offset 366 Save to EEPROM Cy n gt d y Gain is calibrated 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved La b Determine 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 source output one of the two points ex 8V pou A Oo 2e2 e e 7 meme d Enter the value read by meter at the input 1st voltage prompt in OROG 10 VW DE the console and press Enter FUNCTION ee MAT 5 7188X W 1 31 COM1 11520 gt Calibrate i to 16 86U 1 gt Calibrate Gain_ to 5 0U 2 gt Calibr
13. E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved LES On Windows platform controller This section contains gt Getting Started Guide page 26 gt Calibration page 28 Getting Started Guide The executable file pac_i8014W_Basiclnfo exe in Basicinfo folder of 1 8014W demo could be used to get the basic information of the I 8014W and verify the Al read function The basic information includes e Version number and published date of library e FPGA version e The Single ended differential jumper setting position e The gain and offset values for every input range e The data read on each channel See Demo Programs Location page 12 to get pac_i8014W_BasiclInfo exe in 1 8014W demo program Step1 Refer to Jumper setting page 8 make sure the Differential Single Ended select jumper is in differential position Step2 Connect your stable signal source ex a battery output to I 8014W by differential wiring D e o o s o o o gt o o o gt N Step3 Plug the 1 8014W into the slot of l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 2 control unit and turn on the controller Step4 Launch pac_i8014W_BasiclInfo exe on controller and verify the basic information and Al read from each channel as follows Tips amp Warnings Unused channel should be
14. calibration settings For 200k Ohm default setting input impedance the calibration program provides r Recover default calibration settings function to recover the gain and offset values to factory default 16U Gain 34074 SU Gain 34972 2 SU Gain 3466 7 E Gain 34654 26mA Gain 3466 GainvOffset parameters which in using 16U Gain 31383 Offset 64 7 SU Gain 31359 Offset 68 2 5U Gain 34969 Offset 84 1 25U Gain 34654 Offset 79 26mA Gain 34669 Offset 84 WU OU NN lt G gt Calibrate Gain_ 16 66U to 16 00U lt 1 gt Calibrate Gain_1 5 66U to 5 88U lt 2 gt Calibrate Gain_2 2 56U to 2 56U lt 3 gt Calibrate Gain_3 1 25U to 1 25U lt rdRecover default calibration settings lt t gt Read calibrated AI value of Ch lt s gt Show calibrated Gain Offset parameters Cq gt quit KKKKKK KS Le Please choose lt 8 3 r t s aq r Backup default Gain Offset parameter settings for 166K 16U Gajen 346074 Offset Ps SU Gain 34672 Offset 76 2 5U Gain 34069 Offset 84 1 2SU Ga 34954 Offset 7 26mA Gain 32863 088cer a Gain Offset param ters which in using 16U Gain 34674 Offset 7 SU Gain 34672 Offset 2 5U Go 34669 Offset i 1 25U Gain 34053 0T set 76 IA P UE UES HN l 8014W API User Manual v 1 0 1 September 2011
15. connected to GND to avoid floating Library and FPGA version information Single ended differential jumper position 1 8014W slot Index Sioto v Firmware 1 1 Firmware 2 2 Library Version 1007 Single Ended Differential Differential Gain Value 32833 Offset Value Gain value is around 33000 when it on is far from 33000 means that the CH cHi2 CH 3 cH 4 CHS CH 6 CH 7 l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 27 Calibration Every one of I 8014W is factory calibrated and well verified Usually it is unnecessary to calibrate the module unless the input impedance is changed on a calibrated module or the accuracy is lost To calibrate the I 8014W in addition to plugging the 1 8014W in the slot of controller the following items are needed e One stable calibration source such as 3 1 2 digit power supplier or better or a battery output e One 4 1 2 digit voltage meter 15 bit resolution or better e Calibration Program see page 12 to get the demo program located in I 8014W demo program Tips amp Warnings 1 An unstable calibration source will cause the calibration fault and affect the data acquisition accuracy 2 If you would like to calibrate 20 mA select 2 5V instead the two types use the same gain and offset values 3 The calibration program use channel 0 to accept calibration source
16. list page 55 Example C int slot slot 0 i804W_StartMagicScan slot 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 18014W_ StopMagicScan This function is used to stop Magic Scan the 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 int slot Parameter slot 0 7 Return 0 No Error For other returned value see Error code list page 55 Example C int slot slot 0 i804W_StopMagicScan slot Detail reviews i804W_ReadFifo section 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ReadFIFO This function is used to read data from FIFO after Magic Scan triggered If the data in FIFO is less than argument readCount the function will read back all the data and return immediately you need to call this function again and reset argument hexData 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 Windows CE and WES short pac_i8014W_ReadFIFO int slot short hexData short readCount short dat
17. rate per channel is 200 Hz and sampling time interval from one channel to the next channel is less than 10us 3 When 2000 samples of data collected every time transfer the data through Ethernet to data center or a remote data storage disk To meet the requirements Step1 Set the jumper on 1 8014W as differential input mode Step2 Set input channel as chO ch3 and input range of each channel as 10 10 V Gain 0 Step3 Set sampling rate as 200 and scan mode as modez virtual sample and hold mode With virtual sample and hold mode and sampling time interval between one channel to another channel is 4 us Step4 Collecting 2000 samples means collecting 500 samples per channel 2000 divided by four channels It needs 500 1 200 Hz 2500 ms Step5 If the system uses MiniOS7 platform both converting data from hexadecimal to floating and transferring data through Ethernet add CPU load It is recommended to transfer the hexadecimal data to PC client and then convert them to floating data on PC 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com If the system uses Windows platform converting hexadecimal data to floating point data would not affect the CPU load You can convert data local and then transfer the floating data through Ethernet Tips amp Warnings obtained from FIFO and reuse them in process as the figure below This al
18. until the trigger signal is arrived i8014W_StopMagicScan Stops Magic Scan it also stops save data into FIFO i8014W_ReadFIFO Reads a specified number of data from FIFO i8014W_CalibrateData Calibrates the raw data read by Magic Scan and converts to floating point value 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Function Description i8014W_CalibrateDataHex Calibrates the raw data read by Magic Scan Unlocks FIFO when it is locked because the data fills the FIFO If the FIFO is locked UnlockFIFO and ClearFIFO commands need be executed for the next scan Clears FIFO after the UnlockFIFO function executed i8014W_UnLockFIFO i8014W_ClearFIFO i8014W_InstallMagicScanISR Installs ISR for interrupt events form FIFO i8014W_UnInstallMagicScanl SR Uninstalls Magic Scan ISR Clears interrupt status for waiting the next i8014W_Clearint interrupt event Error code list Error code Definition Description 0 NoError No error 1 ID_ERROR Check module s ID 2 SLOT_ERROR Slot index 0 7 3 CHANNEL_ERROR Channel index 0 15 4 GAIN_ERROR Gain 0 4 5 FIFO_EMPTY No data in FIFO 6 FIFO_LATCHED FIFO is full and be latched 7 FIFO_OVERFLOW FIFO is full 3 TX_NOTREADY ie primary FPGA and 1 8014W API User Manual v1 0 1 June 201
19. will wait unless it receive the external form Trig and Trig terminals and then start the Magic Scan Trig Trig Trig AGND 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com FIFO The I 8014W is equipped with a 4 k sample of FIFO which may store 4096 samples of data from Magic Scan to guarantee no data loss The acquisition 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 FIFO clear command is executed On the other hand if we read data from FIFO too frequently it will waste CPU time and reduce the performance To get the best balance we provide two modes to transfer data from FIFO one is by polling and the other is by interrupt I 16 chS E yy Mux ss y TIFO e Host 8 ch Diff Gain 4K 1 7 N Magic Y 4 Scan l a pr 3 AM FIFO Level Interrupt Ei 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Magic Scan Procedure The program procedure is illustrated as below Initialize the module Configure Magic Scan parameters Scan channel order 16 channels max Input range per channel Total sampling count Sampling rate 2 250 kHz
20. 1 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 18014W_Init This function initializes the driver and confirms the hardware ID Prototype For MiniOS7 short i8014W_ Init int slot For Windows CE and WES short pac_i8014W_lInit int slot Parameter slot 0 7 Return 0 the module plugged in the slot is 8014W 1 there is no I 8014W module in this slot For other returned value see Error code list page 55 Note Before you start to run any function for I 8014W the initial function need be executed once for one I 8014W If you have two or more 1 8014W you need call the initial function for each 1 8014W individual by passing the slot number that the I 8014W plugged in 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 There is no l 8014W at slot d n slotindex 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ GetFirmwareVer L1 This function gets the version number of the primary FPGA firmware It is for troubleshooting or recording only Prototype For MiniOS7 short i8014W_GetFirmwareVer_L1 int slot For Windo
21. 2 5 V 3 1 25 V 4 20 mA dataFromF IFO the raw data read from FIFO calibratedAl Output the floating point value Return None 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C int slot int i float calibratedAI 0 printf Start to Print all data n n r for i 0 i lt totalScaned i slot 0 i8014W_CalibrateData slotindex gainArr i scanChCount hexDatali amp calibratedAl printf Arr d 5 4f t i scanChCount calibratedAl 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_CalibrateDataHex This function is used to calibrate the raw data read in Magic Scan process Prototype For MiniOS7 void i8014W_CalibrateDataHex int slot short iGain short dataFromF IFO short calibratedAI For Windows CE and WES void pac_i8014W_ CalibrateDataHex int slot short iGain short dataFromF IFO short calibratedAl Parameter Slot 0 7 iGain 0 4 sets the input type 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA dataFromF IFO the raw data read from FIFO calibratedAl Output the calibrated hexadecimal value Return None 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Exa
22. 2011 ICP DAS Co Ltd All Rights Reserved 36 Standard mode It converts one data from one channel at every sampling occasion Sample Clk A Time ChO Ch1 Ch2 ChO Ch1 Ch2 ChO Ch1 Ch2 For example if the ChO Chiand Ch2 are configured into the scan function and sampling rate is set as 1 kHz the time period between every sampling operation is 1 ms and scan one cycle from Ch0 to Ch1 to Ch2 needs 3ms as below ChO Chl Ch2 ChO Chl Ch Ch0 ot PA 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved he ere Virtual sample and hold mode Virtual sample and hold works like that the several channels set into the scan 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 Ch1 Chi Chi Ch1 Ch1 Ch1 Ch1 Ch1 Ch1 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 For example if you set the sampling rate as 1 kHz and configure ChO Ch1 and Ch2 into the scan function the sampling rate for scanning ChO to Ch2 is 250 kHz and the frequency of scan cycle is 1 kHz therefore the time used between one scan cycle to the next is 1 ms Ch0 2 Ch0 2 hk Ims je lms __ 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Trigger method This section con
23. 4W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Parameter slot 0 7 chArr an array for setting the channel to scan The channel indices define the scan order the maximum channel number is 16 gainArr an array for setting the input type for the corresponding channel with 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 sample and hold mode triggerSource 0 software trigger 1 internal hardware trigger 2 external hardware trigger triggerState 0 rising edge trigger it is valid only for external hardware trigger 1 falling edge trigger it is valid only for external hardware trigger realSampleRate Output the real sampling rate that the I 8014W used Return None 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C int slot chArr 16 gainArr 16 scanChCount float sampleRate realsampleRate int scanMode triggerSource triggerState slot 0 chArr 0 0 element 0 assigned channel 0 chArr 1 1 chArr 15 15 element 15 assigned channel 15 gainArr 0 0 element 0 assigned Input range 0 gainArr 1 1 element 1 assigned Input range 1
24. 7 Utility http Awww icpdas com download minios7 htm e 8014cal exe the calibration program for l 8000 unit located at the same folder as I 8014W demo programs See Demo Programs Location page 12 e iP_8014cal exe the calibration program for iP 8000 unit located at the same folder as 8014W demo programs See Demo Programs Location page 12 P MiniOS7 Utility Ferion 3 1 1 build 3 1 1 1 a Launch MiniOS7 Utility on 35 File fp Connection e Command Configuration PC choose connection gt Look in New connection Last Connection Alt F2 Disconnect Ct F2 Name BEA Seach F12 ANR IE b Select the COM port on PC connected to the control unit from the drop down list configure the communication parameters as follows and click OK 32 7A Connection Connection History TCP UDP 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 48s c Highlight the calibration program and click Upload 2 MiniOS7 Utility Verion 3 1 4 l lo x 33 File gt Connection d Command Z Configuration Lookin 8017cal jor Lockin DiskA s8704 aP i ram e Tye fo Name _ Size Mo ied Een 7calexe KE EARR do arcade 39984 2007 9 19 F Loading Progress __ From D driver 8017QC 801 7cal 801 7cal exe To 801 calexe 4 E D ComectonFA E UpioaatFsi arosrro
25. 8614 C1 or 2 1 Step 5 Select Trigger Source of I 8B14W I 8814W can have 3 types of trigger source j trigger source B Software Command Step5 Select the trigger trigger source 1 Internal Interrupt Signal method trigger source 2 External Tigger Signal Input trigger source of 86144 82 gt 6 Step6 Select Trigger State of I 8 14W if select ex Step6 Set the trigger Not external trigger source trigger state gia E condition if external trigger is selected in stap5 18U gt 16U gt 16U gt 18U gt Scan Mode 1 lt Standard Mode gt Trigger Source Software Command gt State No need for External Trigger K The used parameters le Rate 266 6060 Real Sample Rate 264 646 list ress any art magic scan 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com If scan mode is set as standard mode the total spend time equals 1000 multiplied by sampling period 1000 is the total sample count defined in demo program ress any Key to Start magic scan Wait for Magic Scan Check the total spend time magic scan and FIFO data amount 1000 scan total spend time 4999 ms Press s or S to Show AI others to next step Start to Print all data Arr 1 FL 2 Arr 1 FL2 Arr 1 FL2 Arr 1 FL2 Arr 1 FL2 Arr 1 FL2 66451 66421 66421 66421 66391 66451 Arr 1 F 2 Arr i F 2 Arr i
26. CDADemo XPAC VC2008 0 Local CD Demo XPAC CHIO Local CD SDK Special_1O CES CD Demo XPAC VC2008 I0 Local CD Demo XPAC C IO Local For Windows Embedded Standard on Web ftp ftp icpdas com pub cd xp 8000 sdk io ftp ftp icpdas com pub cd xp 8000 demo specialized_io XP 8000 ftp ftp icpdas com pub cd xpac atom sdk io XP 8000 Atom ftp ftp icpdas com pub cd xpac atom demo specialized_io For Windows Embedded Standard on CD XP 8000 CD SDK IO CD Demo Specialized_lO XP 8000 CD SDK IO Atom CD Demo Specialized_lO 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ie a Quick Start This section gives the getting started guide and calibration process for using 1 8014W on MiniOS7 and Windows platforms individually This section contains getting started guide and calibration process for using I 8014W gt On MiniOS7 platform controller page 14 i 8000 and iPAC 8000 unit gt On Windows platform controller page 26 WinCE and WES unit On MiniOS7 platform controller This section contains gt Getting Started Guide page 14 gt Calibration page 17 Getting Started Guide The executable file Al_INFO EXE in basic_info folder of 1 8014W demo could be used to get the basic information of the 1 8014W and verify the Al read function The basic information includes e Version number and published date of library
27. Data_Hex_mm_dd_hh_mim_sec csv file 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Service request requirement When using a stable signal source such as a battery to output signal to the 1 8014W and getting an incorrect or unstable data prepare the following three items and e mail to service icpdas com e The picture of physical wiring e The file saved from the Basic Information tag See page 89 step 3 e The file saved from the Al Test tag See page 91 step 4 Why does 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 e anoise corrupted signal source e the instability of a signal source e the floating signal source which does not reference to a system ground earth or building ground Because the high speed data acquisition function of the I 8014W it captures all the noise coupled on signal or any change of voltage on an unstable source In this case signal filtering or isolation should be considered to enhance the signal quality It is recommended to connect the V to AGND system ground when measuring differential signals as the figure shows as below 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com How to solve FIFO LATCH
28. ED error 6 After Start Magic Scan instruction runs it will go on scanning channel and converting data unless the stop command is 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 the FIFO is locked we will get FIFO LATCHED error 6 and the new data cannot be saved into the FIFO To solve the error we need execute the following instructions 1 2 3 4 Stop the Magic Scan Read the rest of the data in FIFO or clear FIFO Unlock FIFO Start Magic Scan again 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com
29. I 8014W User Manual 250 KS s 16 bit 8 channel differential 16 channel single ended analog input module Version 1 0 1 September 2011 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved aes 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 not for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2011 by ICP DAS Co Ltd All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies Contact US If you have any problem please feel free to contact us You can count on us for quick response Email service icpdas com 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 i sae Table of Contents Table Of Contents 5 555125 dnsertsessnresrererenn te Meet sss er cee ees 3 POTAGE LR D nn
30. S eee ere N 5 FRAP OW ANG aaora nanaman aeinn naaa eaaa aiaa ee c essences 6 Specifications 6 Pin Assignments 7 Jumper setting 8 Wire Connection 10 Block Diagram 11 Demo Programs Location 12 QUICK Start er naissance eee tdi tire 14 On MiniOS7 platform controller 14 Getting Started Guide 14 Calibration 17 On Windows platform controller ccccssseeeeeeeeeeeeeeeeeeeeeeeneceeeeeeeeeeeneees 26 Getting Started Guide 26 Calibration 28 MagiC SCAN ad dese ec 35 Magic Scan MOG iiceiccscicciscicstscnescnececadewaranaucnasenewseneswessnantwcuencsaneseuancnauate 36 Standard mode 37 Virtual Sample and hold mode 38 Tigger TCU sits aaes tae ere Su crneicas ann Gcucteneddaaeetccnctawesduetniuhtanamecdwebdiutas 39 Software trigger method 39 Internal hardware trigger method 40 External hardware trigger method 41 PO PP EE TETE TEE TE TETE TITI DIE 42 Magic Scan Procedure suffi danse sisnsile 43 Magic Scan Example renard ni entiere 44 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ie Magic exe 44 Mag_ISR exe 50 Case Example 51 N a en ne Se nee cette en en ent han rs nee 53 Function list 54 Error code list 55 i8014W_Init 56 i8014W_GetFirmwareVer_L1 58 i8014W_GetFirmwareVer_L2 59 i8014W_GetLibVersion 60 i8014W_GetLibDate 61 i8014W_GetSingleEndJumper 62 i8014W_ReadGainOffset 64 i8014W_ReadAl 66 i8014W_ReadAlHex 68 i8014W_ConfigMagicScan 70 i8014W_Sta
31. aCountFromFIFO Parameter Slot 0 7 hexData the start address of data array to store data read back with hexadecimal format readCount the count of data required dataCountFromFIFO Output the count of data read back in this process Return 0 No Error For other returned value see Error code list page 55 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C int slot short hexData 8192 long readCnt 0 short totalScaned 0 short TargetCnt 1000 slot 0 i8014W_ReadFIFO slot nexData totalScaned TargetCnt totalScaned amp readCnt if readCnt gt 0 totalScaned readCnt if readCnt MAX_FIFO totalScaned gt TargetCnt i8014W_StopMagicScan slot i8014W_UnLockFIFO slot i8014W_ClearFIFO slot 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_CalibrateData This function is used to calibrate the raw data read in Magic Scan process and convert to floating point value Prototype For MiniOS7 void i8014W_CalibrateData int slot short iGain short dataFromF IFO float calibratedAl For Windows CE and WES void pac_i8014W_CalibrateData int slot short iGain short dataFromF IFO float calibratedAl Parameter Slot 0 7 iGain 0 4 sets the input type 0 10 V 1 5 V 2
32. and WES short pac_i8014W_ReadAlHex int slot short ch short gain short hVal Parameter slot 0 7 ch 0 7 for differential input or O 15 for single ended input gain 0 4 sets the input type 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA hVal Output the hexadecimal data Return 0 No Error For other returned value see Error code list page 55 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C int slot ch gain short hVal 0 0 slot 0 gain 0 10V for ch 0 ch lt 8 ch i8014W_ReadAlHex slot ch gain amp hVal Print n 02d 04X ch hVal 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ConfigMagicScan This function is used to configure all the parameters needed in Magic Scan It should be 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 triggerState float realSampleRate For Windows CE and WES void pac_i8014W_ConfigMagicScan int slot short chArr short gainArr short scanChCount float sampleRate short scanMode short triggerSource short triggerState float realSampleRate 1 801
33. arer f Gj Fie gt Connection a Command Z Configuration Tools Help Look in Desktop yore Lock in Disk A Ses BE Modi No Name Modified 1KB C File eis 8KB Application 6 14 Run E hello pri 4KB PRJ File 6 14 Run with parameters Reset MiniOS F4 Erase Disk Run with parameters Reset MiniOS F4 Erase Disk gt Connection F2 d 2 Reftesh F9 EF Console10 E D0S F11 4 SearcntF12 l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 20 The calibration program in control unit runs and on PC the 7188xw exe runs to provide a command line interface i8K_UDP gt run 1 8617 Found in slot2 res ERF OO BB BBB BBB BBB BEBE BBB DE DEDEDE DEDE x Calibration porgram for 8617H 8617HS Lattice Firmware Version 4 Please connect a voltage signal to ch of the 8617H 8817HS first ver 1 8 1 _ Oct 8 2007 by Martin D s X XX kK gt Calibrate Gain_ 16 66U to 16 06U 1 gt Calibrate Gain_1 5 U to 5 80U 2 gt Calibrate Gain_2 2 5 U to 2 50U 3 gt Calibrate Gain_3 1 25U to 1 25U lt r Recover default calibration settings lt t gt Read calibrated AI value of Ch s gt Show calibrated Gain Offset parameters Cq gt quit DEEE tn gt kK K KK KOK K Please choose 3 r t s q gt Step 3
34. ate Gain_2 2 5 U to 2 56U 3 gt Calibrate Gain_3 1 25U to 1 25U Cr gt Recover default calibration settings t Read calibrated AI value of Ch Cs gt Show calibrated Gain Offset parameters X OX KK KR K X KX ee XX X X X Cqoquit Please choose 6 3 r t s q gt Original Gain_ 346074 Offset_ 74 Please input ist voltage 6 6 16 0 8 663 Point 1 lt 8517 Hex Please input 2nd voltage 6 6 16 6 gt 8 663 Point 2 lt CFB D Hex New Gain 36116 0ffset 366 Save to EEPROM Cy n gt y GainG is calibrated 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved Ta e Make the calibration source output the other point 8V f Enter the value read by meter at the input 2nd voltage prompt and press Enter 7188XW 1 31 COM1 115200 H 8 1 FC 0 CTS 1 D gt Calibrate Gain_6 16 66U to 16 68U 1 gt Calibrate Gain_1 5 66U to 5 6BU 2 gt Calibrate Gain_2 2 5 U to 2 50U 3 gt Calibrate Gain_3 1 25U to 1 25U r Recover default calibration settings Ct gt Read calibrated AI value of Ch s gt Show calibrated Gain Offset parameters Cqo gt quit 9993999399999 HHH EF a ee ee ee ee X X k X XX X X X Please choose lt 8 3 r t s q 6 Original Gain_ 34074 Offset_ 74 Please input ist voltage 6 6 16 6 gt 8 663 Point 1 lt 8517 Hex Please input 2nd voltage 6 6 16 6 8 663 Point 2 lt CFB D H
35. ating his demo show how to use 18814 ReadAl to read hex and float format analog input data here is an i8 i4 at slot Library and FPGA version information Library Version 1005 Single ended differential jumper position Build Date Jul 26 2818 18814 Input Mode Differential Select 10V Gain value is around 33000 when it is far Sel z 5U i Select 2 2 5U from 33000 means that the value is Sel z 1 25U Select 4 2 n8 incorrect Select Gain lt 8 4 6 Select Gain 16U the Calibrated Gain 32833 Calibrated Offset 39 6645 66421 66391 PISE Verify the Al data from each channel 66391 66421 66421 l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 16 Calibration Every one of I 8014W is factory calibrated and well verified Usually it is unnecessary to calibrate the module unless the input impedance is changed on a calibrated module or the accuracy is lost To calibrate the I 8014W in addition to plugging the 1 8014W in the slot of controller the following items are needed e One stable calibration source such as 3 1 2 digit power supplier or better or a battery output e One 4 1 2 digit voltage meter 15 bit resolution or better e Calibration Program see page 12 to get the demo program located in 8014W demo program Tips amp Warnings 1 An unstable cali
36. ble signal to l 8014W a Wire your input signal according to the Differential or single ended Jumper setting See Jumper setting page 8 b The input range could be from 10V to 10V c Plug the 1 8014W on the slot of your controller and turn on the Windows platform controller 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 88 Tips amp Warnings A 1 A battery output could provide a stable enough signal 2 A 125 Ohm resistance is required when measuring current input 3 In voltage measurement with differential input type if the result is not stable as the input signal it is recommended 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 AI AI GND Step2 Launch pac_i8014W_Utility exe Step3 Read the information in l 8014W a Form the l 8014W slot index drop down list select the slot in which the l 8014W is plugged b Click the Basic Information tag The Basic Information page includes e the version of 8014W lib primary FPGA firmware Firmware 1 secondary FPGA firmware Firmware 2 e the position of single ended differential jumper set e the gain and offset values for each input type 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Click Save to
37. bration source will cause the calibration fault and affect the data acquisition accuracy 2 If you would like to calibrate 20 mA select 2 5V instead the two types use the same gain and offset values 3 The calibration program use channel 0 to accept calibration source only This section contains gt To calibrate the 1 8014W on i 8000 and iPAC 8000 unit page 18 gt To verify the calibration page 24 gt To recover default calibration settings page25 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ae To calibrate the 1 8014W on i 8000 and 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 and wire the calibration source to channel 0 by differential wiring c Connect the meter as the following figure shows d Turn on the control unit mf V Meter V om V V V Calibration Source l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ie Step 2 Launch MiniOS7 Utility on PC download the calibration program to the control unit and run it The MiniOS7 Utility could be downloaded from the following web site Select the proper calibration program for your controller e MiniOS
38. calibration process For example after selecting 0 10V 10V we would like to use 8V and 8V as the two calibration points Step7 Make calibration source output one of the two points ex 8V 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved E Step8 Click the Step1 Set point 1 tab enter the value read by meter ex 8 0 and click Set as Calibration Point 1 8014 Calibration Select 1 8014W slot Index Slot 1 x Select Input Range 10 0 Y x using Gain Value SN using Offset Value Zs default Gain Value default Offset Value ES SS Eee Informatid amp Step 1 Set Point 1 p p 2 Set Point 2 step 3 apply settings Step 1 Send first stable Voltage to Channel 0 for Calibration Input first Voltage value float Cfo Unit Voltage Readback Hex value Desc Readback Float value 7 977295 Step9 Make calibration source output the other value ex 8V Step10 Click the Step2 Set point 2 tab enter the value read by meter ex 8 0 and click Set as Calibration Point 2 8014 Calibration o x Select I 8014W slot Index Slot 1 x Select Input Range j 10 0 V y SN using Offset value EA do Of et Value using Gain Value default Gain Value Step 2 Send second stable Voltage to Channel 0 for Calibration Input second Voltage value flos so Unit Voltage Readback Hex value Readbac
39. d on the 1 8014W for multi channel high sampling rate analog 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 only difference is that one transfers data by polling and the other transfers data by interrupt This chapter contains Magic Scan modes page 36 Trigger methods for the Magic Scan page 39 gt Magic Scan Example page 44 introduces the two data transfer modes for the Magic Scan 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved io Magic Scan Mode For multi channel high speed data acquisition system the 1 8014W provides up to 250 kHz sampling rate and 4k sample FIFO to reduce the loading of CPU and advance the performance of your system The following table describes the specification of Magic Scan EVE Sampling FIFO Sampling Trigger method Transfer data channel rate mode mode 16 2Hz 250 4k standard software polling kHz sample virtual internal interrupt sample hardware and hold external hardware This section describes the two Magic Scan modes in which the 1 8014W might use gt Standard mode page 37 gt Virtual sample and hold mode page 38 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright
40. ex New Gain 36118 0ffset 366 Save to EEPROM Cy n y Gain is calibrated The console displays new gain and offset values for this calibration as New Gain 3xxxx Offset nnn Save to EEPROM y n g Enter y and press Enter to accept the values and save to EEPROM The calibration for 10V 10V is complete 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved TBE 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 Al value of ChO and select the input type which is just calibrated ex 0 10 V 10V Step3 Confirm the data read from channel 0 7188XW 1 31 COM1 115200 N 8 1 FC 0 Please choose 8 3 r t s qVit B Read Gain_6 16 66U to 16 66U 1 Read Gain_1 5 660 to 5 6BU 2 Read Gain_2 2 58U to 2 500 3 Read Gain_3 1 250 to 1 250 Cqgdquit PEPE EEE EEE EEE EEE EEE EEE EE EEE PEE FE FE IE EEE FE PEPE Please choose 8 3 q0 6 Please input voltage source 16 6 16 6 PreSs any key tegtinue q quit AI value 2 6627 AI value 2 8628 AI value 2 8828 AI value 2 8838 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 4 To recover default
41. fset d gVal oVal 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ReadAl This function is used to read a floating point input calibrated from one specified channel Prototype For MiniOS7 short i8014W_ReadAl 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 differential input or O 15 for single ended input gain 0 4 sets the input range 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA fVal Output the floating point data Return 0 No Error For other returned value see Error code list page 55 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C int slot ch gain float fVal 0 0 slot 0 gain 0 10V for ch 0 ch lt 8 ch i8014W_ReadAl slot ch gain amp fVal Print n 02d 05 4f ch fVal 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ReadAlHex This function is used to read a hexadecimal input calibrated from one specified channel Prototype For MiniOS7 short i8014W_ReadAlHex int slot int ch int gain short hVal For Windows CE
42. gt Chapter 5 Troubleshooting Provides some techniques for troubleshooting the problems faced 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved 5 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 2500 Vrms to Logic 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 l 8014W API User Manual v 1 0 1 September 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved e E mail service icpdas com Pin Assignments hel Trig Trig Red Trig AGND ro VO vo HE vo v8 a HE Vi V1 3 kel Vi v9 a kel V2 v2 fil MEE v2 v10 E Red V3 V3 Re v3 v11 E HEI V4 v4 E HE v4 V12 Rel V5 V5 E Ke v5 v13 i ha V6 V6 Gel V6 V14 E Ge V7 V7
43. ht 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C short jumper 0 maxCh 0 jumper i8014W_GetSingleEndJumper slot if jumper maxCh 16 Print i8014W Input Mode Single End n r else maxCh 8 Print i8014W Input Mode Differential n r 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W _ ReadGainOffset This function is used to obtain the gain and offset values for each input type The input types are numbered as 0 10 V 1 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 slot short gain unsigned short gainValue short offsetValue Parameter Slot 0 7 Gain specifies the input type 0 4 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA gainValue Output gain value for the input range offsetValue Output offset value for the input range Return None 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C unsigned short gVal 0 short oVal 0 i8014W_ReadGainOffset slot gain amp gVal amp oVal Print nThe Gain and Offset for Calibration is Gain u Of
44. k Float value 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ET Step11 Click the Step3 apply settings tab click Save new calibration settings 8014 Calibration oix Select I 8014 slot Index Slot 1 y Select Input Range 10 0 Y y using Gain Yalue using Offset Value default Gain Value Step 3 Save new calibration settings or recover default settings for module New Calibration parameter Gaven ettinge Recover default calibration setting The calibration for 10V 10V is complete 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved Es To verify the calibration Step1 Make the calibration source output a voltage to channel 0 of I 8014W For example 2V Step2 Click the Step1 Set point 1 tab confirm the Al read back as following 8014 Calibration x Select I 8014 slot Index Slot 1 Select Input Range 10 0 x using Gain Value EN using Offset Value 28 default Gain Value EN default Offset Value EN Information Step 1 Set Point 1 step 2 Set Point 2 step 3 apply settings Step 1 Send first stable Voltage to Channel 0 for Calibration Input first Voltage value float 2 0 Unit Voltage Readback Hex value Readback Float value 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com C
45. lows the system has time to convert data save and transfer them A It is recommended to create several buffers to deal with the data 2000 samples of 2000 samples of data collected data collected Transferring data Transferring data through Ethernet through Ethernet 2000 samples of data collected Time axis TO 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com API ICP DAS provides APIs library and demo programs including source code for easy integration 8014W into the following platforms The APIs and programming procedure are similar on MiniOS7 and Windows platform the only difference is the prefix characters added to the name for the functions in library APIs i8014W_ is prefixed to the function name applied on MiniOS7 and Linux platform and pac_i8014VW_ 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 each function The following table describes the platforms and in which the product series included and the different part of function name Platform Product included API prefix characters Wind eee WP 8000 series indows Windows CE6 WP 2000 series pac_i8014W_ function name XP 8000 CE6 series Windows Embedded 7 5 9 5 4 Standard WES XP 8000 series pac_i8014W_
46. mple C int slot int i float calibratedAI 0 printf Start to Print all data n n r for i 0 i lt totalScaned i slot 0 i8014W_CalibrateDataHex slotindex gainArr i scanChCount hexData i amp calibratedAl printf Arr d Yo x t i scanChCount calibratedAl 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_UnLockFIFO This function is used 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_UnLockF IFO int slot For Windows CE and WES void pac_i8014W_UnLockFIFO int slot Parameter slot 0 7 Return None Example C int slot slot 0 i804W_UnLockFIFO slot Detail reviews i804W_ReadFIFO section 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ClearFIFO This function is 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 WES void pac_i8014W_ClearFIFO int slot Parameter slot 0 7 Return None Example C int slot slot 0 i804W_ClearFIFO slot Detail reviews i804W_ReadFIFO secti
47. nual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 18014W _Clearint This function is used to clear 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 void pac_i8014W_Clearint int slot Parameter slot 0 7 Return None Example C int slot slot 0 i804W_StopMagicScan slot Detail reviews i8014W_ Install MagicScaniSR section 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Troubleshooting This chapter discusses how to solve the problem you may meet This chapter contains How to verify the Al function on WinCE or WES unit See page 88 Service request requirement See page 92 Why does the data read from I 8014W seem unstable See page 92 How to solve FIFO LATCHED error 6 See page 933 v v V y How to verify the Al function on WinCE or WES unit If the data read from the l 8014W is inconsistent with the input signal and you would like to confirm the input function pac_i8014W __Utility exe may help you The utility is for using l 8014W on WinCE and WES controller only and is located in the 8014W C demo program for the controller See Demo Programs Location page 12 Step1 Wire a sta
48. on 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_InstallMagicScaniSR This function is used to Install ISR for interrupt events form FIFO Since the count of data in 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 Clearint to clear the interrupt status Prototype For MiniOS7 short i804W_ Install MagicScaniSR int slot void isr int slot int triggerLevel For Windows CE and WES short pac_i8014W_InstallMagicScanISR int slot void isr int slot short triggerLevel 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Parameter slot 0 7 isr int slot the function pointer passed for ISR triggerLevel 0 7 it is used to set the interrupt trigger condition 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 triggered and the ISR executes to handle the interrupt The following table lists the definition of triggerLevel triggerLevel Data count 0 8 1 16 2 32 3 64 4 128 5 256 6 512 7 2048 Re
49. only This section contains gt To calibrate the 1 8014W on WinCE and WES unit page 29 gt To verify the calibration page 33 gt To recover default calibration settings page 34 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved E To calibrate the 1 8014W on WinCE and WES unit Step1 Refer to Jumper setting page 8 make sure the Differential Single Ended select jumper is in differential position Step2 Connect your calibration source to channel 0 of 1 8014W by differential wiring Step3 Plug the 1 8014W into the slot of controller and turn on the controller Step4 Launch pac_i8014W_Calibration exe on controller In the c demos for I 8014W see Demo Programs Location page 12 and 13 Tips amp Warnings A Only channel 0 is valid to perform calibration 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved ES Step5 Select the 1 8014W slot number and input range from the drop down list located in the upper part of the window 8014 Calibration using Gain Value default Gain Value Step 1 Send first stable Voltage to Channel 0 for Calibration Input first Voltage value float Unit Voltage Readback Hex value Readback Float value Step6 Determine two values points in the range of the selected input type for
50. onnection Input Type Differential Single ended Voltage Input Wiring Current Input Wiring Note When connecting to a current source an optional external 125 Q resistor is required Tips amp Warnings It is recommended to connect the V to AGND system ground when measuring differential voltage inputs as the figure shows below AI FOIS While measuring current input it is no use to enhance to accuracy 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Block Diagram Magic Scan Control Data Addr o Logic Control 5V GND l 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved Rm Demo Programs Location The following table lists the location of 1 8014W demo programs for different platform for verifying the functions of the 1 8014W and reusing the source code if needed Platform Location For 1 8000 on Web Library ftp ftp icpdas com pub cd 8000cd napdos 8000 841x881x demo li b Demo ftp ftp icpdas com pub cd 8000cd napdos 8000 841x881x demo i o in slot For l 8000 on CD Library CD Napdos 8000 841x881x demo Lib Demo CD Napdos 8000 841x881x demo lO_in_ Slot For iPAC 8000 on Web Library ftp ftp icodas com pub cd 8000cd napdos ipac8000 demo basic i p 84x1_ip 88x1 lib
51. opyright 2011 ICP DAS Co Ltd All Rights Reserved IE 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 offset values to factory default Click the Step3 apply settings tab and click the Recover default calibraion setting button 8014 Calibration BH E1 Select 1 8014W slot Index Slot 1 y Select Input Range 10 0 Y x astig Gain Value SON using Offset Value h default Gain Value SON default Offset Value Information Step 1 Set Point 1 step 2 Set Point 2 step 3 apply settings amp Step 3 Save new calibration settings or recover default settings for module New Calibration parameter Recover default calibration setting 8014 Calibration E El F3 Select1 8014W slot Index sioti Select Input Range A 10 0 Y y Sing Gain Value SN using Offset Value default Gain Value SON default Offset Value Information Step 1 Set Point 1 step 2 Set Point 2 step 3 apply settings Step 3 Save new calibration settings or recover default settings for module New Calibration parameter Offset Save new Calibration settings 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 I Magic Scan This chapter provides the detail of Magic Scan the key function designe
52. ple Rate 200 Real Sample Rate 200 CH 1 2 599487 CH 2 2 601318 CH 3 2 599182 CH O 2 600098 CH 1 2 599792 CH 2 2 601013 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Result of virtual sample and hold 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 this demo the spend time 1254 ms 1000 4 5 Spend time scan cycle number scan cycle period The spend time can be used to verify the sampling rate on I 8014W Configure Magic Scan Start Magic Scan Total Scaned Save Data to file Spend Time Selected Magic Scan Channel Gain Array 0 C 0 G f Selected Magic Scan Channel Gain Array 1 C 1 G f CH 1 2 600403 Selected Magic Scan Channel Gain Array 2 C 2 G f CH 2 2 601624 Selected Magic Scan Channel Gain Array 3 C 3 G The Magic Scan Configurations of I 8014W are Scan channel count 4 Total sample count 1000 CH 0 0 Gain O 0 10 CH 1 1 Gain 1 0 10V Se 2 ne f 10Y 11 Trigger State 0 aren need for External Trigger Signal Set Sample Rate 200 Real Sample Rate 200 CH 2 2 601318 CH 3 2 598572 CH 0 2 600403 CH 1 2 602234 CH 2 2 602539 1 8014W API User Manual v1 0 1 June 2011
53. rtMagicScan 73 i8014W_StopMagicScan 74 i8014W_ReadFIFO 75 i8014W_CalibrateData 77 i8014W_CalibrateDataHex 79 i8014W_UnLockFIFO 81 i8014W_ClearFIFO 82 i8014W_InstallMagicScanISR 83 i8014W_UnInstallMagicScanISR 86 i8014W_Clearint 87 Troubleshooting eee nets eas eens 88 How to verify the Al function on WinCE or WES unit 88 Service request requirement 92 Why does the data read from I 8014W seem unstable 92 How to solve FIFO LATCHED error 6 93 1 8014W API User Manual v 1 0 1 September 2011 E mail service icpdas com Copyright 2011 ICP DAS Co Ltd All Rights Reserved TAT Preface The 1 8014W is a 16 bit resolution high speed isolated analog input module providing 16 single ended or 8 differential analog input channels Besides basic usage knowledge and SDK interface this manual intends to introduce the Magic Scan function of 1 8014W for scanning multi channel system This manual contains gt Chapter 1 Hardware Provides hardware information such as specifications jumper setting note and wiring gt Chapter 2 Quick Start Provides how to start an overview demo programs location Getting Started Guide and calibration process gt Chapter 3 Magic Scan Introduces the parameters in Magic Scan function programming procedure and demo programs gt Chapter 4 API Describes the diversity of naming rule for MiniOS7 and Windows platforms and functions provided in I 8014W library
54. save all the information to Slot1_8014W_Info txt file It is useful for troubleshooting when a service is requested Library Version 1007 Refresh Firmware 1 1 Firmware 2 2 save Single Ended Differential Differential 10V Gain 32833 Offset 39 5V Gain 32831 Offset 43 2 5V Gain 32826 Offset 52 1 25V Gain 32665 Offset 51 4 20m Gain 32826 Offset 52 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 situation try a Press Refresh to get the gain values again and confirm they are correct or not b Change the 1 8014W to another slot repeat from step2 to step3 to confirm the gain values are correct or not 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step4 Test the input function a Click Al test tag 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 I 8014W slot Index Basic Information AI Test Gain 10 0 V y Count 1000 Format Fiat y First Data Min Data Max Data A First Data Min Data MaxData Delta After the sampling process completed the data is displayed in the columns following each channels d If necessary press Save to save the data and sampling time into Sample
55. tains gt Software trigger method page 39 gt Internal hardware trigger method page 40 gt 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 need to configure the Magic Scan parameters to each module and execute the Magic Scan instruction to the modules one by one ttt tf es i Start Magic Scan from one module to next by software instruction 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Internal hardware trigger method 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 will trigger the Magic Scan operation almost at the same time for the several modules Trigger the Magic Scan for each module by internal hardware signal 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com External hardware trigger method The Magic Scan also 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 triggering condition and starting the Magic Scan in program the 1 8014W
56. turn 0 No Error For other returned value see Error code list page 55 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Example C void main int slot TrgLevel slot 0 TrgLevel 100 i8014W_Install_MagicScanlSR slot ISRFUN TrgLevel i8014W_ConfigMagicScan Il Detail reviews i8014W_ConfigMagicScan section i8014W_StartMagicScan slot while 1 if IntCnt gt 1 i8014W_UnInstall_ MagicScanISR slot break void ISRFUN int slot Int IntCnt 0 IntCnt ret i8014W_ReadFIFO slot hexData totalScaned TargetCnt totalScaned amp readCnt if readCnt gt 0 totalScaned readCnt printCom1 TotalScaned d n r totalScaned totalRead readCnt i8014W_Clearlnt slot 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 18014W_UninstallMagicScaniSR This function is used 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 Error For other returned value see Error code list page 55 Example C int slot slot 0 i804W_UnInstallMagicScanISR slot Il Detail reviews i8014W_ Install MagicScaniSR section 1 8014W API User Ma
57. ws CE and WES short pac_i8014W_GetFirmwareVer_L1 int slot Parameter slot 0 7 Return Thel 8014W version number of the primary FPGA firmware Example C short ver_L1 0 slot 0 ver_L1 i8014W_GetFirmwareVer_L1 slot Print nPrimary FPGA Version 04X i8014W_GetFirmwareVer_L1 slot 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ GetFirmwareVer L2 This function gets the version number of the secondary FPGA 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 0 7 Return The 1 8014W version number of the secondary FPGA firmware Example C short ver_L2 0 slot 0 ver_L2 i8014W_GetFirmwareVer_L2 slot Print nSecondary FPGA Version 04X i8014W_GetFirmwareVer_L2 slot 1 8014W API User Manual v1 0 1 June 2011 Copyright 2011 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com i8014W_ GetLibVersion This function 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 Parameter None Return The version number of 8014W lib Example C

Download Pdf Manuals

image

Related Search

Related Contents

User Manual - Cradlepoint  User Helpdesk & License management  Nouveautés Nouveautés : - Médiathèque de l`Haÿ-les  4 - Vecow  Avaya 3606 Wireless IP Telephone Quick Reference Guide    Artificial Intelligence - Kenyatta University Library  

Copyright © All rights reserved.
Failed to retrieve file