background image

 

 

PCI-P16R16 Series Classic 

Driver

 DLL Software Manual 

 

Version 1.3, Oct. 2015 

 

S

UPPORT

 

This  manual  relates  to  the  following  boards:  PCI-P8R8,  PCI-P8R8U,  PCI-P16R16U, 

PCI-P16R16, 

PCI-P16C16, 

PCI-P16C16U, 

PCI-P16POR16, 

PCI-P16POR16U, 

PEX-P8POR8i and PEX-P16POR16i.

 

 

W

ARRANTY

 

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. 

 

W

ARNING

 

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. 

 

C

OPYRIGHT

 

Copyright ©  2015 by ICP DAS. All rights are reserved.

 

 

T

RADEMARK

 

Names are used for identification only and may be registered trademarks of their 
respective companies. 

 

C

ONTACT 

US 

If you have any question, please feel to contact us at: 
[email protected][email protected]   
We will give you quick response within 2 workdays. 

Summary of Contents for PCI-P16R16 Series

Page 1: ...uent 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 resp...

Page 2: ...SERIES CLASSIC DRIVER 9 3 DLL FUNCTION DESCRIPTIONS 11 3 1 ERROR CODE TABLE 13 3 2 TEST FUNCTIONS 14 PCI_FloatSub2 14 PCI_ShortSub2 15 PCI_GetDllVersion 16 3 3 DRIVER INITIALIZATION FUNCTIONS 17 PCI_D...

Page 3: ...its name standing for It provides powerful easy to use subroutine for developing your data acquisition application Your program can call these DLL functions by VB VC Delphi BCB VB NET 2005 and C NET...

Page 4: ...pdas com pub cd iocard pci napdos pci pci p16r16 manual PCI P8R8_P16R16_Series_Hardware_Manual pdf PCI P16R16 series card hardware manual for PCI P8R8 P16R16 PCI P16POR16 P16POR16U PCI P16C16 and PEX...

Page 5: ...er installer package for the PCI P16R16 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 NAPDO...

Page 6: ...ware user manual is contained in CD NAPDOS PCI PCI P16R16 Manual http ftp icpdas com pub cd iocard pci napdos pci pci p16r16 manual To install the PCI P16R16 series classic drivers under Windows XP fo...

Page 7: ...lassic Driver DLL Software Manual User Manual Ver 1 3 Oct 2015 Page 6 Step 3 Click the Next button to install the driver into the default folder Step 4 Selection Yes restart computer now and then clic...

Page 8: ...to PCI P16R16_PnP_Driver_Installation pdf for more detailed information Step 1 The system should find the new card and then continue to finish the Plug and Play steps Note Some operating system such a...

Page 9: ...PCI P16R16 Series Classic Driver DLL Software Manual User Manual Ver 1 3 Oct 2015 Page 8 Step 3 Click the Finish button Step 4 Windows pops up Found New Hardware dialog box again...

Page 10: ...lassic 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 Select Settings Control Pa...

Page 11: ...15 Page 10 Step 3 When the message box loads click the Yes button to uninstall the software Step 4 After the uninstallation process is complete a dialog box will be displayed to you that the driver wa...

Page 12: ...supported by PCI P16R16 series card is also listed in Section 3 1 Table 3 1 Keyword Parameter must be set by the user before calling the function Data value from this parameter is retrieved after call...

Page 13: ...dNo WORD TypeID WORD wAddress0 WORD Waddress1 WORD wAddress2 WORD wAddress3 WORD wAddress4 WORD wAddress5 Table 3 4 Digital I O Functions for PCI P16R16 Series Table Section Function Definition 3 4 Di...

Page 14: ...system resources 5 Try to use another slot to plug the card 6 Restart your system to try again The return codes of DLLs are defined as follows Error Code Error ID Error String 0 NoError OK No Error 1...

Page 15: ...tions PCI_FloatSub2 This function is used to perform the subtraction as fA fB in float data type and is provided for testing DLL linkage purpose Syntax float PCI_FloatSub2 float fA float fB Parameters...

Page 16: ...hortSub2 This function is used to perform the subtraction as nA nB in short data type and is provided for testing DLL linkage purposes Syntax short PCI_ShortSub2 short nA short nB Parameters nA Input...

Page 17: ...er 1 3 Oct 2015 Page 16 PCI_GetDllVersion This function is used to retrieve the version number of the P16R16 DLL Syntax WORD PCI_GetDllVersion void Parameters None Returns DLL version information For...

Page 18: ...t is necessary to call on the function the first time you use this program Syntax WORD PCI_DriverInit WORD wTolalBoard Parameters wTotalBoard Input Address of wTotalBoard When wTotalBoard 1 there is o...

Page 19: ...T iMsg WPARAM wParam LPARAM lParam static char cBuf 80 HDC hdc TEXTMETRIC tm PAINTSTRUCT ps int i switch iMsg case WM_CREATE window initial NOTICE call PCI_DriverInit to initialize the driver Initial...

Page 20: ...t for uniformity or Win32 program It can only return a NoError Syntax vio PCI_DriverClose void Parameters None Returns None PCI_GetDriverVersion Gets the version number of device driver nappci vxd for...

Page 21: ...ress4 and Base Address5 Syntax WORD PCI_GetConfigAddressSpace WORD wBoardNo DWORD wTypeID WORD wAddress0 WORD wAddress1 WORD wAddress2 WORD wAddress3 WORD wAddress4 WORd wAddress5 Parameters wBoardNo...

Page 22: ...Software Manual User Manual Ver 1 3 Oct 2015 Page 21 wAddress0 wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 Output The six base address of a PCI device will be stored in these variables Returns R...

Page 23: ...s board includes PCI P16R16 U PCI P16C16 U PCI P16POR16 U and PEX P16POR16i P16R16_DO This function is used to send 16 bits of data to the DO port for PCI P16R16 series boards Syntax void P16R16_DO DW...

Page 24: ...nput DO port base addresses Returns The 16 bit value read from DI port Example The following is a source code sample This program is developed by Turbo C 2 0 Demo 1 One P16R16 card demo include P16R16...

Page 25: ...for i 0 i wBoards i wRetVal PCI_GetConfigAddressSpace i wTypeID wAddress0 wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 if wRetVal switch wTypeID case 0 printf 02d Board Name PCI P16R16 n i P16R1...

Page 26: ...in PC n exit 0 PCI P16R16 DI DO demo printf The PCI P16R16 DO DI testing n P16R16_DO P16R16_BaseAddress 0x0000 Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress D...

Page 27: ...er Manual Ver 1 3 Oct 2015 Page 26 P16R16_DO P16R16_BaseAddress 0xAAAA Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output AAAAH...

Page 28: ...hat PCI P8R8 series board includes PCI P8R8 U and PEX P8POR8i P8R8_DO This function is used to send 8 bits of data to the DO port for PCI P8R8 series boards Syntax void P8R8_DO DWORD BaseAddr WORD Out...

Page 29: ...ut DO port base addresses Returns The 8 bit value read from DI port Example The following is a source code sample This program is developed by Turbo C 2 0 Demo 2 One P8R8 card demo include P16R16 H in...

Page 30: ...pace for i 0 i wBoards i wRetVal PCI_GetConfigAddressSpace i wTypeID wAddress0 wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 if wRetVal switch wTypeID case 0 printf 02d Board Name PCI P16R16 n i P...

Page 31: ...1 0 2 0 f n fVal if wP8R8No 1 putch 0x07 printf Please plug one PCI P8R8 in PC n exit 0 PCI P8R8 DI DO demo printf The PCI P8R8 DO DI testing n P8R8_DO P8R8_BaseAddress 0x0000 Digital output delay 500...

Page 32: ...R8_DI P8R8_BaseAddress Digital input printf Digital Output 5555H Digital Input 04xH n wInData P8R8_DO P8R8_BaseAddress 0xAAAA Digital output delay 500 Delay a little time wInData P8R8_DI P8R8_BaseAddr...

Page 33: ...operation system and the DLL driver and demo programs will be copied to the correct location based on the driver software package that was selected Win95 98 NT 2K or 32 64 bit Win XP 2003 Vista 7 8 Af...

Page 34: ...ge mode demo programs P16R16 MSC LARGE LIB large mode library P16R16L LIB Demo code and Library for TC P16R16 TC HUGE DEMO huge mode demo programs P16R16 TC HUGE LIB huge mode library P16R16H LIB P16R...

Page 35: ...f demo programs Demo1 DI DO demo for one PCI P16R16 card Demo2 DI DO demo for one PCI P8R8 card Demo3 DI DO demo for one PCI P16R16 and one PCI P8R8 cards Demo4 DI DO demo for two PCI P16R16 cards For...

Page 36: ...0 or 32 bit Windows XP 2003 Vista 7 8 3 What kinds of our products that you using Please see the product s manual 4 If a dialog box with an error message was displayed please include the full test of...

Reviews: