2
ICP DAS UniDAQ SDK User Manual English Version Version: 1.01 2009/10/2
TABLE OF CONTENTS
1
INTRODUCTION................................................................................................................. 4
1.1 .................................................................................................................5 FUNCTION DEFINITIONS
1.2 .......................................................................................7 FUNCTION RETURN VALUE DEFINITIONS
1.3 .....................................................................................................9 CONFIGURATION CODE DEFINE
1.3.1 ........................................................................................9 Analog Input Configuration Codes
1.3.2
.......................................................................................9 Analog Output Configuration Code
1.4
............................................................................................................10 BOARD MODEL NUMBERS
2
INTRODUCTION TO DLL FUNCTIONS ..........................................................................11
2.1 .....................................................................................................................12 DRIVER FUNCTIONS
2.1.1 ..............................................................................................12 Ixud_GetDllVersion Function
2.1.2
.....................................................................................................12 Ixud_DriverInit Function
2.1.3
.................................................................................................12 Ixud_DriverClose Function
2.1.4
................................................................................13 Ixud_GetBoardNoByCardID Function
2.2
..................................................................................................14 ADVANCED DRIVER FUNCTIONS
2.2.1 .................................................................................................14 Ixud_GetCardInfo Function
2.2.2
......................................................................................................15 Ixud_ReadPort Function
2.2.3
.....................................................................................................16 Ixud_WritePort Function
2.2.4
..................................................................................................16 Ixud_ReadPort32 Function
2.2.5
.................................................................................................16 Ixud_WritePort32 Function
2.3
.............................................................................17 DIGITAL INPUT/ OUTPUT FUNCTION MEMBER
2.3.1 ..........................................................................................17 Ixud_SetDIOModes32 Function
2.3.2
................................................................................................17 Ixud_SetDIOMode Function
2.3.3
........................................................................................................19 Ixud_ReadDI Function
2.3.4
......................................................................................................19 Ixud_WriteDO Function
2.3.5
....................................................................................................20 Ixud_ReadDI32 Function
2.3.6
..................................................................................................20 Ixud_WriteDO32 Function
2.3.7
.................................................................................20 Ixud_SoftwareReadbackDO Function
2.4
................................................................................................................21 INTERRUPT FUNCTIONS
2.4.1 .........................................................................................21 Ixud_SetEventCallback Function
2.4.2
.................................................................................21 Ixud_RemoveEventCallback Function
2.4.3
......................................................................................................22 Ixud_InstallIrq Function
2.4.4
...................................................................................................22 Ixud_RemoveIrq Function
2.5
............................................................................................23 ANALOG INPUT FUNCTION MEMBER
2.5.1 ......................................................................................................23 Ixud_ConfigAI Function
2.5.2
..............................................................................................24 Ixud_ClearAIBuffer Function
2.5.3
...........................................................................................24 Ixud_GetBufferStatus Function
2.5.4
.........................................................................................................25 Ixud_ReadAI Function
2.5.5
......................................................................................................25 Ixud_ReadAIH Function
2.5.6
.....................................................................................................26 Ixud_PollingAI Function
2.5.7
..................................................................................................27 Ixud_PollingAIH Function
2.5.8
..............................................................................................28 Ixud_PollingAIScan Function
2.5.9
...........................................................................................30 Ixud_PollingAIScanH Function
2.5.10
.........................................................................................................32 Ixud_StartAI Function
2.5.11
..................................................................................................33 Ixud_StartAIScan Function
2.5.12
.................................................................................................34 Ixud_GetAIBuffer Function
2.5.13
...............................................................................................35 Ixud_GetAIBufferH Function
2.5.14
..........................................................................................................35 Ixud_StopAI Function
2.6
........................................................................................36 ANALOG OUTPUT FUNCTION MEMBER
2.6.1 .....................................................................................................36 Ixud_ConfigAO Function
2.6.2
..........................................................................................36 Ixud_WriteAOVoltage Function
2.6.3
.......................................................................................37 Ixud_WriteAOVoltageH Function
2.6.4
..........................................................................................37 Ixud_WriteAOCurrent Function
2.6.5
.......................................................................................38 Ixud_WriteAOCurrentH Function
2.7
.........................................................................................39 TIMER/COUNTER FUNCTION MEMBER
2.7.1 ................................................................................................39 Ixud_ReadCounter Function
2.7.2
...................................................................................................40 Ixud_SetCounter Function
2.7.3
...........................................................................................41 Ixud_DisableCounter Function
2.7.4
....................................................................................42 Ixud_SetFCChannelMode Function
2.7.5
............................................................................................42 Ixud_ReadFrequency Function