OME-A-822PGL/H Software Manual for Windows 95/98 and NT
Table of Contents
1. INTRODUCTION ................................................................................................................................ 4
1.1 REFERENCES............................................................................................................................... 5
1.2 RANGE CONFIGURATION......................................................................................................... 6
2. DECLARATIONS & DEMO .............................................................................................................. 7
2.1 USING VC++ & BC++BUILDER ................................................................................................. 9
2.1.1 THE VC++ DEMO RESULT.................................................................................................. 9
2.1.2 BC++ BUILDER DEMO RESULT ...................................................................................... 10
2.1.3 A822.H (FOR WIN 95/98) .................................................................................................... 11
2.1.4 A822.H (FOR WIN NT) ........................................................................................................ 17
2.2 USING VISUAL BASIC.............................................................................................................. 22
2.2.1 THE VB DEMO RESULT ..................................................................................................... 22
2.2.2 A822.BAS (FOR WIN 95/98) ................................................................................................ 23
2.2.3 A822.BAS (FOR WIN NT) .................................................................................................... 29
2.3 USING DELPHI........................................................................................................................... 35
2.3.1 DELPHI DEMO RESULT .................................................................................................... 35
2.3.2 A822.PAS (FOR WIN 95/98) ................................................................................................ 36
2.3.3 A822.PAS (FOR WIN NT) .................................................................................................... 45
3. FUNCTION DESCRIPTION ............................................................................................................53
3.1 ERROR CODES...........................................................................................................................54
3.2 FUNCTIONS NOT SUPPORTED ............................................................................................... 57
3.3 DRIVER FUNCTIONS................................................................................................................ 58
3.3.1 A822_DriverInit.................................................................................................................... 58
3.3.2 A822_DriverClose ................................................................................................................58
3.3.3 A822_DELAY........................................................................................................................ 59
3.3.4 A822_Check_Address........................................................................................................... 59
3.3.5 A822_SetTriggerMode.......................................................................................................... 60
3.4 TEST FUNCTION........................................................................................................................61
3.4.1 A822_SHORT_SUB_2 .......................................................................................................... 61
3.4.2 A822_FLOAT_SUB_2 .......................................................................................................... 61
3.4.3 A822_Get_DLL_Version ...................................................................................................... 62
3.4.4 A822_GetDriverVersion....................................................................................................... 62
3.5 COUNTER FUNCTION .............................................................................................................. 63
3.5.1 A822_SetCounter.................................................................................................................. 63
3.5.2 A822_ReadCounter .............................................................................................................. 63
3.6 DI/DO FUNCTION ...................................................................................................................... 64
3.6.1 A822_DI ............................................................................................................................... 64
3.6.2 A822_DO.............................................................................................................................. 64
3.6.3 A822_OutputByte.................................................................................................................. 65
3.6.4 A822_OutputWord................................................................................................................ 65
3.6.5 A822_InputByte .................................................................................................................... 66
3.6.6 A822_InputWord ..................................................................................................................66
3.7 AD FUNCTIONS ......................................................................................................................... 67
3.7.1 A822_SetChGain ..................................................................................................................67
3.7.2 A822_Hex2Float................................................................................................................... 67
3.7.3 A822_Fast_AD_Hex............................................................................................................. 68
3.7.4 A822_Fast_AD_Float........................................................................................................... 68
3.7.5 A822_AD_Hex...................................................................................................................... 69
3.7.6 A822_AD_Float.................................................................................................................... 69
3.7.7 A822_ADs_Hex ....................................................................................................................70
Ver: 3.2 Date: 11/27/00 Page: 2