Table of Contents
i
Table of Contents
PowerDAQ API Overview......................................................3
General considerations and API structure ............................................ 3
Variables naming convention................................................................ 3
Error values............................................................................................ 3
Writing user applications for Microsoft Windows 9x, NT and 2000 .. 3
PowerDAQ Libraries........................................................................... 4
PowerDAQ Include Files .................................................................... 4
Writing user applications for Linux and Realtime Linux ...................... 5
Writing user applications for QNX ........................................................7
General Functions....................................................................9
Start talking to the board ..................................................................... 9
Adapter capabilities information functions .........................................16
Buffer Management Functions........................................................... 24
On-board EEPROM access and calibration functions ...................... 31
Event and interrupt control functions............................................. 34
Analog Input Subsystem Functions................................... 51
Analog Input immediate mode functions............................................ 51
Clocking ........................................................................................... 56
Analog Input buffered mode functions ..............................................70
Analog Output Subsystem Functions ...............................79
Analog Output immediate mode functions (PD2-MF/S boards only)79
Analog Output asynchronous mode functions (PD2-MFx board).....88
Analog Output immediate mode functions (PD2-AO board)............ 94
Analog Output asynchronous mode functions (PD2-AO board)....... 98
Digital I/O Subsystem Functions .....................................106
Digital Input/Output immediate mode functions (PD2-MFx board) 106
Digital Input/Output immediate mode functions (PD2-DIO board) .112
Digital Input asynchronous mode functions (PD2-DIO board)..........121
Digital Output asynchronous mode functions (PD2-DIO board)...... 127
Counter-Timer Subsystem Functions..............................136
General UCT access functions ........................................................... 136
Counter data stream function (PD2-DIO board only) ......................146