Home

PIO-821 Series Classic Driver DLL Software Manual

image

Contents

1. gt Parameters BoardNo Input Board number O to 15 of PIO 821 series dwOffset Input The offset value of the base address of the PIO 821 series board for the mapping address from O to Oxff gt Returns One WORD value or data User Manual Ver 1 0 Feb 2014 Page 26 PIO 821 Series Classic Driver DLL Software Manual PIO821_OutputWord Write a word two bytes data to the defined address of the PIO 821 series board This function is designed for advance user to write into the hardware based on the register of PIO 821 series gt Syntax void PIO821_OutputWord BYTE BoardNo DWORD dwOffset WORD wValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series dwOffset Input The offset value of the base address of the PIO 821 series board for the mapping address from O to Oxff wValue Output A WORD value for output gt Returns None User Manual Ver 1 0 Feb 2014 Page 27 PIO 821 Series Classic Driver DLL Software Manual 2 6 Timer Counter Functions PIO821 SetCounter Set the counter number configuration code and counter value to the 8254 chip of PIO 821 series board Please call PIO821_ActiveBoard first before using this function gt Syntax WORD PIO821_SetCounter BYTE BoardNo WORD wCounterNo WORD bCounterMode DWORD wCounterValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wCounterNo Input Select the 8254
2. gt Syntax WORD PIO821_DA BYTE BoardNo BYTE Mode float fValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series Mode Input D A channel mode 1 or mode2 Model gt 5 V Mode2 gt 10 V Value Input Analog output value gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 BoardNoActive The board is not activated PIO821 ParameterError wValue is out of range User Manual Ver 1 0 Feb 2014 Page 20 PIO 821 Series Classic Driver DLL Software Manual 2 4 EEPROM Functions PIO821_WriteEEP Write 64 words 128 bytes data into the EEPROM of the PIO 821 series board Please call PIO821_ ActiveBoard first before using this function gt Syntax WORD PIO821_WriteEEP BYTE BoardNo WORD wvValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wValue Input Read first WORD 16 bit of data gt Returns PIOS21 NoError PIO821 DriverNoOpen PIO821 ExceedFindBoards PIO821 BoardNoActive PIO821 WriteEEPROMError OK Kernel driver can not be found BoardNo exceeds the current total board number N The board is not activated Fail to write data to EEPROM User Manual Ver 1 0 Feb 2014 Page 21 PIO 821 Series Classic Driver DLL Software Manual 2 5 Digital Input Output Functions PIO821_Digitalln Obtain the 1
3. User Manual Ver 1 0 Feb 2014 Page 12 PIO 821 Series Classic Driver DLL Software Manual Table2 6 A D Functions Table of PIO821 DLL Section Function Definition Analog Input Functions WORD PIO821_SetChannelConfig BYTE BoardNo WORD wAdChannel WORD wConfig WORD PIO821_Delay BYTE BoardNo WORD wDownCount WORD PIO821_ADPollingHex BYTE BoardNo WORD wAdVal WORD PIO821_ADPolling BYTE BoardNo float fAdVal WORD PIO821_ADsPolling BYTE BoardNo float fAdVal DWORD dwNum WORD PIO821_ADsPacer BYTE BoardNo float fAdVal DWORD dwNum WORD wSamplingDiv Table2 7 Interrupt Functions Table of PIO821 DLL Section Function Definition Interrupt Functions WORD PIO821_Installlrq BYTE BoardNo WORD PIO821_IntADStart BYTE BoardNo WORD wNum WORD wSamplingDiv WORD PIO821_GetADsfloat float fAdVal WORD PIO821_GetADsHex WORD HAdVal void PIO821_Removelrq BYTE BoardNo User Manual Ver 1 0 Feb 2014 Page 13 PIO 821 Series Classic Driver DLL Software Manual 2 1 Error Code Table For the most errors it is recommended to check Error Code 1 Doesthe device driver installs successful Does the card have plugged Does the card conflicts with other device Try to use another slot to plug the card aie E Restart your system to try again Error ID 0 PIO821 NoError 1 PIO821 ActiveBoardError 2 PIO821 ExceedFindBoards 3 PIO821 DriverNoOpen 4 PIO821 BoardNoActive 5 PIO821
4. CounterO to Counter2 bCounterMode Input The configuration code Please refer to specification of 8254 chip wCounterValue Input Counter value of 8254 chip gt Returns PIOS21 NoError OK PIO821 CounterModeError Out of counter mode range PIO 821 Series Classic Driver DLL Software Manual PIO821_ReadCounter Read the counter value from the specified counter Please call PIO821_ActiveBoard first before using this function gt Syntax DWORD PIO821_ReadCounter BYTE BoardNo WORD wCounterNo WORD bCounterMode gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wCounterNo Input Select the 8254 Counter to Counter2 bCounterMode Input The configuration code Please refer to specification of 8254 chip gt Returns PIO821 NoError OK PIO821 CounterModeError Out of counter mode range User Manual Ver 1 0 Feb 2014 Page 29 PIO 821 Series Classic Driver DLL Software Manual 2 7 Analog Input Functions PIO821_SetChannelConfig Set the channel configuration for analog input which includes AD channel number and Gain mode Please call PIO821_ActiveBoard first before using this function gt Syntax WORD PIO821_SetChannelConfig BYTE BoardNo WORD wAdChannel WORD wConfig gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wAdChannel Input Select A D channel number O to 16 wConfig Input Select A D channel gain refer to sectio
5. WriteEEPROMError 6 PIO821 ModeDAError 7 PIOS21 DAError 8 PIO821 ConfigError 9 PIO821 TimeoutError 10 PIO821_AdChannelError 11 PIO821_ AdPollingTimeOut 12 PIO821_AdPacerTimeOut 13 PIO821 CounterModeError 14 PIOS21 InterruptError Close other applications to free the system resources Error String OK This board cannot be activated The board number exceeds the maximum board number 7 Base address is over range Base address overlap Write the EEPROM error DA mode is error Parameter is null or out of range AD gain value is error Delay time out AD channel value is out of range AD polling is time out AD pacer is time out Counter value is out of range Interrupt is not enable User Manual Ver 1 0 Feb 2014 Page 14 PIO 821 Series Classic Driver DLL Software Manual 2 2 Driver Functions PIO821 GetDilVersion Obtain the version information of PIO821 DLL driver gt Syntax WORD PIO821_GetDllVersion void gt Parameters None gt Returns DLL version information For example If 101 hex value is return it means driver version is 1 01 PIO821 ActiveBoard Activate the device It must be called once before using the other functions of PIO 821 series boards gt Syntax WORD PIO821_ActiveBoard BYTE BoardNo gt Parameters BoardNo Input Board number O to 15 of PIO 821 series gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found
6. in use by any programs Would you like For Uninstall to remove this shared file IF any programs are still using this file and it is removed those programs may not Function properly IF you are unsure choose No Leaving the file on your system will not cause any harm File name Wihakhew Ext Location CADAGPrOPIO 8211Win2K Noto All Step 4 After the uninstallation process is complete a dialog box will be displayed to you that the driver was successfully removed Click the OK button to finish the uninstallation process User Manual Ver 1 0 Feb 2014 Page 10 PIO 821 Series Classic Driver DLL Software Manual 2 DLL Function Descriptions All of the functions provided for PIO 821 series card are listed below in Tables 2 1 to 2 7 This list of functions is expanded on in the text that follows However in order to make a clear and simplified description of the functions the attributes of the input and output parameters for every function is indicated as input and output respectively as shown in following table Furthermore the error code of all functions supported by PIO 821 is also listed in Section 2 1 Keyword Parameter must be set by the user before Data value from this parameter is calling the function retrieved after calling the function Input Yes No Output No Yes Table2 1 Driver Functions Table of PIO821 DLL Section Function Definition Driver Functions WORD PIO821_GetDllV
7. trigger with calibration Note that all of the hardware control functions need to be provided and processed by user themselves PIO 821 Series Classic Driver DLL Software Manual 3 2 1 LIB PIO H Function Description PIO_FloatSub2 Compute C nA nB in float format which is 32 bits floating pointer number This function is provided for testing purpose gt Syntax float PIO_FloatSub2 float fA float fB gt Parameters fA float point value fB float point value gt Returns Return float point value fA fB PIO_ShortSub2 Compute C nA nB in short format short 16 bits sign integer This function is provided for testing purpose gt Syntax float PIO_ShortSub2 short nA short nB gt Parameters nA Short integer nB Short integer gt Returns Return a short integer nA nB PIO 821 Series Classic Driver DLL Software Manual PIO_GetDriverVersion Obtain the software version gt Syntax WORD PIO_GetDriverVersion WORD wDriverVersion gt Parameters wDriverVersion Driver Version For example If 101 hex is return it means driver version is 1 01 gt Returns NoError PIO_Driverlnit This function searches the hardware board If all checks are OK this function will return the total board value gt Syntax WORD PIO_DriverInit WORD wBoards WORD wSubVendorlD WORD wSubDevicelD WORD wSubAuxID gt Parameters wBoards Output Total board wSubVen
8. 1 board Total Board T DLL Yer 100 YendorD E159 DevicelD 2 SubYendor 80 SubDecivelD 3 Sub uxiD 10 IRQ 9 Counter Demo Counter demo This demo program can be used to obtain the counterO information of 8254 chip on board And users can set the external clock of the hardware by setting JP5 jumper Click the Active button to show the count value of the external signal iw Counter Total Boards Choose a Board 7 A 1 Number to Active E User Manual Ver 1 0 Feb 2014 Page 40 PIO 821 Series Classic Driver DLL Software Manual DIO Demo Digital input output This program demonstrates the DI DO status of PIO 821 board after the digital input output wire connection a DIO Dene SS olx Digital Output Set Total Board TTT Choose a Board Number to Active O Se ee Boas we Se EA a Aneel osas Digital Input Status A 2a 4 vs RS a 00000000 H 3 EC DO F Interrupt Demo The interrupt method to get the AD value This demo program shows the AD value by the interrupt method Users can set the Input range and sampling rate of AD channel in this demo and click show button to get the analog input value and demonstrate the data in the display window w ALD Demo Interrupt Card Type Y Total mer Input Range JF1 Setting FF y Select E Channel No Sampling Rate rd F User Manual Ver 1 0 Feb 2014 Page 41 Pacer Dem
9. 5 Click the Finish button 5 Setup FIO 821 Driver Completing the PIO 821 Driver Setup Wizard Setup has Finished installing PIO 821 Driver on your computer Click Finish bo exit Setup User Manual Ver 1 0 Feb 2014 Page 7 PIO 821 Series Classic Driver DLL Software Manual 1 3 PnP Driver Installation Step 1 The system should find the new card and then continue to finish the Plug amp Play steps Note Some operating system such as Windows Vista 7 will find the new card and make it work droit nen nadaire IS automatically so the Step2 to Step4 will be Network Controller skipped Step 2 Select Install the software automatically Recommended and click the Next gt button Found Hew Hardware Wizard Welcome to the Found New ra Hardware Wizard Y This wizard helps you install software hor PIO 821 Multi function Board Gei IF your hardware came with an installation CD ae o floppy disk insert it now What do you want the wizard to do Click Next to continue d d T Next gt SR Lancel EP User Manual Ver 1 0 Feb 2014 Page 8 PIO 821 Series Classic Driver DLL Software Manual Step 3 Click the Finish button Found New Hardware Wizard Please wait while the wizard installs the software ai UniDAQTPIO 821 Multi function Board SS 4 Found Hew Hardware e Setting a system restore point and backing up old fil case y
10. 6 TTL compatible digital input values from the PIO 821 series board Please call PIO821_ActiveBoard first before using this function gt Syntax WORD PIO821_Digitalln BYTE BoardNo WORD wValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wValue Output Read the digital input value gt Returns PIO821 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N User Manual Ver 1 0 Feb 2014 Page 22 PIO 821 Series Classic Driver DLL Software Manual PIO821_DigitalOut Send out digital value through 16 TTL compatible digital output channels Please call PIO821_ ActiveBoard first before using this function gt Syntax WORD PIO821_DigitalOut BYTE BoardNo WORD wvValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wValue Input Digital output value gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N User Manual Ver 1 0 Feb 2014 Page 23 PIO 821 Series Classic Driver DLL Software Manual PIO821_InputByte Obtain a byte data from the specific address mapping of the PIO 821 series board Please call PIO821_ ActiveBoard first before using this function This function is designed for advance user to access the hardware data based on the regi
11. Active The board is not activated PIO821 AdPacerTimeOut AD pacer is time out PIO 821 Series Classic Driver DLL Software Manual 2 8 Interrupt Functions PIO821 Installirq This function can enable the interrupt service for the specific PIO821 card After applying the function the system would allocate a handle to the interrupt gt Syntax WORD PIO821_Installlrq BYTE BoardNo gt Parameters BoardNo Input Board number O to 15 of PIO 821 series gt Returns PIOS21 NoError OK PIO821_InterruptError Interrupt enable is error PIO821_IntADStart This function uses the interrupt method to read and store the AD values Users must apply the PIO821 SetChannelConfig function to configure the specific AD channel first gt Syntax WORD PIO821_IntADStart BYTE BoardNo WORD wNum WORD wSamplingDiv gt Parameters BoardNo Input Board number O to 15 of PIO 821 series PIO 821 Series Classic Driver DLL Software Manual wNum Output Number of interrupt A D conversions will be performed wSamplingDiv Input A D sampling rate 2 M wSamplingDiv gt Returns PIO821 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821_GetADsfloat The function can get the float AD data of the specific AD channel Users can set the specific AD channel in PIO821_SetChannelConfig function And the data is from the interru
12. AdVal DWORD dwNum gt Parameters BoardNo Input Board number O to 15 of PIO 821 series f AdVal Output Piece address of fAdVal which store the A D data 12 bits dwNum Input Number of A D conversions will be performed gt Returns PIOS21 NoError PIO821 DriverNoOpen PIO821 ExceedFindBoards PIO821 BoardNoActive PIO821_ AdPollingTimeOut OK Kernel driver can not be found BoardNo exceeds the current total board number N The board is not activated AD polling is time out User Manual Ver 1 0 Feb 2014 Page 34 PIO 821 Series Classic Driver DLL Software Manual PIO821_ADsPacer Read multiple the values of current active AD from the analog input channel The active AD channel is set by PIO821_ SetChannelConfig This subroutine performs the AD conversions by pacer trigger Please call PIO821 ActiveBoard first before using this function gt Syntax WORD PIO821_ADsPacer BYTE BoardNo float fAdVal DWORD dwNum WORD wSamplingDiv gt Parameters BoardNo Input Board number O to 15 of PIO 821 series f AdVal Output Piece address of fAdVal which store the A D data 12 bits dwNum Input Number of A D conversions will be performed wSamplingDiv Input A D sampling rate 2 M wSamplingDiv gt Returns PIO821 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 BoardNo
13. PIO 821 Series Classic Driver DLL Software Manual Version 1 0 Feb 2014 Board includes PIO 821L PIO 821H PIO 821LU and PIO 821HU All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser ICP DAS assumes no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright O 2014 by ICP DAS All rights are reserved Names are used for identification only and may be registered trademarks of their respective companies If you have any question please feel to contact us at service icpdas com service icodas gmail com We will give you quick response within 2 workdays PIO 821 Series Classic Driver DLL Software Manual TABLE OF CONTENTS 1 INTRODUCTION AP o Pa 3 1 1 OBTAINING THE DRIVER INSTALLER PACKAGE airada Nas 4 1 2 DRIVER INSTALONG Eelere 5 1 3 sab di TA EATON so o O ESO 8 1 4 UNINSTALLING THE P 10 821 SERIES CLASSIC DRIVER pisas ara RA 10 2 DEL FUNCTION DESCRIPTIONS scsi iia 11 2 1 ER OR CODE TAE is 14 2 2 DRIVER FUNCTIONS ri doo 15 PIOS NEE Re EEN 15 PIOS2 LAC VE BOO Un nta 15 POS CISCO e A A
14. PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 ActiveBoardError This board can not be activated PIO 821 Series Classic Driver DLL Software Manual PIO821_CloseBoard Stop and close the PIO 821 kernel driver and release the resources of the device from system This method must be called once before exiting the user s application program gt Syntax WORD PIO821_CloseBoard BYTE BoardNo gt Parameters BoardNo Input Board number O to 15 of PIO 821 series gt Returns PIOS21 NoError OK PIO821 BoardNoOpen The board is not activated PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 TotalBoard Obtain the total board number of PIO 821 series boards installed in the PCI bus gt Syntax WORD PIO821_TotalBoard void gt Parameters None gt Returns Return the total board number PIO 821 Series Classic Driver DLL Software Manual PIO821_GetCardinf Obtain the information of PIO 821 series boards which include vender ID device ID and interrupt number gt Syntax WORD PIO821_GetCardInf BYTE BoardNo DWORD ID gt Parameters BoardNo Input Board number O to 15 of PIO 821 series ID Output ID O gt vendor ID of this board Output ID 1 gt device ID of this board Output ID 2 gt sub vendor ID of this board Output ID 3 gt sub device ID of this board Output ID 4 gt sub auxiliary ID of thi
15. ard pci napdos pci pio 821 manual PIO Eat Driver Setup Step 1 Double Click z TE a ICP DAS Co L nn Je PIO 821_Win_Setup_xxxx exe to install driver Step 2 Click the Next gt button to start the installation on the Setup PI 821 Driver window 5 Setup FIO 821 Driver ala ES Welcome to the PIO 8 71 Driver Setup Wizard This will install PIO 821 Windows Driver 1 3 0 on your computer It is recommended that you close all other applications before continuing Click Next bo continue or Cancel to exit Setup H HLH J Si Cancel User Manual Ver 1 0 Feb 2014 Page 5 PIO 821 Series Classic Driver DLL Software Manual A Setup FIO 821 Driver Select Destination Location Where should PIO 821 Driver be installed O Setup will install PIG 821 Driver into the Following Folder To continue click Next IF you would like to select a different Folder click Browse Browse At least 3 5 MB of free disk space is required Step 4 Click the Install button to continue the installation Setup PIO 821 Driver Ready to Install Setup is now ready to begin installing PIO 621 Driver on your computer Click Install to continue with the installation or click Back iF you want bo review or change any settings Destination location CADAGP O PIO 821 User Manual Ver 1 0 Feb 2014 Page 6 PIO 821 Series Classic Driver DLL Software Manual Step
16. dorlD Input Sub Vendor ID of PIO 821 series card wSubDevicelD Input Sub Device ID of PIO 821 series card wSubAuxID Input Axu ID of PIO 821 series card gt Returns Null PIO 821 Series Classic Driver DLL Software Manual PIO_GetConfigAddressSpace Get configuration address space of PIO 821 series card gt Syntax WORD PIO_GetConfigAddressSpace WORD wBoardNo WORD wBaseAddr WORD wlrqa WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice gt Parameters wBoardNo Input board number 0 to 7 wBaseAdar Output Base address wirq Output IRQ number wSubVendor Output Sub Vendor ID wSubDevice Output Sub Device ID wSubAux Output Sub Aux ID wSlotBus Output PCI slot wSlotDevice Output Device of slot gt Returns NoError OK FindBoardError Cannot find the PIO 821 series card User Manual Ver 1 0 Feb 2014 Page 46
17. ein 16 EOS ZT TOU ee EE 16 PIOS21 5G ECO aa ta 17 PIOS2T e ee tee 18 2 3 ANALOG OUTPUT FUNCTIONS e o eatin seat wena a senee see teeweat essen seats memes seeee seeteeeeaeeecuee sees 19 POS OP oia 19 PIOS2L Ee 20 2 4 EEPROM FUNCTION e e E o OO cones 21 PTOS LL ee 21 2 5 DIGITAL INPUT OUTPUT Een e 22 PO DION aia di 22 EE DITA ege 23 PIOS21 Eer Eeer 24 POS E 25 Se Ne e OT 26 PIOS DO I ra 27 2 6 H eet te de 28 POG EE 28 PIOS 21 EGG COUTO osea 29 2 7 A o oa Po E E a iE 30 PIOS21 Sel Channel CON EE 30 POS T EE 31 POS IT ADPT EE 32 User Manual Ver 1 0 Feb 2014 Page 1 PIO 821 Series Classic Driver DLL Software Manual EE EE 33 PIOS 21 ADS POI iaa 34 Te ADSPOCO EE 35 2 8 T nten te Scenes a od 36 POSL oia 36 RIOS INCAS CO E 36 PIOS21 EE EE 37 Tee RER ET 38 PIOSZT REMOVE stas tn 38 3 DEMO ee KE 39 3 1 FOR MICROSOFT WINDOWS E 39 3 2 FOR On Pe ea e e o io A 43 3 241 LIB PIO Function DeschiptiOn srta cda 44 User Manual Ver 1 0 Feb 2014 Page 2 A WM E 1 Introduction The software is a collection of digital I O analog I O and Timer Counter subroutines for PIO 821 series card add on cards for Windows 95 98 NT 2000 and 32 bit Windows XP 2003 Vista 7 applications The application structure is presented in the following diagram The subroutines in PIO821 DLL are easy understanding as its name standing for It provides powerful easy to use subroutine for developing your data acquisition application Y
18. ersion WORD PIO821_ActiveBoard BYTE BoardNo WORD PIO821_CloseBoard BYTE BoardNo WORD PIO821_TotalBoard WORD PIO821_GetCardInf BYTE BoardNo DWORD ID BYTE PIO821_IsBoardActive BYTE BoardNo Table2 2 D A Functions Table of PIO821 DLL Section Function Definition Analog Output Functions WORD PIO821_DA_Hex BYTE BoardNo WORD wValue WORD PIO821_DA BYTE BoardNo BYTE Mode float fValue User Manual Ver 1 0 Feb 2014 Page 11 PIO 821 Series Classic Driver DLL Software Manual Table2 3 EEPROM Functions Table of PIO821 DLL Section Function Definition EEPROM Functions WORD PIO821_ReadEEP BYTE BoardNo WORD wvValue WORD PIO821_WriteEEP BYTE BoardNo WORD wvValue Table2 4 DIO Functions Table of PIO821 DLL Section Function Definition Digital Input Output Functions WORD PIO821_Digitalln BYTE BoardNo WORD wValue WORD PIO821_DigitalOut BYTE BoardNo WORD wValue BYTE PIO821_InputByte BYTE BoardNo DWORD dwoOffset void PIO821_OutputByte BYTE BoardNo DWORD dwoOffset BYTE bValue WORD PIO821_InputWord BYTE BoardNo DWORD dwoOffset void PIO821 OutputWord BYTE BoardNo DWORD dwoOffset WORD wValue Table2 5 Timer Counter Functions Table of PIO821 DLL Section Function Definition Timer Counter Functions WORD PIO821_SetCounter BYTE BoardNo WORD wCounterNo WORD bCounterMode DWORD wCounterValue DWORD PIO821_ReadCounter BYTE BoardNo WORD wCounterNo WORD bCounterMode
19. n 7 3 12 A D Gain Control and Multiplex Control Register of the PIO 821 hardware manual gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821_ AdChannelError Out of the number value of channel PIO821 ConfigError Out of the gain value of channel PIO 821 Series Classic Driver DLL Software Manual PIO821_ Delay Use the 8254 chip to delay the specific time waiting in the program gt Syntax WORD PIO821_Delay BYTE BoardNo WORD wDownCount gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wDownCount Input Counter s value of 8254 chip gt Returns PIO821 NoError OK PIO821 TimeoutError Out of the delay time User Manual Ver 1 0 Feb 2014 Page 31 PIO 821 Series Classic Driver DLL Software Manual PIO821_ADPollingHex Read a 12 bit HEX value from the specified analog input channel The active AD is setting by PIO821 SetChannelConfig This subroutine performs the AD conversion by polling one time Please call PIO821_ActiveBoard first before using this function gt Syntax WORD PIO821_ADPollingHex BYTE BoardNo WORD wAdVal gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wAdVal Output Address of wAdVal which store the AD HEX data 12 bits gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can
20. nd Delphi gt Borland C Builder gt Microsoft Visual C NET Microsoft Visual VB NET The demo programs of Windows OS for the PIO 821 series can be found on the supplied CD ROM or can be obtained from the ICP DAS FTP web site The location and addresses are indicated in the table below CD NAPDOS PCI PIO 821 DLL Demo Ce http ftp icodas com pub cd iocard pci napdos pci pio 821 dll demo BCB4 gt for Borland C Builder 4 Delphi4 gt for Delphi 4 PI0821 H gt Header files P10821 PAS gt Declaration files PIO821 LIB gt Linkage library for BCB only VC6 gt forVisualC 6 VB6 gt for Visual Basic 6 PIO821 H gt Header files PIO821 BAS gt Declaration files PIO821 LIB gt Linkage library for VC only VB NET2005 gt for VB NET2005 CSharp2005 gt for CH NET2005 PIO821 vb gt Visual Basic Source files PIO821 cs gt Visual CH Source files The list of demo programs Config Demo Get cards information Counter Demo Counter demo DIO Demo Digital Input and digital output Interrupt Demo Get the AD value by interrupt method Pacer Demo Get the AD value by pacer method Polling Demo Get the AD value by polling method User Manual Ver 1 0 Feb 2014 Page 39 PIO 821 Series Classic Driver DLL Software Manual Config Demo Get cards information Following figure is the result for the demo1 program It can be applied to obtain the hardware information of the PIO 82
21. not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 AdPollingTimeOut AD polling is time out User Manual Ver 1 0 Feb 2014 Page 32 PIO 821 Series Classic Driver DLL Software Manual PIO821_ADPolling Read a the value of current active AD from the analog input channel The active AD is set by PIO821_ SetChannelConfig This subroutine performs the AD conversion by polling one time Please call PIO821_ActiveBoard first before using this function gt Syntax WORD PIO821_ADPolling BYTE BoardNo float fAdVal gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wAdVal Output Address of wAdVal which store the AD data 12 bits gt Returns PIO821 NoError PIO821 DriverNoOpen PIO821 ExceedFindBoards PIO821 BoardNoActive PIO821_ AdPollingTimeOut OK Kernel driver can not be found BoardNo exceeds the current total board number N The board is not activated AD polling is time out User Manual Ver 1 0 Feb 2014 Page 33 PIO 821 Series Classic Driver DLL Software Manual PIO821_ADsPolling Read multiple the values of current active AD from the analog input channel The active AD channel is set by PIO821 SetChannelConfig This subroutine performs the AD conversions by polling trigger Please call PIO821 ActiveBoard first before using this function gt Syntax WORD PIO821_ADsPolling BYTE BoardNo float f
22. o The pacer mode to get the AD value This demo program provides the pacer method to get the AD value ww 40 Demo Pacer Hardware 5 etting Total pra Input Range gt ele Channel No Sampling Rate Enea Je Polling Demo6 The Polling mode to get the AD value This demo program provides the polling method to get the AD value im AD Demo Polling Hardware Setting Total 1 Input Range Select Channel No PIO 821 Series Classic Driver DLL Software Manual 3 2 For DOS The demo program is contained in CD NAPDOS PCI PIO 821 DOS Ce http ftp icodas com pub cd iocard pci napdos pci pio 821 dos The completely source listing of demo program is given in TC format This program is compiler in LARGE mode and link with PIO lib in TC ZG TC gt for Turbo C 2 xx or above 3 TC LIB gt for TC Library TC DEMO gt for TC demo program TC DIAG gt for TC diagnostic program TC LIB PIO H gt TC Declaration File TC LIB TCPIO_L LIB gt TC Large Model Library File ATALIBITCPIO H LIB gt TC Huge Model Library File The list of demo programs DIO DIO Test DA Analog output test Wave 8254 square wave generator EEPROM Save EEPROM data to file Cal Digital to Analog output without calibration Softtrg Analog to Digital by Software trigger without calibration Pacerca Analog to Digital by Pacer trigger without calibration Pepe p p Pacer Analog to Digital by Pacer
23. our program can call these DLL functions by VB VC Delphi BCB VB NET 2005 and C NET 2005 easily Then the DLL driver will bypass the function call to Windrvr6 sys in order to access the hardware system To speed up your developing process some demonstration source program are provided PIO 821 Series MM VB6 VC6 BCB Delphi Classic Driver DLL Ag VB NET CH NET ICP DAS PIO 821 Series Board PIO 821 Series Classic Driver DLL Software Manual 1 1 Obtaining the Driver Installer Package PIO 821 series card can be used on Linux and Windows 95 98 NT 2000 and 32 bit XP 2003 Vista 7 based systems and the drivers are fully Plug and Play PnP compliant for easy installation The driver installer package for the PIO 821 series can be found on the supplied CD ROM or can be obtained from the ICP DAS FTP web site The location and addresses are indicated in the table below CD NAPDOS PCI PIO 821 DLL http ftp icodas com pub cd iocard pci napdos pci pio 821 dlil driver User Manual Ver 1 0 Feb 2014 Page 4 PIO 821 Series Classic Driver DLL Software Manual 1 2 Driver Installing Procedure Before the driver installation you must complete the hardware installation For detailed information about the hardware installation please refer to hardware user manual of PIO 821 series card The hardware user manual is contained in i CD NAPDOS PCI PIO 821 Manual e http ftp icodas com pub cd ioc
24. our system needs to be restored in the future a i Completing the Found Hew YH Hardware Wizard loo Ou O The wizard has finished installing the software for PIO 621 Multi function Board Click Finish to close the wizard Cancel Step 4 Windows pops up Found New Hardware dialog box again Complete x 3 Found New Hardware Your new hardware is installed and ready to use User Manual Ver 1 0 Feb 2014 Page 9 PIO 821 Series Classic Driver DLL Software Manual 1 4 Uninstalling the PIO 821 Series Classic Driver The ICP DAS PIO 821 series classic driver includes an uninstallation utility that allows you remove the software from your computer To uninstall the software follow the procedure described below Step 1 Double clock the unins000 exe uninstaller application which can be found in the following folder C DAQPro PIO 821 FIO 821 Driver Uninstall P Are vou sure you want to completely remove PIO 821 Driver and all of its components Step 3 The Remove Shared File dialog box will then be displayed to confirm whether you want to remove the share files Click the Yes to All button to continue PIO 821 Driver Uninstall Step 2 A dialog box will be displayed asking you to confirm that you want to remove the utility program Click the Yes button to continue Remove Shared File The system indicates that the Following shared File is no longer
25. pt method after applying PIO821_IntADStart function gt Syntax WORD PIO821_GetADsfloat float fAdVal gt Parameters fAdVal Output Start address of fAdVal which store the A D data gt Returns Interrupt statue 0 data is incomplete 1 data is complete PIO 821 Series Classic Driver DLL Software Manual PIO821_ GetADsHex The function can get the hex format AD data of the specific AD channel Users can set the specific AD channel in PIO821_SetChannelConfig function And the data is from the interrupt method after applying PIO821_IntADStart function gt Syntax WORD PIO821_GetADsHex WORD HAdVal gt Parameters HAdVal Output Start address of HAdVal which store the A D data 12 bits gt Returns Interrupt statue 0 data is incomplete 1 data is complete PIO821 Removelrq Release the interrupt resource of specific board from the computer system gt Syntax void PIO821_Removelrq BYTE BoardNo gt Parameters BoardNo Input Board number O to 15 of PIO 821 series gt Returns Null PIO 821 Series Classic Driver DLL Software Manual 3 Demo Programs 3 1 For Microsoft Windows ICP DAS PIO 821 Series Classic Driver DLL contains a set of functions lt can be used in various application programs for PIO 821 series card The API functions supports many development environments and programming languages including Microsoft Visual C gt Visual Basic gt Borla
26. s board Output ID 5 gt logical interrupt number of this board gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N User Manual Ver 1 0 Feb 2014 Page 17 PIO 821 Series Classic Driver DLL Software Manual PIO821_IsBoardActive Obtain the information about the specific board is active or not gt Syntax BYTE PIO821_IsBoardActive BYTE BoardNo gt Parameters BoardNo Input Board number O to 15 of PIO 821 series gt Returns 0 gt means the board is inactive 1 gt means the board is active User Manual Ver 1 0 Feb 2014 Page 18 PIO 821 Series Classic Driver DLL Software Manual 2 3 Analog Output Functions PIO821_DA_Hex Output a 12 bit HEX value to analog output channel gt Syntax WORD PIO821_DA_Hex BYTE BoardNo WORD wValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series wValue Input Analog output value O to Oxfff gt Returns PIOS21 NoError OK PIO821 DriverNoOpen Kernel driver can not be found PIO821 ExceedFindBoards BoardNo exceeds the current total board number N PIO821 BoardNoActive The board is not activated PIO821 ParameterError wValue is out of range User Manual Ver 1 0 Feb 2014 Page 19 PIO 821 Series Classic Driver DLL Software Manual PIO821 DA Output a float value to analog output channel
27. ster of PIO 821 series gt Syntax BYTE PIO821_InputByte BYTE BoardNo DWORD dwoOffset gt Parameters BoardNo Input Board number O to 15 of PIO 821 series dwOffset Input The offset value of the base address of the PIO 821 series board for the mapping address from O to Oxff gt Returns One Byte value or data User Manual Ver 1 0 Feb 2014 Page 24 PIO 821 Series Classic Driver DLL Software Manual PIO821 OutputByte Write a byte data to the defined address of the PIO 821 series board This function is designed for advance user to write data into the hardware based on the register of PIO821 series gt Syntax void PIO821_OutputByte BYTE BoardNo DWORD dwoOffset BYTE bValue gt Parameters BoardNo Input Board number O to 15 of PIO 821 series dwOffset Input The offset value of the base address of the PIO 821 series board for the mapping address from O to Oxff bValue Output A Byte value for output gt Returns None User Manual Ver 1 0 Feb 2014 Page 25 PIO 821 Series Classic Driver DLL Software Manual PIO821_InputWord Obtain a word two bytes data from the specific mapping address of the PIO 821 series board Please call PIO821_ActiveBoard first before using this function This function is designed for advance users to access the hardware data based on the register of PIO 821 series gt Syntax WORD PIO821_InputWord BYTE BoardNo DWORD dwoOffset

Download Pdf Manuals

image

Related Search

Related Contents

Manuel d`utilisateur  Manuel d`utilisation  BIJSLUITER: INFORMATIE VOOR DE GEBRUIK(ST)ER  Cantidad Unidad Descripcion 24 PIEZA DOS CAJAS DE VELAS  57XX_57712_578XXS Software User Manual  Dicas de Administração do Tempo  Manual de Instalação e Utilização  LTV人工鼻呼吸回路キット(小児/オートクレバブル)  ケータイアップデート操作手順  Panasonic Toughbook T8 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file