Omega Engineering OME-A826PG Computer Hardware User Manual


 
OME-A-826PG Software Manual [Win 95/98/NT]
Table of Contents
1 Introduction ..................................................................................................................4
1.1 References ............................................................................................................. 5
1.2 Range Configuration Code .................................................................................... 6
2 Declaration Files .......................................................................................................... 7
2.1 For C user .............................................................................................................. 8
2.1.1 A826.H (for Win 95/98) ................................................................................. 8
2.1.2 A826.H (for Win NT) ................................................................................... 11
2.1.3 A826U.Cpp (for BCB).................................................................................. 13
2.1.4 The VC++ Demo Result: .............................................................................. 14
2.1.5 Borland C++ Builder Demo Result .............................................................. 14
2.2 For The VB user .................................................................................................. 15
2.2.1 A826.BAS (for Win 95/98)........................................................................... 15
2.2.2 A826.BAS (for Win NT) .............................................................................. 18
2.2.3 A826U.BAS.................................................................................................. 21
2.2.4 The VB Demo Result:................................................................................... 21
2.3 For The Delphi user............................................................................................. 22
2.3.1 A826.PAS (for Win 95/98)........................................................................... 22
2.3.2 A826.PAS (for Win NT)............................................................................... 26
2.3.3 A826U.PAS .................................................................................................. 29
2.3.4 Delphi Demo Result :.................................................................................... 30
3 Function Description.................................................................................................. 31
3.1 TEST Function .................................................................................................... 33
3.1.1 SHORT_SUB_2........................................................................................... 33
3.1.2 FLOAT_SUB_2............................................................................................ 33
3.1.3 A826_Get_DLL_Version ............................................................................. 34
3.1.4 A826_GetDriverVersion............................................................................... 34
3.2 DI/DO Function................................................................................................... 35
3.2.1 A826_Di........................................................................................................ 35
3.2.2 A826_Do....................................................................................................... 35
3.2.3 A826_OutputByte......................................................................................... 36
3.2.4 A826_OutputWord ...................................................................................... 36
3.2.5 A826_InputByte............................................................................................ 37
3.2.6 A826_InputWord ......................................................................................... 37
3.3 A/D , D/A Functions............................................................................................ 38
3.3.1 A826_AD...................................................................................................... 38
3.3.2 A826_DA...................................................................................................... 38
3.3.3 A826_ADs_Hex............................................................................................ 39
3.3.4 A826_ADs_Float .......................................................................................... 40
3.3.5 A826_Uni5_DA............................................................................................ 41
3.3.6 A826_Uni10_DA.......................................................................................... 41
3.4 Driver Functions.................................................................................................. 42
3.4.1 A826_DriverInit............................................................................................ 42
3.4.2 A826_DriverClose ........................................................................................ 42
3.4.3 A826_DELAY .............................................................................................. 43
Date: Aug-15-2000 Ver: 2.2 Page 2