Home

PCI-FC16U Series Board User Manual

image

Contents

1. dwTimeOutMs Input Set the timeout for Counter Frequency The default settings is 1 ms The unit is ms wStatus Output Get the Counter Frequency status Status wStatus Ready 0 Timeout 1 Launch 2 gt Returns Refer to Section 7 1 Error Code Table kk WW User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 45 16 ch Counter Frequency Board with 32 ch Programmable DIO PCIFC16 ReadCounter This function could read the counter frequency data gt Syntax WORD PCIFC16 ReadCounter WORD wBoardNO WORD wChannel DWORD dwDataCount gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wChannel Input User set the channel number of Counter Frequency while wChannel is O that is first channel and wChannel is 1 that is second channel And so on dwDataCount Input Get the read Counter data gt Returns Refer to Section 7 1 Error Code Table User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 46 16 ch Counter Frequency Board with 32 ch Programmable DIO DB 37 The DB 37 is a general purpose daughter board for D sub 37 pins It is designed for easy wire connection via pin to pin PCI FC16U DN 37 The DN 37 is a general purpose daughter board for DB 37 pins with DIN Rail Mountings They are also designed for easy wire connection via pin to pin e PCI FC16U User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 4
2. A lt lt 24 B lt lt 16 C lt lt 8 D Get the 32 bit count value FG User Manual Ver 11 Oct 2015 PMH 030 11 Page 35 16 ch Counter Frequency Board with 32 ch Programmable DIO JOS Lib Function Description All of the functions provided for PCI FC16U are listed below in Sections 7 1 to 7 4 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 PCI FC16U is also listed in Section 7 1 Error Code Table Parameter must be set by the user before Data value from this parameter is Keyword calling the function retrieved after calling the function Input Yes No Output No Yes Input Output Yes Yes User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 36 16 ch Counter Frequency Board with 32 ch Programmable DIO 7 1 Error Code Table For the most errors it is recommended to check 1 ee S Does the device driver installs successful Does the card have plugged Does the card conflicts with other device Close other applications to free the system resources Try to use another slot to plug the card Restart your system to try again The return codes are defined as follows 0 NoError OK No Erro
3. DIO 7 4 Counter Frequency Function PCIFC16 SetChannelMode This function set the channel mode for Counter Frequency channel gt Syntax WORD PCIFC16 SetChannelMode WORD wBoardNO WORD wChannel WORD wMode WORD wDelayMs gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wChannel Input User set the channel number of Counter Frequency while wChannel is O that is first channel and wChannel is 1 that is second channel And so on wMode Input Set channel mode as follow Mode wMode Frequency 1 Hz 1 kHz 0x02 Frequency 1 kHz 250 kHz 0x12 wDelayMs Input The channel must have delay time on frequency modes that depend on source frequency The default settings is 1 ms gt Returns Refer to Section 7 1 Error Code Table oO E D User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 44 16 ch Counter Frequency Board with 32 ch Programmable DIO PCIFC16 ReadFrequency This function could read frequency from signal gt Syntax WORD PCIFC16 ReadFrequency WORD wBoardNO WORD wChannel WORD fValue DWORD dwTimeOutMss WORD wsStatus gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wChannel Input User set the channel number of Counter Frequency while wChannel is O that is first channel and wChannel is 1 that is second channel And so on fValue Output Get the read Frequency data
4. REGISTER NES 30 6 1 MAE 30 6 2 MENN EE 31 6 3 INN EE 32 6 3 1 Read Write 16 bit Data for Port AAR 32 632 Input Output Selection ON Oase EE 32 6 3 3 Read Card ID and DIO Jumper Settings cccccsecccccseeecccusececcsececeesescseececcuseseceuscessusecsesusessseeesssusecesssesssensss 33 FG User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 2 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 4 BAR 2 AND BARS TIMER REG STEG 34 6 4 1 Get Set Channel Mode 34 642 ee EN 34 E W e e EEE EEE EEE EE EEE EEE 35 7 DOS LIB FUNCTION DESCRIPTION ups 36 7 1 AT NR 37 7 2 DRIVER FUNCTION E 38 PENN 38 FO NNN 38 PCIFGIG Eege 39 7 3 He Nja 41 PTE FINN 41 FRE 42 PCIE CLO D EE NE EE EE EE NE 43 7 4 COUNTER FREQUENCY de Idee 44 Ae eil 44 PFA NNN 45 FRON 46 APPENDIX DAUGHTER BOAR DS disc sccacicanecsvsssensacecananncasoastacecesasteassansantanvassasaaencassaneasosneatesasscesastenesteaussabeastakeatwaosaseinstes 47 PN 47 DIET ER EN NE E E S 47 DEER ODE NN EE NE 48 MEA Ee aerei aE EEE NE EA A EA EEE E E E 49 User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 3 16 ch Counter Frequency Board with 32 ch Programmable DIO Packing List The shipping package should contain the following items One PCI FC16U Series Board One printed Quick Start Guide One Software Utility CD One CA 4002 D Sub Connector User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 4 16 ch Counter Frequency Board with
5. frequency channel S x 0 gt Set to low speed mode 1 Hz 1 kHz Sx 1 gt Set to high speed mode 1 kHz 250 kHz oc S SE E H3 CH2 CH1 CHO CH15 CH14 CH13 CH12 CH11 CH10 CH8 CH8 User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 34 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 4 3 Write Read Data gt Write wBaseTimer0 0x40 Select channel 0 to 7 gt Write wBaseTimer1 0x40 Select channel 8 to 15 et rl efolfefelalesl slrlefsl als a ilfo bata x x x x x x x x o7 06 05 4 03 02 01 00 gt Write wBaseTimer0 0x44 Latch channel 0 to 7 gt Write wBaseTimer1 0x44 Latch channel 8 to 15 et frl efolfefelalel s rlefsl als a ilfo ata x x x x x x x x o7 p6 0s5 4 03 02 01 00 gt Read wBaseTimer0 0x40 0x44 0x48 0x4C Read Data channel 0 to 7 gt Read wBaseTimer1 0x40 0x44 0x48 0x4C Read Data channel 8 to 15 et rj efolel sljalsfelr e slafsl a ilfo pata x x x x x x x x o7 o6 o5 04 03 02 01 00 This register is used to get the value for frequency counter channel For Example outw wBase 0x40 0x08 wChannel 8 Select Channel outw wBase 0x44 0x00 wChannel 8 Latch Channel A inpw wBase 0x40 Get the count value bit 0 7 B inpw wBase 0x44 Get the count value bit 8 15 C inpw wBase 0x48 Get the count value bit 16 23 D inpw wBase 0x4C Get the count value bit 24 31 Value
6. function to save the resources found on all the PCI FC16U Cards installed on the system Then the application program can control all the PCI FC16U cards functions directly gt Syntax WORD PCIFC16 GetConfigAddressSpace WORD wBoardNo WORD wBaseAddr WORD wBaseDIO WORD wBaseTimeroO WORD wBaseTimer1 WORD wirqNo WORD wModelD WORD wCardID gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wBaseAddr Output The section 0 base address of the board wBaseDIO Output The section 1 base address of the board wBaseTimerO Output The section 2 base address of the board wBaseTimer1 Output The section 3 base address of the board FG User Manual Ver 11 Oct 2015 PMH 030 11 Page 39 16 ch Counter Frequency Board with 32 ch Programmable DIO wirgNo Output The IRQ number that the board using wModelD Output Get the Model ID number OxFC16 is PCI FC16U wCardID Output Get the Card ID number gt Returns Refer to Section 7 1 Error Code Table User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 40 16 ch Counter Frequency Board with 32 ch Programmable DIO 7 3 Digital I O Function PCIFC16 SetDIOMode32 Set the Digital Input Output Port for the Port A and Port B gt Syntax WORD PCIFC16 SetDIOMode32 WORD wBoardNO WORD wDirection gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wDire
7. 0 Terminal No 0000000000 0000000000 A Note 1 N C is the abbreviation of Not Connected 2 CON1 and CON2 are TTL Compatible User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 14 16 ch Counter Frequency Board with 32 ch Programmable DIO A Note lt is recommended that the driver is installed before installing the hardware as the computer may need to be restarted once the driver is installed in certain operating systems such as Windows 2000 or Windows XP etc Installing the driver first helps reduce the time required for installation and restarting the computer To install the PCI FC16U board follow the procedure described below Step 1 Install the driver for the PCI FC16U board on your computer For detailed information about installing the driver refer to Chapter 4 Software Installation g Step 2 Configure the Card ID using the DIP Switch SW1 For detailed information about the Card ID refer to Section 2 3 Card ID Switch SW1 User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 15 16 ch Counter Frequency Board with 32 ch Programmable DIO Step 3 Shut down and switch off the power to the computer and Turn off computer then disconnect the power supply Step 4 Remove the cover from the computer Step 5 Select a vacant PCI slot User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 16 16 ch Counter Frequency Board with 32 ch Pro
8. 2 1 JP1 Digital I O Mode JP3 Digital Input Pull high low Settings Refer to Section 2 2 2 JP3 DI Pull high low DIP Switch used to configure the Board ID Refer to Section 2 3 Card ID Switch SW1 FG User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 9 SW1 16 ch Counter Frequency Board with 32 ch Programmable DIO 2 2 Jumper Settings 2 2 1 JP1 Digital UO Mode Jumper JP1 is used to configure the Digital I O direction mode as either Software Programmable short pins 2 and 3 or Jumper Selectable short pins 1 and 2 The default setting is Jumper Selectable Mode Jumper Selectable Default gt Software Programmable Mode Refer to Section 6 3 Bari Digital I O Registers for details of how to configure Port A PA and Port B PB when the DIO SO jumper is set to Software Programmable Mode The DIO S1 and DIO S2 jumpers are not used when the DIO SO jumper is set to Software Program Mode gt Jumper Selectable Mode DIO S1 Port A PA and DIO S2 Port B PB are used to configure the I O ports as either DI short pins 1 and 2 or DO Short pins 2 and 3 when the DIO SO Jumper is set to Jumper Selectable Mode The default Settings is DI DIO SO is Jumper Selectable Mode DI Default DIO S1 Port A DIO S2 Port B User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 10 16 ch Counter Frequency Board with 32 ch Programmable DIO 2 2 2 JP3 Digital Input P
9. 32 ch Programmable DIO The PCI FC16U User Manual contains information about using the ICP DAS PCI FC16U Series multifunction board with UniDAQ PCI FC16U board feature up to 16 Counter Frequency channels and 32 Programmable Digital Input Output channels This chapter provides basic information you need to get started using your PCI FC16U board 1 1 Overview The PCI FC16U is a 32 bit hardware type high speed Counter Frequency board that supports both the 3 3 V and the 5 V Universal PCI bus The card provides 16 channels that can be individually configured for either frequency measurement or up counter applications and can support high frequency signals up to 250 kHz The PCI FC16U board also includes 32 programmable Digital I O channels The PCI FC16U board includes an onboard Card ID switch that enables the board to be easily recognized via software if two or more boards are installed in the same computer The pull high pull low resistors allow the DI status to be predefined as either high or low instead of remaining floating if the DI channels are disconnected or interrupted The PCI FC16U board supports a variety of operating systems such as DOS Windows 2000 32 64 bit Windows XP 2003 2008 Vista 7 and Windows 8 ICP DAS also provides a DLL and Active X control for the PCI FC16U together with sample programs in various languages including Turbo C Borland C Visual C Borland Delphi Borland C Builder Visual Basic C NET Visua
10. 7 16 ch Counter Frequency Board with 32 ch Programmable DIO DB 16P Isolated Input Board The DB 16P is a 16 channel isolated digital input daughter board The optically isolated inputs of the DB 16P are consisted of are bi directional optocoupler with resistor for current sensing You can use the DB 16P to sense DC signal from TTL levels up to 24 V or use the DB 16P to sense a wide range of AC signals You can use this board to isolate the computer from large common mode voltage ground loops and transient voltage spike that often occur in industrial environments Opto lsolated PCI FC16U DI 20 Pin cable 00000000 DB 16P PCI FC16U AC or DC Signal 0 V 24 V User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 48 16 ch Counter Frequency Board with 32 ch Programmable DIO DB 16R Relay Board The DB 16R 16 channel relay output board consists of 16 Form C relays for efficient switching of load by programmed control It is connector and functionally compatible with 785 series board but with industrial type terminal block The relay is energized by applying 5 voltage signal to the appropriate relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay light when their associated relay is activated To avoid overloading your PC s power supply this board provides a screw terminal for external power supply Form C Relay Normally Open Normally Closed 20 Pin cable PCI F
11. C16U Note Relay controls load up to 0 5 A 110 Vac or 1A 24 Vpc User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 49
12. Frequency is highly affected by duty cycle Programmable I O Digital Input Compatibility 5 V TTL Logic 0 0 8 V Max Input Voltage Logic 1 2 0 V Min Pull high low Yes 1 0 MHz Typical Response Speed FG User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 7 16 ch Counter Frequency Board with 32 ch Programmable DIO Model PCI FC16U Digital Output Compatibility 5 V TTL Logic 0 0 4 V Max Output Voltage Logic 1 2 4 V Min Sink 2 4 0 8 V Source 0 8 2 0 V Response Speed 1 0 MHz Typical Bus Type 3 3 V 5 V Universal PCI 32 bit 33 MHz Output Capability Card ID Yes 4 bit Female DB37 x 1 I O Connector 20 pin box header x 2 Dimensions L x W x D 170 mm x 88 mm x 22 mm Operating Temperature 0 60 C Storage Temperature 20 70 C User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 8 16 ch Counter Frequency Board with 32 ch Programmable DIO 2 1 Board Layout The following is an overview of the board layout for each of the PCI FC16U board O O PCI FC16U CON1 CON3 a PB VCC__ GND JP3 m m m CON2 SW1 dell E a 2 2 DIO s1 ale DIo 2 8 ale JP1 PA CON1 The terminal for PB Refer to Section 2 5 Pin Assignments CON2 The terminal for PA Refer to Section 2 5 Pin Assignments CON3 The terminal for Counter Frequency Refer to Section 2 5 Pin Assignments JP1 Digital Input Output Mode Settings Refer to Section 2
13. G User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 24 16 ch Counter Frequency Board with 32 ch Programmable DIO gt Windows 8 Step 1 To display the Start screen icon from the desktop view hover the mouse cursor over the bottom left corner of screen Step 2 Right click the Start screen icon and then click Device Manager i SE DD BIG ASA STIEFTT en Alternatively press Windows Key X to Computer Management Command Prompt Command Prompt Admin open the Start Menu and then select Device Manager from the options list Task Manager Contral Panel Windows Explorer Search Run Desktop Right click j V L D User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 25 16 ch Counter Frequency Board with 32 ch Programmable DIO 4 3 2 Check the Installation Check that the PCI FC16U board is correctly listed in the Device Manager as illustrated below File Action View Help gt gli Computer su rd _ Sr UniDAQ PCI FC16 Timer Counter Digital VO Boatdg b gt gy eens gt Ba Display adapters gt 3 DVD CD ROM drives gt 4g IDE ATA ATAPI controllers gt 2 Keyboards Installation successful b D Mice and other pointing devices b kL Monitors b E Network adapters gt JET Ports COM amp LPT b EI Processors b E Sound video and game controllers gt AR System devices b 7 Universal Serial Bus controllers User Manual Ver 1 1 Oct 2015 PMH 030 11 Pag
14. JI IDIIOEEEEEEEEEE User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 23 16 ch Counter Frequency Board with 32 ch Programmable DIO gt Windows Server 2003 Step 1 Click the Start button and point to Administrative Tools and then click the Computer Management option Step 2 Expand the System Tools item in the console tree and then click Device Manager Aadnmumisirator g Manage Your Server EI My Computer F ES Command Prompt Be ee ol Panel d do Administrative Tools ff Certification Authority ea Cluster Administrator i Hates WE ebe Printers and Faxes Notepad Help and Support 2 Computer Management d COUPE TUE Sere fed F Manages gt ee gt Windows 7 Step 1 Click the Start button and then click Control Panel Step 2 Click System and Maintenance and then click Device Manager Control Panel 3 Device Manager mea View devices and printers Step 2 In the Search field type 4 Update device drivers Alternatively Step 1 Click the Start button Device Manager and then press p Fr Enter device manager D Ke ll A Note that Administrator privileges are required for this operation If you are prompted for an administrator password or confirmation enter the password or provide confirmation by clicking the Yes button in the User Account Control message F
15. PCI FC16U Series Board User Manual 16 ch Counter Frequency Board with 32 ch Programmable DIO Version 1 1 Oct 2015 16 ch Counter Frequency Board with 32 ch Programmable DIO TABLE OF CONTENTS PONG hv 4 1 NPR 5 1 1 EE EEE EE EE EN 5 1 2 STEE 6 1 3 PN 6 1 4 PATNA 7 2 HARDWARE CONFIGURATION icsscsccevesssecacisscesesssecesexecaneseseseewsesesexecieesasetesteerestcetauesassteuntaresesedauetessceuseannsexesannias s 9 2 1 Siet eer NNN 9 2 2 JONAPER TN 10 PN NNN 10 2 22 JP3 Digital Input PUI LIGNNOW EN 11 2 3 SPM 12 2 4 SYSTEM BLOCK DIAGRAM edel 13 2 5 PIN ASSIGNMENTS aruuunnnrnnnnnnnnnrnnnnnnnnnnnnrnnnnennnnsnnrnnnnennnnsnennnnnnnnnnnvensnnsnnnnnnnnnnnnnnnnnnnsnnnnunnnnrnnnnnnnunsnnnnnnsnnnnnsvennunsuennnee 14 3 HARDWARE INSTALLATION essessessessosccaconconeosossossoseoseosecaccsssneosossossossessoseosscsecasonessessossossoseosecsscacsssosessossossosses 15 4 SOFTWARE INSTALLATION eebe 19 4 1 OBTAINING INSTALLING THE DRIVER INSTALLER EN EEE EEE 19 4 2 Mr 21 4 3 VERIFYING THE NEE 23 Aod Accessing Windows Device MANG svarene 23 4 3 2 CHECK Ee Te EH 26 5 TESTING THE PCI FCIGU BOARD aissc ccc secestcevs ceicsec ue ceuie cau csentee vests saesaateoe nue caneaeceue Ueaeceace saceeectsanuscenyceuueersetneeevac 27 5 1 SELF TEST WIRING essssesssssssesssrtsssrtrnsrtrnsttrestttsttt ettr sttt sett st tt stt t stt stt stu bsr E SEEE SEEEESEEEESEEEEREEEESEE EREE Eene Eeee reenn 27 5 2 EEEE TE PRO RAN EE 28 6 VO
16. ach card includes four fixed ID numbers that are used to identify the card and are indicated below PCI FC16U Ox10B5 Ox3001 OxOOFC 0x0016 User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 30 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 2 1 O Address Mapping An overview of the registers for the PCI FC16U board is given below The address of each register can be determined by simply adding the offset value to the base address of the corresponding Bar number More detailed descriptions of each register can be found in the following OOH 04H OCH 20H 24H 2 40H er0 44H 48H 4CH 20H 24H 3 40H imer1 44H 48H 4CH Register Function Description SSES Read Digital I O Port A Read Digital I O Port B Get DIO Jumper Status and Card ID Read Channel Mode Read Speed Mode Read Counter Value bit O to 7 Read Counter Value bit 8 to 15 Read Counter Value bit 16 to 23 Read Counter Value bit 24 to 31 Read Channel Mode Read Speed Mode Read Counter Value bit 0 to 7 Read Counter Value bit 8 to 15 Read Counter Value bit 16 to 23 Read Counter Value bit 24 to 31 Note The length of the register is 16 bits Write Digital I O Port A Write Digital I O Port B Set Port A and Port B Configuration Set Channel Mode Set Speed Mode Select Channel Latch Channel N A Clear the Channel Set Channel Mode Set Speed Mode N A N A N A Clear t
17. ction Input Set the Digital Input Output Port to DI or DO Port as follow Bit 1 Port B Bit O Port A wDirection Output Output gt Returns Refer to Section 7 1 Error Code Table User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 41 16 ch Counter Frequency Board with 32 ch Programmable DIO PCIFC16 WriteDO Send the 16 bit data to the specified I O port gt Syntax WORD PCIFC16_WriteDO WORD wBoardNO WORD wPortNo WORD wValue gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wPortNo Input Port Number Port A is 0 Port B is 1 as follow wPortNo 0 Port B KE User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 42 wValue Input 16 bit data send to I O port gt Returns Refer to Section 7 1 Error Code Table 16 ch Counter Frequency Board with 32 ch Programmable DIO PCIFC16 Read Reads the 16 bit data from specified I O port gt Syntax WORD PCIFC16_ReadDI WORD wBoardNO WORD wPortNo WORD wValue gt Parameters wBoardNo Input The Board number for PCI FC16U board Start from 0 wPortNo Input Port Number Port A is 0 Port B is 1 as follow wPortNo Port B wValue Output 16 bit data receive from I O port gt Returns Refer to Section 7 1 Error Code Table User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 43 16 ch Counter Frequency Board with 32 ch Programmable
18. dia Player Pictures click the UniDAQ Utility to execute Windows Update g t XPS Viewer ae the UniDAQ Utility Program J Accessories Games button point to All Programs and Games d Google Chrome z Computer Control Panel Devices and Printers do Startup D Ree AS ID EER Default Programs Help and Support _ gemengen Search programs and files Shut down Step 2 Confirm that the PCI FC16U board has been successfully installed in the Host system Note that the device numbers start from 0 Step 3 Click the TEST button to start the test User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 28 16 ch Counter Frequency Board with 32 ch Programmable DIO Step 4 Check the results of the Digital Input Output functions test 1 Click the Digital Output tab 2 Select PortO from the Port Number drop down menu 3 Check the checkboxes for channels 0 2 4 and 6 An gen i LU PC Hl Vu 4 4 Click the Digital Input tab Select Port1 from the Port Number drop down menu The DI indicators will turn red when the corresponding DO channels 0 2 4 and 6 are User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 29 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 1 Hardware ID During the power on stage the Plug and Play BIOS will assign an appropriate I O address to each PCI FC16U board installed in the system E
19. e 26 16 ch Counter Frequency Board with 32 ch Programmable DIO 5 Testing the PCI FC16U Board This chapter provides detailed information about the Self Test process which is used to confirm that the PCI FC16U board is operating correctly Before beginning the Self Test process ensure that both the hardware and driver installation procedures are fully completed For detailed information about the hardware and driver installation refer to Chapter 3 Hardware Installation and Chapter 4 Software Installation 5 1 Self Test Wiring Before beginning the Self Test procedure ensure that the following items are available vi A CA 2002 Cable Optional Website http www icpdas com products Accessories cable cable selection htm gt Wiring for the Digital Input Output Test Step 1 Keep set the JP1 jumper to SW position See Section 4 Jumper Settings Step 2 Connect the CON1 to CON2 on the PCI FC16U board using the CA 2002 cable optional PCH FC16U piis OE d RR cc bi Manual Ver 1 1 Oct 2015 PMH 030 11 Page 27 16 ch Counter Frequency Board with 32 ch Programmable DIO 5 2 Execute the Test Program Step 1 In Windows 7 click the Start fie Default Programs By Desktop Gadget Gallery Internet Explorer Tammy then click the ICPDAS folder Point to p Windows DVD Maker Windows Fax and 5can Documents UniDAQ Development Kits andthen Windows Media Center Windows Me
20. grammable DIO Step 6 Unscrew and remove the PCI slot cover from the computer case Step 7 Remove the connector cover from the PCI FC16U board Step 8 Carefully insert the PCI FC16U board into the PCI slot by gently pushing down on both sides of the card until it slides into the PCI connector User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 17 16 ch Counter Frequency Board with 32 ch Programmable DIO Step 9 Confirm that the card is correctly inserted in the motherboard and then secure the PCI FC16U board in place using the retaining screw that was removed in Step 6 Step 10 Replace the covers on the computer Step 11 Re attach any cables insert the power cord and then switch on the power to the computer Once the computer reboots follow any message prompts that may be displayed to complete the Plug and Play installation procedure Refer to Chapter 4 Software Installation for more information User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 18 16 ch Counter Frequency Board with 32 ch Programmable DIO 4 Software Installation This chapter provides a detailed description of the process for installing the driver for the PCI FC16U board as well as how to verify whether the PCI FC16U board was properly installed PCI FC16U board can be used on DOS Linux and Windows 2000 and 32 64 bit versions of Windows XP 2003 2008 7 8 based systems and the drivers are fully Plug and Play comp
21. he Channel User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 31 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 3 Bar 1 Digital I O Registers 6 3 1 Read Write 16 bit Data for Port A B gt Read Write wBaseDIO 0x00 Read Write 16 bit Data for Port A gt Read Write wBaseDIO 0x04 Read Write 16 bit Data for Port B ee eee Data DF DE oo pc os oa v9 os o7 oe os 04 03 o2 p1 po That is 16 bit I O ports in the PCI FC16U This I O port can be configured as DI or DO port Each port is easy to read write by access his owns data register For Example outpw wBaseDIO 0x0 wDoValue Control the DO states wDiValue inpw wBaseDIO 0x0 Read the DI states 6 3 2 Input Output Selection Control gt Write wBaseDIO 0x0C 1 0 Selection Control COR Data PortB Porta This register provides the function for configuration Digital Input Output port of the PCI FC16U Every I O port can be programmed as DI or DO port Note that all ports are used as DI ports when the PC is first turned on and S2 for jumper JP1 must set to Soft position See Section 2 2 1 JP1 Digital I O Mode for detail information Port x 1 gt This port is used as a DO port Port x 0 gt This port is used as a DI port FG User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 32 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 3 3 Read Card ID and DIO Jumper Settings g
22. he software in the default folder C ICPDAS UniDAQ Step 5 On the Select Components screen verify that the DAQ Card is in the list of device and then click the Next gt button to continue Step 6 On the Select Additional Tasks screen click the Next gt button to continue Installation Procedure nil u Step 7 On the Download Information screen click the Next gt button to continue Step 8 Once the installation has completed click No I will restart my computer later and then click the Finish button For more detailed information about how to install the UniDAQ driver refer to Section 2 2 Install UniDAQ Driver DLL of the UniDAQ Software Manual which can be found in the WAPDOSVPCINUniDAQVManuall folder on the companion CD or can be downloaded from http ftp icodas com pub cd iocard pci napdos pci unidaq manual User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 20 16 ch Counter Frequency Board with 32 ch Programmable DIO 4 2 Plug and Play Driver Installation emne Step 1 Correctly shut down and power off your GE a WP computer and disconnect the power supply and then E emm Installation install the PCI FC16U board into the computer A It is recommended that the driver is installed before installing the hardware as the computer may need to be restarted once the driver is installed in certain operating systems such as Windows 2000 or Wind
23. l Basic NET and LabVIEW enabling help users to quickly and easily develop their custom applications FG User Manual Ver 11 Oct 2015 PMH 030 11 Page 5 16 ch Counter Frequency Board with 32 ch Programmable DIO 1 2 Features The following is an overview of the general features provided by the PCI FC16U board Refer to Section 1 3 for more details e Universal PCI Interface supports both the 5 V and the 3 3 V PCI bus e Supports Card ID SMD Switch e 16 channel Up Counter or Frequency Measurement Pulse Width 2 us Min e Digital Filter 1 32767 us e 32 Programmable Digital I O Channels e Pull high and Pull low Resistors for DI Channels e 2 kV ESD Protection for each channels 1 3 Applications e Counter Measurement e Frequency Measurement User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 6 with 32 ch Programmable DIO 1 4 Specifications The following is an overview of the specifications for the various models in the PCI FC16U Model PCI FC16U Counter Frequency 16 ch Up Counter Counter amp Mode Frequency 16 ch Frequency 1 Hz typically 250 kHz both counter mode and frequency mode where 250 kHz is calculated as followings Supposed that duty cycle 50 refer to Minimum Pulse Duration of High Level we have pulse period 2 us x 2 4 us which is 250 Input Frequency ser Max Frequency Refer to Min Pulse Duration of High Level Max
24. liant for easy installation 4 1 Obtaining Installing the Driver Installer Package The driver installation package for PCI FC16U board can be found on the companion CD ROM or can be obtained from the ICP DAS FTP web site Install the appropriate driver for your operating system The location and website addresses for the installation package are indicated below gt UniDAQ Driver SDK Operating Windows 2000 32 64 bit Windows XP 32 64 bit Windows 2003 System 32 64 bit Windows 7 32 64 bit Windows 2008 and 32 64 bit Windows 8 Driver Name UniDAQ Driver SDK unidaq_win_setup_xxxx exe CD ROM CD NAPDOS PCI UniDAQ DLL Driver Web site http ftp icodas com pub cd iocard pci napdos pci unidag dll driver To install the UniDAQ driver follow the procedure described below Step 1 Double click the UniDAQ_Win_Setupxxx exe icon to begin the Installing installation process Procedure Step 2 When the Welcome to the ICP DAS UniDAQ Driver Setup Wizard screen is displayed click the Next gt button to start the installation User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 19 16 ch Counter Frequency Board with 32 ch Programmable DIO Step 3 On the Information screen verify that the DAQ card is included in the list of supported devices then click the Next gt button Step 4 On the Select Destination Location screen click the Next gt button to install t
25. ows XP etc Installing the driver first helps reduce the time required for installation and restarting the computer For detailed information about the hardware To install the PCI FC16U board follow the procedure described below installation of the PCI FC16U board refer to Chapter 3 Hardware Installation For detailed information about installing the driver refer to Chapter 4 Software Installation Step 2 Power on the computer and complete the Plug and Play installation Note More recent operating systems such as Windows 7 8 will automatically detect the new hardware and install the necessary drivers etc so Steps 3 to 5 can be skipped Step 3 Select Install the software Found New Hardware Wizard automatically Recommended and Welcome to the Found New click the Next gt button PSG This wizard helps you install software for UniDAQ PCI FCL16 Timer Counter Digital VO Board C If your hardware came with an installation CD So or floppy disk insert it now What do you want the wizard to do Install from lst or specific location Advanced Click Nest to continue Back f ne gt User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 21 16 ch Counter Frequency Board with 32 ch Programmable DIO Step 4 Click the Finish button Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Click Finish
26. r 1 DriverHandleError Device driver opened error 2 DriverCallError Got the error while calling the driver functions 3 FindBoardError Can t find the board on the system 4 TimeOut Timeout 5 ExceedBoardNumber Invalid board number Valid range 0 to TotalBoard 1 6 NotFoundBoard Can t detect the board on the system 7 InvalidChannel Invalid channel number 8 AlQueueError Driver buffer error 9 FIFOError Device FIFO error 10 InvalidEEPBlock Invalid EEPROM Block 11 InvalidEEPAddr Invalid EEPROM Address 12 InvalidCfgCode Invalid Gain Code User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 37 16 ch Counter Frequency Board with 32 ch Programmable DIO 7 2 Driver Function PCIFC16 Driverinit This function can detect all the PCI FC16U cards in the system It is implemented based on the PCI Plug and Play mechanism It will find all the PCI FC16U cards installed in this system and save all their resources into the library gt Syntax WORD PCIFC16_DriverInit WORD wBoards gt Parameters wBoards Output Number of boards found in this PC gt Returns Refer to Section 7 1 Error Code Table PCIFC16 DriverClose Release the PCI FC16U driver resource gt Syntax WORD PCIFC16 DriverClose void gt Parameters None gt Returns Refer to Section 7 1 Error Code Table 16 ch Counter Frequency Board with 32 ch Programmable DIO PCIFC16 GetConfigAddressSpace The user can use this
27. t Read wBaseDI0 0x0C Read Card ID and DIO Jumper Settings er EE pata x x x x x so sa sa x x x x 103 2 pm This register reads the Card ID SW1 and DIO jumper JP1 settings See Section 2 3 Card ID Switch SW1 and Section 2 2 1 JP1 Digital I O Mode for detail information For Example wCardID inportb wBaseD10 0x0C 80xF Read Card ID number wJumper inportb wBaseDIO 0xC gt gt 8 amp 0x7 User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 33 16 ch Counter Frequency Board with 32 ch Programmable DIO 6 4 Bar 2 and Bar3 Timer Registers 6 4 1 Get Set Channel Mode gt Read Write wBaseTimer0 0x20 Get Set channel mode channel 0 to 7 gt Read Write wBaseTimer1 0x20 Get Set channel mode channel 8 to 15 et rl elolfefelalel s rlefsl als a ilfo Deel x x x x x x x s7 s6 s5 sa s3 s2 sa so This register is used to get set the channel configuration mode S x 1 gt This channel is used as a frequency channel S x 0 gt This channel is used as a counter channel on oie ons I om os ono op cae 6 4 2 Get Set Speed Mode gt Read Write wBaseTimer0 0x24 Get Set speed mode channel 0 to 7 gt Read Write wBaseTimer1 0x24 Get Set speed mode channel 8 to 15 et rl elol elslafefel rl el sl al sjalfilfo bata x x x x x x x x s7 s6 ss sa s3 s2 si so This register is used to get set the speed mode for
28. to close the wizard lt Back Cancel Step 5 Windows pops up Found New Hardware dialog box again J Found New Hardware Your new hardware is installed and ready to use User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 22 16 ch Counter Frequency Board with 32 ch Programmable DIO 4 3 Verifying the Installation To verify that the driver was correctly installed use the Windows Device Manager to view and update the device drivers installed on the computer and to ensure that the hardware is operating correctly The following is a description of how access the Device Manager in each of the major versions of Windows Refer to the appropriate description for the specific operating system to verify the installation 4 3 1 Accessing Windows Device Manager gt Windows 2000 XP Step 1 Click the Start button and then point to Settings and click Control Panel Double click the System icon to open the System Properties dialog box Step 2 Click the Hardware tab and then click the Device Manager button System Properties System Restore Automatic Updates General Computer Name Advanced Add Hardware Wizard E The Add Hardware Wizard helps vou install hardware Add Hardware Wizard Device Manager The Device Manager lists all the hardware devices installed on Your computer Use the Device Manager to change the properties of any device Ss EE TEE Ct
29. ull high low Jumper JP3 is used to set the Digital Input to either Pull high or Pull low Shorting pins 1 and 2 will set the Digital I O to Pull high To set the Digital I O to Pull low pins 2 and 3 should be shorted The default setting is Pull low Pull low Default GND VCC JP3 VCC User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 11 16 ch Counter Frequency Board with 32 ch Programmable DIO 2 3 Card ID Switch SW1 The PCI FC16U includes an onboard Card ID switch SW1 that enables the board to be recognized via software if two or more boards are installed in the same computer The default Card ID is 0x0 For more details regarding the SW1 Card ID settings refer to the table below Card ID Hex OxO Ox1 Default Settings OFF gt 1 ON gt 0 FG User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 12 16 ch Counter Frequency Board with 32 ch Programmable DIO 2 4 System Block Diagram gt The following is the block diagram for the PCI FC16U COA 32 ch Sa Up Counter 32 ch Digital COA her Programmable ee cops Le Tet CNTO CNT7 ES COB her Jumper C7A DE Up Counter Setting C7A C7B CNT8 CNT15 PCI Bridge C7B Card ID PCI FC16U User Manual Ver 1 1 Oct 2015 PMH 030 11 Page 13 16 ch Counter Frequency Board with 32 ch Programmable DIO Pin Assign ment PBO PB 2 PB 4 PB 6 PB 8 PB 10 PB 12 PB 14 GND EA Terminal No 0000000000 000000000

Download Pdf Manuals

image

Related Search

Related Contents

gbTouch manual  Sprinter 150/150M/250M User Manual  Manuel d`installation  Sony VPCW11S1E/W netbook  Page 1 Page 2 普通火災、 油火災には力強い味方 この消火器は水系  University of Hertfordshire  Akai APC Key 25    Benutzerhandbuch eANV-Portal  ホームネットワーク機能を使う  

Copyright © All rights reserved.
Failed to retrieve file