Omega Engineering OME-A826PG Bedienungsanleitung

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung Omega Engineering OME-A826PG an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von Omega Engineering OME-A826PG, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung Omega Engineering OME-A826PG die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung Omega Engineering OME-A826PG. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung Omega Engineering OME-A826PG sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts Omega Engineering OME-A826PG
- Den Namen des Produzenten und das Produktionsjahr des Geräts Omega Engineering OME-A826PG
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts Omega Engineering OME-A826PG
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von Omega Engineering OME-A826PG zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von Omega Engineering OME-A826PG und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service Omega Engineering finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von Omega Engineering OME-A826PG zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts Omega Engineering OME-A826PG, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von Omega Engineering OME-A826PG widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

    www .omega.com e-mail: info@omega.com U ser ’ s Guide OME-A826PG ISA-Bus Multi-Functional Board Software Manual Shop online at[...]

  • Seite 2

    Servicing Nor th America: USA: One Omega Drive, P.O. Box 4047 ISO 9001 Certified Stamford CT 06907-0047 TEL: (203) 359-1660 FAX: (203) 359-7700 e-mail: info@omega.com Canada: 976 Bergar Laval (Quebec) H7L 5A1, Canada TEL: (514) 856-6928 FAX: (514) 856-6886 e-mail: info@omega.ca For immediate technical or application assistance: USA and Canada: Sale[...]

  • Seite 3

    OME-A-826P G Software M anual [Win 9 5/98/NT] OME-A-826PG Software Manual [ For Windows 95/98/NT ] Date: Aug-15-2000 Ver: 2.2 Page 1[...]

  • Seite 4

    OME-A-826P G Software M anual [Win 9 5/98/NT] Table of Contents 1 Introduction ................................................................................................................. .4 1.1 References ............................................................................................................. 5 1.2 Range Configuration Cod[...]

  • Seite 5

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.4.4 A826_Check_Address .............................................................................. 43 3.5 AD, Interrupt functions........................................................................................ 44 3.5.1 A826_InstallIrq ........................................................[...]

  • Seite 6

    OME-A-826P G Software M anual [Win 9 5/98/NT] 1 Introduction The OME-A-826PG is a multifunction, 16 bi ts 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 anal og input signal range configuration c[...]

  • Seite 7

    OME-A-826P G Software M anual [Win 9 5/98/NT] 1.1 References Please refer to the following user manuals: • SoftInst.pdf: Describes how to install th e software package under Windows 95/98/NT. • CallDll.pdf: Describes how to call the DLL functions with VC ++5, VB5, Delphi3 and B orland C++ Builder 3. • ResCheck.pdf: Describes ho w to check the[...]

  • Seite 8

    OME-A-826P G Software M anual [Win 9 5/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 range, the resolution will be 1.22 mV. If th[...]

  • Seite 9

    OME-A-826P G Software M anual [Win 9 5/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.cpp <-- Some function for BCB | |--Delphi3[...]

  • Seite 10

    OME-A-826P G Software M anual [Win 9 5/98/NT] 2.1 For C user 2.1.1 A826.H (for Win 95/98) #ifdef __cplusplus #define EXPORTS extern "C" __decls pec (dllimport) #else #define EXPORTS #endif /**************** * DEFINE A826 RELATIVE ADDRESS *****************/ #define TIMER0 0x00 #define TIMER1 0x01 #define TIMER2 0x02 #define TIMER_MODE 0x03[...]

  • Seite 11

    OME-A-826P G Software M anual [Win 9 5/98/NT] #define NoError 0 #define DriverOpenError 1 #define DriverNoOpe n 2 #define GetDriverVersionError 3 #define InstallIrqError 4 #define ClearIntCountError 5 #define GetIntCountError 6 #define AdError1 100 #define AdError2 -200.0 #define InstallBufError 9 #define GetBufferError 10 #define INTStartError 11 [...]

  • Seite 12

    OME-A-826P G Software M anual [Win 9 5/98/NT] //********* IRQ Functios ******* ***** EXPORTS WORD CALLBACK A826_Inst allIrq (WORD wBase, WORD wIrq, HANDLE *hEvent, DWORD dwCount); EXPORTS WORD CALLBACK A826_A D_INT_Start(WORD Ch, WORD Gain, WORD c1, WORD c2); EXPORTS WORD CALLBACK A826_A D_INT_Stop(void); EXPORTS WORD CALLBACK A826_GetInt Count(DWO[...]

  • Seite 13

    OME-A-826P G Software M anual [Win 9 5/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 [...]

  • Seite 14

    OME-A-826P G Software M anual [Win 9 5/98/NT] #define NoError 0 #define DriverOpenError 1 #define DriverNoOpen 2 #define GetDriverVersionE rror 3 #define InstallIrqError 4 #define ClearIntCountError 5 #define GetIntCountError 6 #define AdError1 100 #define AdError2 -200 #define InstallBufError 9 #define AllocateMemoryError 10 #define CardTypeError [...]

  • Seite 15

    OME-A-826P G Software M anual [Win 9 5/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 * //*----------- -------- -----[...]

  • Seite 16

    OME-A-826P G Software M anual [Win 9 5/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[...]

  • Seite 17

    OME-A-826P G Software M anual [Win 9 5/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 Ca rd '***************************** **************** **********************[...]

  • Seite 18

    OME-A-826P G Software M anual [Win 9 5/98/NT] Global Const A826_BI_2 = 1 Global Const A826_BI_4 = 2 Global Const A826_BI_8 = 3 Global Const A826_UNI_2 = 5 Global Const A826_UNI_4 = 6 Global Const A826_UNI_8 = 7 Global Const NoError = 0 Global Const DriverOpenError = 1 Global Const DriverNoOpen = 2 Global Const GetDriverVersionError = 3 Global Const[...]

  • Seite 19

    OME-A-826P G Software M anual [Win 9 5/98/NT] Declare Sub A826_Uni 10_DA Lib "A826.D LL" (ByVal wBase As Integer, _ ByVal wChannel As Integer, ByVal fValue As Single) '******* Driver Functions *********** Declare Function A826_Dri verInit Lib "A826.DLL" () As Integer Declare Sub A826_Drive rCl ose Lib "A826.DLL" ([...]

  • Seite 20

    OME-A-826P G Software M anual [Win 9 5/98/NT] 2.2.2 A826.BAS (for Win NT) Attribute VB_Name = "A826" '***************************** **************** *********************** ************* ' The Declare of A826.DLL for A826 DAQ Ca rd '***************************** **************** *********************** ************* Declare[...]

  • Seite 21

    OME-A-826P G Software M anual [Win 9 5/98/NT] Global Const NoError = 0 Global Const DriverOpenError = 1 Global Const DriverNoOpen = 2 Global Const GetDriverVersionError = 3 Global Const InstallIrqError = 4 Global Const ClearIntCountError = 5 Global Const GetIntCountError = 6 Global Const AdError1 = 100 Global Const AdError2 = -200# Global Const Ins[...]

  • Seite 22

    OME-A-826P G Software M anual [Win 9 5/98/NT] '******* Driver Functions *********** Declare Function A826_Dri verInit Lib "A826.DLL" () As Integer Declare Sub A826_Drive rCl ose Lib "A826.DLL" () Declare Function A826_DELAY Lib "A826.DL L" (ByVal wBase As Integer, _ ByVal wDownCount As Integer) As Integer Declare [...]

  • Seite 23

    OME-A-826P G Software M anual [Win 9 5/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 '*---------- -------- -------- ---------- -------- -------[...]

  • Seite 24

    OME-A-826P G Software M anual [Win 9 5/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 RE LATIVE ADDRESS *****************/ TIMER0 = $00; TIMER1 = $01; TIMER2 = $02; TIMER_MODE = $03; AD[...]

  • Seite 25

    OME-A-826P G Software M anual [Win 9 5/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 = 0; DriverOpenError = 1; DriverNoOpen = 2; GetDriverVersionError = 3; InstallIrqError = 4; ClearIntCountError = 5; GetIntCountError = 6; AdError1 = 100; AdError2 = -20[...]

  • Seite 26

    OME-A-826P G Software M anual [Win 9 5/98/NT] //********* Driver Functios ************ Function A826_DriverInit:WORD; StdCall; Procedure A826_DriverClo se; StdCall; Function A826_DELAY(wBase,wDownCount:WO RD):WORD; StdCall; Function A826_Check_A ddress( wBase:WORD):WORD; StdCall; Procedure A826_OutputByte(wPortAddr:W ORD; bO utputVal:Byte); StdCall[...]

  • Seite 27

    OME-A-826P G Software M anual [Win 9 5/98/NT] Function A826_GetDriverVersion; exter nal 'A826.DLL' name 'A826_ GetDriverVersion'; Function A826_InstallIrq; ex ternal 'A826.DLL' name 'A826_InstallIrq'; Function A826_GetBuffer; external 'A826.DLL' name 'A826_GetBuffer'; Function A826_GetFloa[...]

  • Seite 28

    OME-A-826P G Software M anual [Win 9 5/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 RE LATIVE ADDRESS *****************/ TIMER0 = $00; TIMER1 = $01; TIMER2 = $02; TIMER_MODE = $03; AD_LO = $04; //* Analog to Di[...]

  • Seite 29

    OME-A-826P G Software M anual [Win 9 5/98/NT] A826_BI_8 = 3; A826_UNI_2 = 5; A826_UNI_4 = 6; A826_UNI_8 = 7; NoError = 0; DriverOpenE rror = 1; DriverNoOpen = 2; GetDriverVersionError = 3; InstallIrqError = 4; ClearIntCountError = 5; GetIntCountError = 6; AdError1 = 100; AdError2 = -200.0; InstallBufError = 9; AllocateMemoryError = 10; CardTypeErro[...]

  • Seite 30

    OME-A-826P G Software M anual [Win 9 5/98/NT] //********* IRQ Functios ************ Function A826_InstallIrq (wBase,wIrq:WO RD; var hEvent:LongIn t; dwCount:LongInt):WO RD; StdCall; Function A826_AD_INT_Start(Ch,Gain ,c1,c2:WORD):WORD; StdCall; Function A826_AD_INT_Stop:WO RD; StdCall; Function A826_GetIntCount(var dwVal:LongInt): WORD; StdCall; Fu[...]

  • Seite 31

    OME-A-826P G Software M anual [Win 9 5/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 -10[...]

  • Seite 32

    OME-A-826P G Software M anual [Win 9 5/98/NT] 2.3.4 Delphi Demo Result : Date: Aug-15-2000 Ver: 2.2 Page 30[...]

  • Seite 33

    OME-A-826P G Software M anual [Win 9 5/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 The functions of test listing as follows: 1. SHO[...]

  • Seite 34

    OME-A-826P G Software M anual [Win 9 5/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_St[...]

  • Seite 35

    OME-A-826P G Software M anual [Win 9 5/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 ] Short z Return Value : Return = nA - nB Î S[...]

  • Seite 36

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.1.3 A826_Get_DLL_Version z Description : Read the software version z Syntax : WORD A826_Get_DLL_Version(void); z Parameter : Void z Return Value : return=0x100 Î Version 1.0 3.1.4 A826_GetDriverVersion z Description : This subroutine will get the version number about the virtual device driver. z Synt[...]

  • Seite 37

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.2 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 • Return Value : 16 bits data read from the digital input port 3[...]

  • Seite 38

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.2.3 A826_OutputByte • Description : This subroutine will send the 8 bi ts data to the desired I/O port. • Syntax : void A826_OutputByte(WORD wP ortAddr, UCHAR bOutputVal); • Parameter : wPortAddr : [ Input ] I/O port address, fo r example, 0x220 bOutputVal : [ Input ] 8 bits data send to I/O por[...]

  • Seite 39

    OME-A-826P G Software M anual [Win 9 5/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, fo r example, 0x220 • Return Value : 16 bits data with the leading 8 bits are all 0 3.2[...]

  • Seite 40

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3 A/D , D/A Functions 3.3.1 A826_AD • Description : This subroutine will perform a A/D conver sion by pollin g. The A/D converter is 16 bits for A82PG. This subroutine will co mpute the result according to the configuration code . • Syntax : float A826_AD(WORD wBase, WORD wChannel, WORD wConfig); [...]

  • Seite 41

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3.3 A826_ADs_Hex • Description : This subroutine will perform a number of A/D conver sions by polling. This subroutine is very similar to A826_AD except that this subroutine will perform wCount of conversions inst ead of just one conversion. The A/D conversing at the ISA bus’s max. speed. The samp[...]

  • Seite 42

    OME-A-826P G Software M anual [Win 9 5/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 inst ead of just one conversion. The A/D conversing at the ISA bus’s max. speed. The sam[...]

  • Seite 43

    OME-A-826P G Software M anual [Win 9 5/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. This subroutine c a[...]

  • Seite 44

    OME-A-826P G Software M anual [Win 9 5/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 opening the device driver. 3.4.2 A826_DriverClos[...]

  • Seite 45

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.4.3 A826_DELAY • Description: This subroutine will delay wDownCount mS(machine independent timer). z Syntax: WORD A826_DELAY(WORD wBas e, WORD wDownCount); • Parameter: wBase : [ Input ] I/O port base address, for example, 0x220 wDownCount : [ Input ] Number of mS will be delay • Return Value: N[...]

  • Seite 46

    OME-A-826P G Software M anual [Win 9 5/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 ] The I/O port base address for A826 card. wIrq [...]

  • Seite 47

    OME-A-826P G Software M anual [Win 9 5/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_GetIntCount z Description: This subroutine will[...]

  • Seite 48

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.5.5 A826_GetBuffer z Description: This subroutine will copy the transfe rred interrupted data into the user’s buffer. z Syntax: WORD A826_GetBuffer(DWORD dwNum, short wBuffer[] ) z Parameter: dwNum : [ Input ] the entry no to transfer. *wBuffer : [ Output ] the address of wBuffer, z Return Value: No[...]

  • Seite 49

    OME-A-826P G Software M anual [Win 9 5/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 pr ogram these function is giver as follows: A826_Drive rInit CreateEvent(… ) A826_I nstallIrq( … ) ……… A826_AD_INT_Start( … ) …… WaitForSingleObject([...]

  • Seite 50

    OME-A-826P G Software M anual [Win 9 5/98/NT] Yes No INT_Handler( ) Using the A826_AD_INT_Sto p() to stop the interrupt transfer and remove the interrupt ha ndler. Waiting for the signaled eve nt object by using WaitFor SingleObject( ) BufferB BufferA ADC Using A826_AD_IN T_Start to specify the A/D channel, gain and sampling rate for this interrupt[...]

  • Seite 51

    OME-A-826P G Software M anual [Win 9 5/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 transfe r for DMA Channel n. Usually, when a DMA transfer [...]

  • Seite 52

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.3 A826_AD_DMA_Start z 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. z Syntax: WORD A826_AD_DMA_Start(WORD Ch, WORD Gain, WORD c1, Word c2, int Count, WORD wPassO[...]

  • Seite 53

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.4 A826_AD_DMA_Stop z Description: This subroutine will free the allocat ed DMA buffer that in system area. z Syntax: WORD A826_AD_DMA_Stop(void ) z Parameter: void. z Return Value: NoError : successful DmaStopError : fail 3.6.5 A826_AD_DMA_IsNotFinished z Description: This subroutine is to detect if[...]

  • Seite 54

    OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.6 A826_AD_DMA_GetBuffer z Description: This subroutine will copy the transferr ed DMA data into the user’s buffer. z Syntax: WORD A826_AD_DMA_GetBuffe r( short wBuffer[] ) z Parameter: *wBuffer : [ Output ] the address of wBuffer, z Return Value: The returned bytes no : when successful DmaGetDataE[...]

  • Seite 55

    OME-A-826P G Software M anual [Win 9 5/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_Drive rInit ……. A826_AD_DMA_InstallI rq ( … ) ……… A826_AD_DMA_Start ( … ) …… A826_AD _DMA_IsNotFi nished ([...]

  • Seite 56

    OME-A-826P G Software M anual [Win 9 5/98/NT] Next Loop Using the A82 6_AD_DMA_ RemoveIrq() to remove IR Q handle r. 8237 ADC Sampling rate define by c1,c2 INT_Handler( ) BufferB BufferA system area Application area Using the A82 6_AD_DMA_ Stop() to release s y stem DMA buffer. Using A826_AD_DMA_Start to allocate a system DM A buffer an d programm [...]

  • Seite 57

    OME-A-826P G Software M anual [Win 9 5/98/NT] 4 Program Architecture Access/Control the Device Access/Control the Device Close the Device-Driver Initialize the Device-Driver A826_Drive rInit() …. A826_InputByte( … ) …….. …….. A826_OutputByte(…) ….. A826_Driver Close() Device Control Hardware Devices Services Call into Kernel-Mode Fu[...]

  • Seite 58

    OME-A-826P G Software M anual [Win 9 5/98/NT] Date: Aug-15-2000 Ver: 2.2 Page 56 5 Cont act Us Technical support is available at no charge as described below. The best way to report problems is send electronic mail to das@omega.com on the Internet. When reporting problems, please in clude the following information: 1) Is the problem reproducible? I[...]

  • Seite 59

    W ARRANTY / DISCLAIMER 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. OME GA ’ s W ARRANTY 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 cust[...]

  • Seite 60

    M4035/0104 Where Do I Find Ever ything I Need for Pr ocess Measurement and Control? OM EGA…Of Course! Shop online at www .omega.com TEMPERA TURE   Thermocouple, RTD & Thermistor Probes, Connectors, Panels & Assemblies   Wire: Thermocouple, RTD & Thermistor   Calibrators & Ice Point References   Recorders, C[...]