PCI-1002 Software Manual for Windows 95/98/NT/2000/XP/2003
Table of Contents
1. Introduction ........................................................................................................................................3
1.1 References ..................................................................................................................................3
2. Declaration Files.................................................................................................................................4
2.1 P100X.H.....................................................................................................................................5
2.2 P100X.BAS................................................................................................................................7
2.2 P100X.PAS.................................................................................................................................9
3. Demo Result.....................................................................................................................................12
3.1 Visual C++ ...............................................................................................................................12
3.2 Visual Basic..............................................................................................................................13
3.3 Delphi.......................................................................................................................................14
3.4 Borland C++ Builder................................................................................................................15
4. Description of Functions ..................................................................................................................16
4.1 The Configuration Code Table.................................................................................................18
4.2 The Test Functions...................................................................................................................19
4.2.1 P100X_FloatSub2.............................................................................................................19
4.2.2 P100X_ShortSub2............................................................................................................19
4.2.3 P100X_GetDllVersion......................................................................................................20
4.2.4 P100X_GetDriverVersion ................................................................................................20
4.3 The DI/O Functions..................................................................................................................21
4.3.1 P100X_DigitIn..................................................................................................................21
4.3.2 P100X_DigitOut...............................................................................................................21
4.4 The AD Fixed-mode Functions................................................................................................22
4.4.1 P100X_SetChConfig ........................................................................................................22
4.4.2 P100X_ AdPollingH.........................................................................................................23
4.4.3 P100X_ AdPollingF .........................................................................................................24
4.4.4 P100X_ AdMultiPollingF.................................................................................................25
4.4.5 P100X_ AdMultiPacerF ...................................................................................................26
4.5 The Driver Functions................................................................................................................27
4.5.1 P100X_DriverInit.............................................................................................................27
4.5.2 P100X_DriverClose..........................................................................................................27
4.5.3 P100X_GetConfigAddressSpace......................................................................................28
4.5.4 P100X_WhichBoardActive..............................................................................................28
4.5.5 P100X_ActiveBoard.........................................................................................................29
4.5.6 P100X_GetIrqNo..............................................................................................................29
4.6 The Interrupt Functions............................................................................................................30
4.6.1 P100X_IntInstall...............................................................................................................30
4.6.2 P100X_IntGetCount.........................................................................................................30
4.6.3 P100X_IntStart.................................................................................................................31
4.6.4 P100X_IntStartExTrigger.................................................................................................31
4.6.5 P100X_IntStop .................................................................................................................32
4.6.6 P100X_IntRemove ...........................................................................................................32
4.6.7 P100X_ IntGetBufferH.....................................................................................................33
4.6.8 P100X_IntGetBufferF ......................................................................................................33
4.6.9 Architecture of Interrupt mode .........................................................................................34
5. Program Architecture .......................................................................................................................38
6. Problems Report..............................................................................................................................39
Version 3.3 Date: Apr-10-2006 Page: 2