Omega Engineering OME-A826PG Software Manual

Isa-bus multi-functional board

Advertisement

Quick Links

User' s Guide
Shop online at
www.omega.com
e-mail: info@omega.com
OME-A826PG
ISA-Bus
Multi-Functional Board
Software Manual

Advertisement

Table of Contents
loading

Summary of Contents for Omega Engineering OME-A826PG

  • Page 1 User’ s Guide Shop online at www.omega.com e-mail: info@omega.com OME-A826PG ISA-Bus Multi-Functional Board Software Manual...
  • Page 2 Directives. OMEGA will add the CE mark to every appropriate device upon certification. The information contained in this document is believed to be correct, but OMEGA Engineering, Inc. accepts no liability for any errors it contains, and reserves the right to alter specifications without notice.
  • Page 3 OME-A-826PG Software Manual [Win 95/98/NT] OME-A-826PG Software Manual [ For Windows 95/98/NT ] Date: Aug-15-2000 Ver: 2.2 Page 1...
  • Page 4: Table Of Contents

    OME-A-826PG Software Manual [Win 95/98/NT] Table of Contents Introduction ... 4 References ... 5 Range Configuration Code ... 6 Declaration Files ... 7 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)...
  • Page 5 OME-A-826PG Software Manual [Win 95/98/NT] 3.4.4 A826_Check_Address ... 43 AD, Interrupt functions... 44 3.5.1 A826_InstallIrq ... 44 3.5.2 A826_AD_INT_Start... 44 3.5.3 A826_AD_INT_Stop... 45 3.5.4 A826_GetIntCount... 45 3.5.5 A826_GetBuffer ... 46 3.5.6 A826_GetFloatBuffer ... 46 3.5.7 Diagram of Interrupt Mode... 47 AD , DMA functions ...
  • Page 6: Introduction

    OME-A-826PG Software Manual [Win 95/98/NT] 1 Introduction The OME-A-826PG is a multifunction, 16 bits resolution A/D, D/A and digital I/O card. The feature of the OME-A-826PG are given as below: 1. A/D=16 bits, 16 channels(single-ended) or 8 channels(differential) 2. A-826PG : low gain (1/2/4/8), the analog input signal range configuration code is given in Sec.
  • Page 7: References

    OME-A-826PG Software Manual [Win 95/98/NT] References Please refer to the following user manuals: • SoftInst.pdf: Describes how to install the software package under Windows 95/98/NT. • CallDll.pdf: Describes how to call the DLL functions with VC++5, VB5, Delphi3 and Borland C++ Builder 3.
  • Page 8: Range Configuration Code

    OME-A-826PG Software Manual [Win 95/98/NT] Range Configuration Code The AD converter of the OME-A-826PG is 16 bits under all configuration code. If the analog input range is configured to ±5V range, the resolution of one bit is equal to 2.44 mV. If the analog input range is configured to ±2.5V range, the resolution will be 1.22 mV.
  • Page 9: Declaration Files

    OME-A-826PG Software Manual [Win 95/98/NT] 2 Declaration Files For the Windows 95/98 user: |--\Driver | |--\A826.DLL | |--\A826.Vxd | |--\BCB3 | | |--\A826.h | | |--\A826.Lib | | +--\A826u.cpp | |--\Delphi3 | | |--\A826.pas | | +--\A826u.pas | |--\VB5 | | |--\A826.bas | | +--\A826u.bas | +--\VC5 |--\A826.h...
  • Page 10: For C User

    OME-A-826PG Software Manual [Win 95/98/NT] 2.1 For C user 2.1.1 A826.H (for Win 95/98) #ifdef __cplusplus #define EXPORTS extern "C" __declspec (dllimport) #else #define EXPORTS #endif /***************** DEFINE A826 RELATIVE ADDRESS *****************/ #define TIMER0 0x00 #define TIMER1 0x01 #define TIMER2 0x02 #define TIMER_MODE 0x03...
  • Page 11 OME-A-826PG Software Manual [Win 95/98/NT] #define NoError #define DriverOpenError #define DriverNoOpen #define GetDriverVersionError #define InstallIrqError #define ClearIntCountError #define GetIntCountError #define AdError1 #define AdError2 -200.0 #define InstallBufError #define GetBufferError #define INTStartError #define INTStopError #define InstallDmaIrqError #define RemoveDmaIrqError #define DmaStartError #define DmaStopError #define DmaGetDataError #define TimeoutError #define AllocateMemoryError...
  • Page 12 OME-A-826PG Software Manual [Win 95/98/NT] //********* IRQ Functios ************ EXPORTS WORD CALLBACK A826_InstallIrq (WORD wBase, WORD wIrq, HANDLE *hEvent, DWORD dwCount); EXPORTS WORD CALLBACK A826_AD_INT_Start(WORD Ch, WORD Gain, WORD c1, WORD c2); EXPORTS WORD CALLBACK A826_AD_INT_Stop(void); EXPORTS WORD CALLBACK A826_GetIntCount(DWORD *dwVal); EXPORTS WORD CALLBACK A826_GetBuffer(DWORD dwNum, short wBuffer[]);...
  • Page 13: A826.H (For Win Nt)

    OME-A-826PG Software Manual [Win 95/98/NT] 2.1.2 A826.H (for Win NT) #ifdef __cplusplus #define EXPORTS extern "C" __declspec (dllimport) #else #define EXPORTS #endif /***************** DEFINE A826 RELATIVE ADDRESS *****************/ #define TIMER0 0x00 #define TIMER1 0x01 #define TIMER2 0x02 #define TIMER_MODE 0x03 #define AD_LO 0x04 #define AD_HI...
  • Page 14 OME-A-826PG Software Manual [Win 95/98/NT] #define NoError #define DriverOpenError #define DriverNoOpen #define GetDriverVersionError 3 #define InstallIrqError #define ClearIntCountError #define GetIntCountError #define AdError1 #define AdError2 -200 #define InstallBufError #define AllocateMemoryError #define CardTypeError #define GetBufferError #define TimeoutError #define OtherError //********* Test Functios ************ EXPORTS short CALLBACK SHORT_SUB_2(short nA, short nB);...
  • Page 15: A826U.cpp (For Bcb)

    OME-A-826PG Software Manual [Win 95/98/NT] 2.1.3 A826U.Cpp (for BCB) #include <math.h> //*-----------------------------------------------------* //* Return voltage value or -100.0 if any error occurs * //* or parameter is out of range. //* HiLo : 1 --> High Gain , 0 --> Low Gain //* Gain : 0-3 //*-----------------------------------------------------* float A826_AD2F(Word hex, int Gain )
  • Page 16: The Vc++ Demo Result

    OME-A-826PG Software Manual [Win 95/98/NT] 2.1.4 The VC++ Demo Result: 2.1.5 Borland C++ Builder Demo Result Date: Aug-15-2000 Ver: 2.2 Page 14...
  • Page 17: For The Vb User

    OME-A-826PG Software Manual [Win 95/98/NT] 2.2 For The VB user 2.2.1 A826.BAS (for Win 95/98) Attribute VB_Name = "A826" '********************************************************************************* The Declare of A826.DLL for A826 DAQ Card '********************************************************************************* Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) '***************** DEFINE A826 RELATIVE ADDRESS ***************** Global Const TIMER0 = &H0 Global Const Timer1...
  • Page 18 OME-A-826PG Software Manual [Win 95/98/NT] Global Const A826_BI_2 Global Const A826_BI_4 Global Const A826_BI_8 Global Const A826_UNI_2 Global Const A826_UNI_4 Global Const A826_UNI_8 Global Const NoError Global Const DriverOpenError Global Const DriverNoOpen Global Const GetDriverVersionError Global Const InstallIrqError Global Const ClearIntCountError Global Const GetIntCountError Global Const AdError1 Global Const AdError2...
  • Page 19 OME-A-826PG Software Manual [Win 95/98/NT] Declare Sub A826_Uni10_DA Lib "A826.DLL" (ByVal wBase As Integer, _ ByVal wChannel As Integer, ByVal fValue As Single) '******* Driver Functions *********** Declare Function A826_DriverInit Lib "A826.DLL" () As Integer Declare Sub A826_DriverClose Lib "A826.DLL" () Declare Function A826_DELAY Lib "A826.DLL"...
  • Page 20: A826.Bas (For Win Nt)

    OME-A-826PG Software Manual [Win 95/98/NT] 2.2.2 A826.BAS (for Win NT) Attribute VB_Name = "A826" '********************************************************************************* The Declare of A826.DLL for A826 DAQ Card '********************************************************************************* Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) '***************** DEFINE A826 RELATIVE ADDRESS ***************** Global Const TIMER0 = &H0 Global Const Timer1 = &H1...
  • Page 21 OME-A-826PG Software Manual [Win 95/98/NT] Global Const NoError Global Const DriverOpenError Global Const DriverNoOpen Global Const GetDriverVersionError Global Const InstallIrqError Global Const ClearIntCountError Global Const GetIntCountError Global Const AdError1 Global Const AdError2 Global Const InstallBufError Global Const AllocateMemoryError Global Const CardTypeError Global Const GetBufferError Global Const TimeoutError Global Const OtherError...
  • Page 22 OME-A-826PG Software Manual [Win 95/98/NT] '******* Driver Functions *********** Declare Function A826_DriverInit Lib "A826.DLL" () As Integer Declare Sub A826_DriverClose Lib "A826.DLL" () Declare Function A826_DELAY Lib "A826.DLL" (ByVal wBase As Integer, _ ByVal wDownCount As Integer) As Integer Declare Function A826_Check_Address Lib "A826.DLL" (ByVal wBase As Integer) As Integer Declare Sub A826_OutputByte Lib "A826.DLL"...
  • Page 23: A826U.bas

    OME-A-826PG Software Manual [Win 95/98/NT] 2.2.3 A826U.BAS Attribute VB_Name = "A826u" '*-----------------------------------------------------* '* Return voltage value or -100.0 if any error occurs * '* or parameter is out of range. '* Gain : 0-3 '*-----------------------------------------------------* Function A826_AD2F(ByVal hex As Integer, ByVal Gain As Integer) As Single Dim ZeroBase, BullRange, VoltageRange As Single ZeroBase = 0# FullRange = 32767#...
  • Page 24: For The Delphi User

    OME-A-826PG Software Manual [Win 95/98/NT] 2.3 For The Delphi user 2.3.1 A826.PAS (for Win 95/98) unit A826; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt=^PSmallInt; const //***************** DEFINE A826 RELATIVE ADDRESS *****************/ TIMER0 = $00; TIMER1 = $01; TIMER2 = $02;...
  • Page 25 OME-A-826PG Software Manual [Win 95/98/NT] A826_BI_50 = 10; A826_BI_500 = 11; A826_BI_2 = 1; A826_BI_4 = 2; A826_BI_8 = 3; A826_UNI_2 = 5; A826_UNI_4 = 6; A826_UNI_8 = 7; NoError DriverOpenError DriverNoOpen GetDriverVersionError = InstallIrqError ClearIntCountError GetIntCountError AdError1 100; AdError2 = -200.0;...
  • Page 26 OME-A-826PG Software Manual [Win 95/98/NT] //********* Driver Functios ************ Function A826_DriverInit:WORD; StdCall; Procedure A826_DriverClose; StdCall; Function A826_DELAY(wBase,wDownCount:WORD):WORD; StdCall; Function A826_Check_Address(wBase:WORD):WORD; StdCall; Procedure A826_OutputByte(wPortAddr:WORD; bOutputVal:Byte); StdCall; Procedure A826_OutputWord(wPortAddr:WORD; wOutputVal:WORD); StdCall; Function A826_InputByte(wPortAddr:WORD):WORD; StdCall; Function A826_InputWord(wPortAddr:WORD):WORD; StdCall; //********* IRQ Functios ************ Function A826_InstallIrq (wBase,wIrq:WORD;...
  • Page 27 OME-A-826PG Software Manual [Win 95/98/NT] Function A826_GetDriverVersion; Function A826_InstallIrq; Function A826_GetBuffer; Function A826_GetFloatBuffer; Function A826_GetIntCount; Function A826_AD_INT_Start; Function A826_AD_INT_Stop; Function A826_AD_DMA_InstallIrq; Function A826_AD_DMA_RemoveIrq; external 'A826.DLL' name 'A826_AD_DMA_RemoveIrq'; Function A826_AD_DMA_Start; Function A826_AD_DMA_Stop; Function A826_AD_DMA_IsNotFinished; external 'A826.DLL' name 'A826_AD_DMA_IsNotFinished'; Function A826_AD_DMA_GetBuffer; Function A826_AD_DMA_GetFloatBuffer; external 'A826.DLL' name 'A826_AD_DMA_GetFloatBuffer';...
  • Page 28: A826.Pas (For Win Nt)

    OME-A-826PG Software Manual [Win 95/98/NT] 2.3.2 A826.PAS (for Win NT) unit A826; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt=^PSmallInt; const //***************** DEFINE A826 RELATIVE ADDRESS *****************/ TIMER0 = $00; TIMER1 = $01; TIMER2 = $02; TIMER_MODE = $03; AD_LO = $04;...
  • Page 29 OME-A-826PG Software Manual [Win 95/98/NT] A826_BI_8 = 3; A826_UNI_2 = 5; A826_UNI_4 = 6; A826_UNI_8 = 7; NoError = 0; DriverOpenError = 1; DriverNoOpen = 2; GetDriverVersionError = 3; InstallIrqError = 4; ClearIntCountError = 5; GetIntCountError = 6; AdError1 = 100; AdError2 = -200.0;...
  • Page 30 OME-A-826PG Software Manual [Win 95/98/NT] //********* IRQ Functios ************ Function A826_InstallIrq (wBase,wIrq:WORD; var hEvent:LongInt; dwCount:LongInt):WORD; StdCall; Function A826_AD_INT_Start(Ch,Gain,c1,c2:WORD):WORD; StdCall; Function A826_AD_INT_Stop:WORD; StdCall; Function A826_GetIntCount(var dwVal:LongInt):WORD; StdCall; Function A826_GetBuffer(dwNum:LongInt; wBuffer:PSmallInt):WORD; StdCall; Function A826_GetFloatBuffer(dwNum :LongInt;fBuffer:PSingle):Word; StdCall; implementation Function SHORT_SUB_2; Function FLOAT_SUB_2; Function A826_Get_DLL_Version; Procedure A826_DA;...
  • Page 31: A826U.pas

    OME-A-826PG Software Manual [Win 95/98/NT] 2.3.3 A826U.PAS unit A826U; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt=^PSmallInt; Function A826_AD2F(hex, Gain :Word): Single ; StdCall; implementation uses math; //*-----------------------------------------------------* //* Return voltage value or -100.0 if any error occurs * //* or parameter is out of range.
  • Page 32: Delphi Demo Result

    OME-A-826PG Software Manual [Win 95/98/NT] 2.3.4 Delphi Demo Result : Date: Aug-15-2000 Ver: 2.2 Page 30...
  • Page 33: Function Description

    OME-A-826PG Software Manual [Win 95/98/NT] 3 Function Description These functions in DLL are divided into several groups as follows: 1. The test functions 2. The DI/O functions 3. The AD/DA fixed-mode functions 4. The Driver functions 5. The AD Interrupt Mode functions 6.
  • Page 34 OME-A-826PG Software Manual [Win 95/98/NT] The functions of AD Interrupt listing as follows: 1. A826_InstallIrq 2. A826_GetIntCount 3. A826_GetBuffer 4. A826_AD_INT_Start 5. A826_AD_INT_Stop 6. A826_GetFloatBuffer The functions of AD DMA listing as follows: 1. A826_AD_DMA_InstallIrq 2. A826_AD_DMA_RemoveIrq 3. A826_AD_DMA_Start 4. A826_AD_DMA_Stop 5.
  • Page 35: Test Function

    OME-A-826PG Software Manual [Win 95/98/NT] TEST Function 3.1.1 SHORT_SUB_2 Description : Compute C=nA-nB in short format, Short=16 bits sign integer. This function is provided for testing purpose. Syntax : short SHORT_SUB_2(short nA, short nB); Parameter : : [Input] Short : [Input] Short Return Value : Return = nA - nB Short...
  • Page 36: A826_Get_Dll_Version

    OME-A-826PG Software Manual [Win 95/98/NT] 3.1.3 A826_Get_DLL_Version Description : Read the software version Syntax : WORD A826_Get_DLL_Version(void); Parameter : Void Return Value : return=0x100 Version 1.0 3.1.4 A826_GetDriverVersion Description : This subroutine will get the version number about the virtual device driver. Syntax : WORD A826_GetDriverVersion (WORD *wDriverVersion );...
  • Page 37: Di/Do Function

    OME-A-826PG Software Manual [Win 95/98/NT] DI/DO Function 3.2.1 A826_Di • Description : This subroutine will read the 16 bits data from the digital input port. • Syntax : WORD A826_DI(WORD wBase); • Parameter : wBase : [Input] I/O port base address, for example, 0x220 •...
  • Page 38: A826_Outputbyte

    OME-A-826PG Software Manual [Win 95/98/NT] 3.2.3 A826_OutputByte • Description : This subroutine will send the 8 bits data to the desired I/O port. • Syntax : void A826_OutputByte(WORD wPortAddr, UCHAR bOutputVal); • Parameter : wPortAddr : [Input] I/O port address, for example, 0x220 bOutputVal : [Input] 8 bits data send to I/O port •...
  • Page 39: A826_Inputbyte

    OME-A-826PG Software Manual [Win 95/98/NT] 3.2.5 A826_InputByte • Description : This subroutine will input the 8 bits data from the desired I/O port. • Syntax : WORD A826_InputByte(WORD wPortAddr); • Parameter : wPortAddr : [Input] I/O port address, for example, 0x220 •...
  • Page 40: A/D , D/A Functions

    OME-A-826PG Software Manual [Win 95/98/NT] A/D , D/A Functions 3.3.1 A826_AD • Description : This subroutine will perform a A/D conversion by polling. The A/D converter is 16 bits for A82PG. This subroutine will compute the result according to the configuration code.
  • Page 41: A826_Ads_Hex

    OME-A-826PG Software Manual [Win 95/98/NT] 3.3.3 A826_ADs_Hex • Description : This subroutine will perform a number of A/D conversions by polling. This subroutine is very similar to A826_AD except that this subroutine will perform wCount of conversions instead of just one conversion. The A/D conversing at the ISA bus’s max.
  • Page 42: A826_Ads_Float

    OME-A-826PG Software Manual [Win 95/98/NT] 3.3.4 A826_ADs_Float • Description : This subroutine will perform a number of A/D conversions by polling. This subroutine is very similar to A826_AD except that this subroutine will perform wCount of conversions instead of just one conversion. The A/D conversing at the ISA bus’s max.
  • Page 43: A826_Uni5_Da

    OME-A-826PG Software Manual [Win 95/98/NT] 3.3.5 A826_Uni5_DA • Description : This subroutine will send the 16 bits data to D/A analog output. The output range of D/A dependent on setting by hardware jumper, JP1 ( -5v or –10v), JP10/JP11 (Bipolar or Unipolar). The software can not detect the output range of D/A converter.
  • Page 44: Driver Functions

    OME-A-826PG Software Manual [Win 95/98/NT] Driver Functions 3.4.1 A826_DriverInit Description : This subroutine will open the device driver. Syntax : WORD A826_DriverInit (void); Parameter : Void Return Value : NoError : successful in opening the device driver DriverOpenError : fail in opening the device driver. 3.4.2 A826_DriverClose Description :...
  • Page 45: A826_Delay

    OME-A-826PG Software Manual [Win 95/98/NT] 3.4.3 A826_DELAY • Description: This subroutine will delay wDownCount mS(machine independent timer). Syntax: WORD A826_DELAY(WORD wBase, WORD wDownCount); • Parameter: wBase : [Input] I/O port base address, for example, 0x220 wDownCount : [Input] Number of mS will be delay •...
  • Page 46: Ad, Interrupt Functions

    OME-A-826PG Software Manual [Win 95/98/NT] AD, Interrupt functions 3.5.1 A826_InstallIrq Description: This subroutine will install interrupt handler for a specific IRQ level n. Syntax: WORD A826_InstallIrq(WORD wBase, WORD wIrq, Parameter: wBase : [Input] The I/O port base address for A826 card. wIrq : [Input] The IRQ level .
  • Page 47: A826_Ad_Int_Stop

    OME-A-826PG Software Manual [Win 95/98/NT] 3.5.3 A826_AD_INT_Stop Description: This subroutine will stop the interrupt transfer and remove the installed interrupt handler. Syntax: WORD A826_AD_INT_Stop(void ) Parameter: void. Return Value: NoError : successful INTStopError : fail 3.5.4 A826_GetIntCount Description: This subroutine will read the transferred count of interrupt. Syntax: WORD A826_GetIntCount(DWORD *dwVal ) Parameter:...
  • Page 48: A826_Getbuffer

    OME-A-826PG Software Manual [Win 95/98/NT] 3.5.5 A826_GetBuffer Description: This subroutine will copy the transferred interrupted data into the user’s buffer. Syntax: WORD A826_GetBuffer(DWORD dwNum, short wBuffer[] ) Parameter: dwNum : [Input] *wBuffer : [Output] Return Value: NoError : successful GetBufferError : fail 3.5.6 A826_GetFloatBuffer...
  • Page 49: Diagram Of Interrupt Mode

    OME-A-826PG Software Manual [Win 95/98/NT] 3.5.7 Diagram of Interrupt Mode The 3.5.1 to 3.5.6 are functions to perform the A/D conversion with interrupt transfer. The flow chart to program these function is giver as follows: Initialize the Device-Driver Install the IRQ Start the Interrupt Transfer Waiting for the signaled event object.
  • Page 50 OME-A-826PG Software Manual [Win 95/98/NT] Next Loop sampling rate defined by c1,c2 INT_Handler( ) System Area BufferA BufferB Application Area Date: Aug-15-2000 Ver: 2.2 Using A826_InstallIrq(…) to install a interrupt handler for IRQ level n that to transfer A/D data by interrupt. Using A826_AD_INT_Start to specify the A/D channel, gain and sampling rate for this interrupt transfer, then beginning this transfer.
  • Page 51: Ad , Dma Functions

    OME-A-826PG Software Manual [Win 95/98/NT] AD , DMA functions The DMA mechanism supports the Windows 95/98 only. 3.6.1 A826_AD_DMA_InstallIrq Description: This subroutine will install interrupt handler for a specific IRQ Level n and programming a DMA controller (8237) to handle DMA transfer for DMA Channel n.
  • Page 52: A826_Ad_Dma_Start

    OME-A-826PG Software Manual [Win 95/98/NT] 3.6.3 A826_AD_DMA_Start Description: This subroutine will allocate a DMA buffer in the system area, and programming the gain code and sampling rate. then starting the DMA transfer for a specific A/D channel. Syntax: WORD A826_AD_DMA_Start(WORD Ch, WORD Gain, WORD c1, Word c2, int Count, WORD wPassOut[ ] ) Parameter: : [Input] the A/D channel.
  • Page 53: A826_Ad_Dma_Stop

    OME-A-826PG Software Manual [Win 95/98/NT] 3.6.4 A826_AD_DMA_Stop Description: This subroutine will free the allocated DMA buffer that in system area. Syntax: WORD A826_AD_DMA_Stop(void ) Parameter: void. Return Value: NoError : successful DmaStopError : fail 3.6.5 A826_AD_DMA_IsNotFinished Description: This subroutine is to detect if the DMA have finished. Syntax: WORD A826_AD_DMA_IsNotFinished(void ) Parameter:...
  • Page 54: A826_Ad_Dma_Getbuffer

    OME-A-826PG Software Manual [Win 95/98/NT] 3.6.6 A826_AD_DMA_GetBuffer Description: This subroutine will copy the transferred DMA data into the user’s buffer. Syntax: WORD A826_AD_DMA_GetBuffer( short wBuffer[] ) Parameter: *wBuffer Return Value: The returned bytes no DmaGetDataError 3.6.7 A826_AD_DMA_GetFloatBuffer Description: This subroutine will copy the transferred DMA data into the user’s buffer. Syntax: WORD A826_AD_DMA_GetfloatBuffer( float fBuf[] ) Parameter:...
  • Page 55: Diagram Of Ad , Dma Mode

    OME-A-826PG Software Manual [Win 95/98/NT] 3.6.8 Diagram of AD , DMA Mode The 3.6.1 to 3.6.7 are functions to perform the A/D conversion with DMA transfer. The flow chart to program these function is giver as follows: Initialize the Device-Driver Install the IRQ Start the Interrupt Transfer Check if finished of data transfer.
  • Page 56 OME-A-826PG Software Manual [Win 95/98/NT] Next Loop Sampling rate define by c1,c2 8237 INT_Handler( ) system area BufferA BufferB Application area Date: Aug-15-2000 Ver: 2.2 Using A826_AD_DMA_InstallIrq(…) to install a interrupt handler for IRQ level n and programming the DMA controller. Using A826_AD_DMA_Start to allocate a system DMA buffer and programming sampling rate, desired transfer count then...
  • Page 57: Program Architecture

    OME-A-826PG Software Manual [Win 95/98/NT] 4 Program Architecture Initialize the Device-Driver Access/Control the Device Access/Control the Device Close the Device-Driver Development Toolkit Date: Aug-15-2000 Ver: 2.2 A826_DriverInit() …. A826_InputByte( … ) …….. …….. A826_OutputByte(…) ….. A826_DriverClose() User's Application Function Call into DLLs DLLs Services Call into Kernel-Mode .VXDs, .SYSs (Device Driver)
  • Page 58: Contact Us

    OME-A-826PG Software Manual [Win 95/98/NT] 5 Contact Us Technical support is available at no charge as described below. The best way to report problems is send electronic mail to Internet. When reporting problems, please include the following information: 1) Is the problem reproducible? If so, how? 2) What kind and version of Operation Systems that you running? For example, Windows 3.1, Windows for Workgroups, Windows NT 4.0, etc.
  • Page 59 OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period of 13 months from date of purchase. OMEGA’s WARRANTY adds an additional one (1) month grace period to the normal one (1) year product warranty to cover handling and shipping time. This ensures that OMEGA’s customers receive maximum coverage on each product.
  • Page 60 Where Do I Find Everything I Need for Process Measurement and Control? OMEGA…Of Course! Shop online at www.omega.com TEMPERATURE Thermocouple, RTD & Thermistor Probes, Connectors, Panels & Assemblies Wire: Thermocouple, RTD & Thermistor Calibrators & Ice Point References Recorders, Controllers & Process Monitors Infrared Pyrometers PRESSURE, STRAIN AND FORCE Transducers &...

Table of Contents