Page 2 - OMEGAnet
Servicing North America: USA: One Omega Drive, P.O. Box 4047 ISO 9001 Certified Stamford CT 06907-0047TEL: (203) 359-1660 FAX: (203) 359-7700 e-mail: [email protected] Canada: 976 BergarLaval (Quebec) H7L 5A1, CanadaTEL: (514) 856-6928 FAX: (514) 856-6886 e-mail: [email protected] For immediate technical o...
Page 3 - Software Manual
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 6 - Introduction; Libraries for A826 PG card
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), th...
Page 7 - References
OME-A-826PG Software Manual [Win 95/98/NT] 1.1 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. • Res...
Page 8 - Range Configuration Code; The AD converter of the OME-A-826PG is 16 bits under all; If the analog input range is configured to; So choose the correct configuration code can achieve; OME-A-826PG Input Signal Range Configuration Code Table; Input Signal Range; Bipolar
OME-A-826PG Software Manual [Win 95/98/NT] 1.2 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...
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 <-- Dynamic Linking Library | |--\A826.Vxd <-- Device driver for A826PG | |--\BCB3 | | |--\A826.h <-- Header file | | |--\A826.Lib <-- Import Library for BCB | | +--\A826u...
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 '*******************************************...
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; TI...
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; These functions in DLL are divided into several groups as follows:
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. The AD DMA Mode functions T...
Page 35 - TEST Function; short; float; Input
OME-A-826PG Software Manual [Win 95/98/NT] 3.1 TEST Function 3.1.1 SHORT_SUB_2 z Description : Compute C=nA-nB in short format, Short=16 bits sign integer. This function is provided for testing purpose. z Syntax : short SHORT_SUB_2(short nA, short nB); z Parameter : nA : [ Input ] Short nB : [ Input...
Page 41 - wBuf
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 convers...
Page 42 - fBuf
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 conve...
Page 43 - can not detect; are; output range is
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 ...
Page 44 - Driver Functions
OME-A-826PG Software Manual [Win 95/98/NT] 3.4 Driver Functions 3.4.1 A826_DriverInit z Description : This subroutine will open the device driver. z Syntax : WORD A826_DriverInit (void); z Parameter : Void z Return Value : NoError : successful in opening the device driver DriverOpenError : fail in o...
Page 45 - wDownCount; wBase
OME-A-826PG Software Manual [Win 95/98/NT] 3.4.3 A826_DELAY • Description: This subroutine will delay wDownCount mS(machine independent timer). z Syntax: WORD A826_DELAY(WORD wBase, WORD wDownCount); • Parameter: wBase : [ Input ] I/O port base address, for example, 0x220 wDownCount : [ Input ] Numb...
Page 46 - AD, Interrupt functions
OME-A-826PG Software Manual [Win 95/98/NT] 3.5 AD, Interrupt functions 3.5.1 A826_InstallIrq z Description: This subroutine will install interrupt handler for a specific IRQ level n. z Syntax: WORD A826_InstallIrq(WORD wBase, WORD wIrq, HANDLE *hEvent, DWORD dwCount ); z Parameter: wBase : [ Input ]...
Page 47 - Output
OME-A-826PG Software Manual [Win 95/98/NT] 3.5.3 A826_AD_INT_Stop z Description: This subroutine will stop the interrupt transfer and remove the installed interrupt handler. z Syntax: WORD A826_AD_INT_Stop(void ) z Parameter: void. z Return Value: NoError : successful INTStopError : fail 3.5.4 A826_...
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: A826_DriverInit CreateEvent(…) A826_InstallIrq( … ) ……… A826_AD_INT_Start( ...
Page 51 - The DMA mechanism supports the Windows 95/98 only.
OME-A-826PG Software Manual [Win 95/98/NT] 3.6 AD , DMA functions The DMA mechanism supports the Windows 95/98 only. 3.6.1 A826_AD_DMA_InstallIrq z Description: This subroutine will install interrupt handler for a specific IRQ Level n and programming a DMA controller (8237) to handle DMA transfer fo...
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: A826_DriverInit ……. A826_AD_DMA_InstallIrq ( … ) ……… A826_AD_DMA_Start ( … ) …… A8...
Page 56 - Next Loop
OME-A-826PG Software Manual [Win 95/98/NT] Next Loop Using the A826_AD_DMA_RemoveIrq() to remove IRQ handler. 8237 ADC Sampling rate define by c1,c2 INT_Handler( ) BufferB BufferA system area Application area Using the A826_AD_DMA_Stop() to release system DMA buffer. Using A826_AD_DMA_Start to alloc...
Page 57 - Program Architecture
OME-A-826PG Software Manual [Win 95/98/NT] 4 Program Architecture Access/Control the Device Access/Control the Device Close the Device-Driver Initialize the Device-Driver A826_DriverInit() …. A826_InputByte( … ) …….. …….. A826_OutputByte(…) ….. A826_DriverClose() Device Control Hardware Devices Serv...
Page 58 - Contact Us; way to report problems is send electronic mail to
OME-A-826PG Software Manual [Win 95/98/NT] Date: Aug-15-2000 Ver: 2.2 Page 56 5 Contact Us Technical support is available at no charge as described below. The best way to report problems is send electronic mail to [email protected] on the Internet. When reporting problems, please include the following i...
Page 59 - RETURN REQUESTS/INQUIRIES
WARRANTY/ DISCLAIMER OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for aperiod 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...