Home
OME-PCI-1002
Contents
1. Hardware Interrupt Signal Please refer to the following Windows API functions The following descriptions of these functions were copied from MSDN Refer to MSDN for complete details CreateEvent The CreateEvent function creates or opens a named or unnamed event object HANDLE CreateEvent pointer to security attributes LPSECURITY_ ATTRIBUTES IpEventAttributes BOOL bManualReset flag for manual reset event BOOL blnitialState flag for initial state LPCTSTR lpName pointer to event object name Page 42 OME PCI 1002 Software Manual for Windows Create Thread The Create Thread function creates a thread to execute within the virtual address space of the calling process To create a thread that runs in the virtual address space of another process use the CreateRemote Thread function HANDLE Create Thread pointer to security attributes LPSECURITY ATTRIBUTES IpThreadAttributes DWORD dwStackSize initial thread stack size pointer to thread function LPTHREAD_ START ROUTINE IpStartAddress LPVOID IpParameter argument for new thread DWORD dwCreationFlags creation flags LPDWORD IpThreadld pointer to receive thread ID WaitForSingleObject The WaitForSingleObject function returns when one of the following occurs e The specified object is in the signaled state e The time out interval elapses To enter an alert able wait state use the WaitForSingleObjectEx function
2. Return P100X_NoError successful P100X_GetBufferError failure 4 6 6 P100X_GetFloatBuffer Description This subroutine will copy the data into the user s buffer in floating point format Syntax WORD P100X_GetFloatBuffer DWORD dwNum float fAdVal Parameter wNum Input The total number of data points to transfer to the user sbuffer fAdVal Output Address of fAdVals Array of float that will contain the data as a voltage value floating point The user must allocate sufficient space for the buffer This function will fill the buffer with the data The user cans access the data after calling this function Return P100X_NoError successful P100X_GetBufferError failure Page 39 OME PCI 1002 Software Manual for Windows 4 6 Architecture of Interrupt mode The flow chart below shows the steps for programming the A D interrupt functions P100X Driverlnit Install the IRQ Copy data into user s buffer Stop the interrupt transfer and remove the interrupt handler P100X DriverClose Page 40 OME PCI 1002 Software Manual for Windows Next Loop Sampling rate defined by wFreqDiv Application Area Page 41 No OME PCI 1002 Software Manual for Windows CreateThread Thread WaitForSingleObject Create Event for Device Driver CreateEvent P100X_InstallIrq Set Event to Signal Device Hardware Driver Device
3. User s Guide gt www omega com e mail info omega com OME PCI 1002 PCI Data Acquisition Board Windows Software Manual omega com CEOMEGA OMEGAnet Online Service Internet e mail www omega com info omega com USA ISO 9001 Certified Canada Servicing North America One Omega Drive P O Box 4047 Stamford CT 06907 0047 TEL 203 359 1660 FAX 203 359 7700 e mail info omega com 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 Mexico Benelux Czech Republic France Germany Austria United Kingdom ISO 9002 Certified Sales Service 1 800 826 6342 1 800 TC OMEGA Customer Service 1 800 622 2378 1 800 622 BEST Engineering Service 1 800 872 9436 1 800 USA WHEN TELEX 996404 EASYLINK 62968934 CABLE OMEGA En Espa ol 001 203 359 7803 e mail espanol omega com FAX 001 203 359 7807 info omega com mx Servicing Europe Postbus 8034 1180 LA Amstelveen The Netherlands TEL 31 0 20 3472121 FAX 31 0 20 6434643 Toll Free in Benelux 0800 0993344 e mail sales omegaeng nl Frystatska 184 733 01 Karvin Czech Republic TEL 420 0 59 6311899 FAX 420 0 59 6311114 Toll Free 0800 1 66342 e mail info omegashop cz 11 rue Jacques Cartier 78280 Guyancourt France TEL 33 0 1 61 37 29 00 FAX 33 0 1 30 57 54 27 Toll F
4. 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 customers receive maximum coverage on each product If the unit malfunctions it must be returned to the factory for evaluation OMEGA s Customer Service Department will issue an Authorized Return AR number immediately upon phone or written request Upon examination by OMEGA if the unit is found to be defective it will be repaired or replaced at no charge OMEGA s WARRANTY does not apply to defects resulting from any action of the purchaser includ ing but not limited to mishandling improper interfacing operation outside of design limits improper repair or unauthorized modification This WARRANTY is VOID if the unit shows evidence of having been tampered with or shows evidence of having been damaged as a result of excessive corrosion or current heat moisture or vibration improper specification misapplication misuse or other operating conditions outside of OMEGA s control Components which wear are not warranted including but not limited to contact points fuses and triacs OMEGA is pleased to offer suggestions on the use of its various products However OMEGA neither assumes responsibility for any omissions or errors nor assumes liability for any damages that result from the use of its products in accordance with information provided by OM
5. Do external P100X DLL name P100X_Do function P100X_ Di external P100X DLL name P100X_ Di function P100X_SetChannelConfig external P100X DLL name P100X_SetChannelConfig function P100X_Polling external P100X DLL name P100X_ Polling function P100X_AdPolling external P100X DLL name P100X_AdPolling function P100X_AdsPolling external P100X DLL name P100X_AdsPolling function P100X_AdsPacer external P100X DLL name P100X_AdsPacer function P100X_Installlrq external P100X DLL name P100X_Installlrq function P100X_INT_AdStart external P100X DLL name P100X_INT_AdStart function P100X_INT_AdStop external P100X DLL name P100X_INT_AdsStop function P100X_GetintCount external P100X DLL name P100X_GetintCount function P100X_GetBuffer external P100X DLL name P100X_GetBuffer function P100X_GetFloatBuffer external P100X DLL name P100X_GetFloatBuffer end Page 17 OME PCI 1002 Software Manual for Windows 2 6 P100Xu PAS unit P100Xu interface Function P100X_AD2F hex HiLo Gain Word Single StdCall implementation uses math Return voltage value or 100 0 if any error occurs or parameter is out of range HiLo 1 gt High Gain 0 gt Low Gain 7 Gain 0 3 tus ies sta tas esis ein ees ce tmnt ste cst tn cn ac cerca ec st ana up gen cata rn evade Function P100X_AD2F hex HiLo Gain Word Single Var ZeroBas
6. Integer Declare Function P100X_INT_AdStop Lib P100X DLL As Integer Declare Function P100X_GetIntCount Lib P100X DLL dwVal As Long _ As Integer Page 13 OME PCI 1002 Software Manual for Windows 2 4 P100Xu BAS Return voltage value or 100 0 if any error occurs or parameter is out of range HiLo 1 gt High Gain 0 gt Low Gain Gain 0 3 Function P100X_AD2F ByVal hex HiLo Gain As Integer As Single Dim ZeroBase BullRange VoltageRange As Single ZeroBase 2048 FullRange 2048 VoltageRange 10 Gain Gain Mod 16 If Gain lt 0 Or Gain gt 3 Then P100X_AD2F 100 Exit Function End lf If HiLo 0 Then Low Gain P100X_AD2F hex ZeroBase FullRange VoltageRange 2 Gain Else P100X_ADZ2F hex ZeroBase FullRange VoltageRange 10 Gain End lf End Function Page 14 OME PCI 1002 Software Manual for Windows 2 5 P100X PAS unit P100X interface type PSingle Single type PWord Word const return code P100X_NoError 0 P100X_DriverHandleError 1 P100X_DriverCallError 2 P100X_AdControllerError 3 P100X_ConfigCodeError 4 P100X_DriverNoOpen Y P100X_AdPolling TimeOut 6 P100X_FindBoardError T P100X_AdChannelError 8 P100X_DaChannelError 9 P100X_InvalidDelay 10 P100X_Delay TimeOut 11 P100X_InvalidData 12 P100X_TimeoutError 13 P100X_ExceedBoardNumber 14 P100X_NotFoundBoard 15 P100X_Op
7. in this case During the installation process you will also be prompted to enter the operating system you will be using After installation the following folders will be created on your computer 5 PCI 1002 wind File Edit View Go Favorites Help Address C C DAQPro PCI 1 002 wind 9 objects E My Computer Page 5 OME PCI 1002 Software Manual for Windows Demo Folder Contains all demonstration programs including their source code Examples are provided for Visual C Borland C Visual Basic and Delphi Please note The VC demos are developed with VC 4 0 After setting up the environment use the NMAKE EXE to compiling and linking the demo code For Example C P1002 DEMO VC nmake f demo mak Driver Folder Contains software drivers include files and definition files for the programming languages Manual Folder Contains hardware user manuals software user manuals and technical notes Diag Folder Contains card diagnostic programs Inf Folder Contains tech notes and INF file for the plug and play installation only available for operating systems that support plug and play Page 6 OME PCI 1002 Software Manual for Windows 1 2 References Please also refer to the following user manuals e Softinst pdf To install the software package under Windows 95 98 NT 2000 XP e CallDIl pdf To call the DLL functions with Visual C Visual Basic Delphi and Borland C e ResCheck pdf To chec
8. neta eee teen ne ee re A ee ne me een ene nC ee eee ree ee A E ES ro A A a s 3 3 A rer ree T eee Te enn ne en Te a ee eee Te io se sruauiceiseue taeda nade e rues onesies ners As Descriptions Of PUCHA ew oe ne Aion 4 1 The Configuration Code Table occccccccnnnccnnnononnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn nana nnnnns 4 2 We Test Puma Oi sis aces a nae ec oes PUOQOX FloatSUb 2 cn PELODI NOR UO aeran ats ao eas ace ecto estes ee a aa 4 2 3 POO Xe CEDIN EES O10 5 3 62 A A A een a PLOOX Get Diy Ci Vi CUI Oc al 4 3 TEDO TUNO cise O nag ae Tm aes AA AP A AX A A AX 44 Tit Drcdamode Functions ie PILOOX Set bane lC Onda 4 4 2 POX Polin asd ct a 4 4 3 PLOOX MIE OMI dial OTE ONA 4 4 4 PLOOX Adol dalla cnc 4 4 5 p KOO AdS eas Clos aiaeei i er eee oe ee ee een eee ee ee eee ee eee eee ee 4 5 Diver Pancita POON Dd OS PEDIA DI cee Ae hae tli ie a A ee i ll ae eee 4 5 3 PIGOX GeitC ono AddressS pace diia P10O0X WhichBoardACtVe does 4 5 5 PHOOX SA CUVE e A IP TOO No eee 46 We Tine re in PR A ys eeeeeepmneemine nee eceme teeter S IP OO Ge CL Oa see ae bee 4 6 3 PT OOK STINTS AGS ar ias PLOOX INT AGS p A LN 4 6 5 1223 018 GS cis A ee ee ee eee PIOOX Geth loath utter sh cc2 cei sie etcetera tein teste dl eae ends s riche i a ccdial etices 4 6 7 AT CMItECHIEE OF INLETTUPt NO Cixi in5 a5 255s esas he da dale ys ie tadeacabea ey eeg abe a 3o Propran NTC MWe CUS 5 scans eeestess Sekt a a E dl eokee
9. repair requests inquiries to the OMEGA Customer Service Department BEFORE RETURNING ANY PRODUCT S TO OMEGA PURCHASER MUST OBTAIN AN AUTHORIZED RETURN AR NUMBER FROM OMEGA S CUSTOMER SERVICE DEPARTMENT IN ORDER TO AVOID PROCESSING DELAYS The assigned AR number should then be marked on the outside of the return package and on any correspondence The purchaser is responsible for shipping charges freight insurance and proper packaging to prevent breakage in transit FOR WARRANTY RETURNS please have the FOR NON WARRANTY REPAIRS consult OMEGA following information available BEFORE for current repair charges Have the following contacting OMEGA information available BEFORE contacting OMEGA L Purchase Order number under which the product 1 Purchase Order number to cover the COST was PURCHASED of the repair 2 Model and serial number of the product under 2 Model and serial number of the product and warranty and 3 Repair instructions and or specific problems 3 Repair instructions and or specific problems relative to the product relative to the product OMEGA s policy is to make running changes not model changes whenever an improvement is possible This affords our customers the latest in technology and engineering OMEGA is aregistered trademark of OMEGA ENGINEERING INC Copyright 2002 OMEGA ENGINEERING INC All rights reserved This document may not be copied photocopied reproduced translated or reduced to any electro
10. 100X_WhichBoardActive Lib P100X DLL As Integer Page 12 OME PCI 1002 Software Manual for Windows Declare Sub P100X_SetupTimer Lib P100X DLL _ ByVal wChannel As Integer ByVal wCoef As Integer Declare Function P100X_Delay Lib P100X DLL _ ByVal wOownCount As Integer As Integer Function of DI DO Declare Sub P100X_Do Lib P100X DLL ByVal wOutData As Integer Declare Function P100X_Di Lib P100X DLL wDiData As Integer As Integer Function of AD Declare Function P100X_SetChannelConfig Lib P100X DLL _ ByVal wAdChannel As Integer ByVal wConfig As Integer As Integer Declare Function P100X_Polling Lib P100X DLL _ wAdVal As Integer As Integer Declare Function P100X_AdPolling Lib P100X DLL _ fAdVal As Single As Integer Declare Function P100X_AdsPolling Lib P100X DLL _ fAdVal As Single ByVal wNum As Integer As Integer Declare Function P100X_AdsPacer Lib P100X DLL fAdVal As Single _ ByVal wNum As Integer ByVal wSamplingDiv As Integer As Integer Function of Interrupt Declare Function P100X_Installlrq Lib P100X DLL _ hEvent As Long ByVal dwCount As Long As Integer Declare Function P100X_GetBuffer Lib P100X DLL _ ByVal dwNum As Long wBuf As Integer As Integer Declare Function P100X_GetFloatBuffer Lib P100X DLL _ ByVal dwNum As Long fAdVal As Single As Integer Declare Function P100X_INT_AdStart Lib P100X DLL _ ByVal Ch As Integer ByVal Gain As Integer _ ByVal wFreqDiv As Integer As
11. Board 15 define P100X_OpenError 16 define P100X_FindTwoBoardError 17 define P100X_GetIntCountError 18 define P100X_InstalllrqError 19 define P100X_AllocateMemoryError 20 OONDARWN O EXPORTS float CALLBACK P100X_FloatSub float fA float fB EXPORTS short CALLBACK P100X_ShortSub short nA short nB EXPORTS WORD CALLBACK P100X_GetDllVersion void EXPORTS WORD CALLBACK P100X_DriverInit WORD wTotalBoards EXPORTS void CALLBACK P100X_DriverClose void EXPORTS WORD CALLBACK P100X_GetDriverVersion WORD wDriverVersion EXPORTS WORD CALLBACK P100X_GetIrqNo WORD IrqNo EXPORTS WORD CALLBACK P100X_GetConfigAddressSpace WORD wBoardNo WORD wAddress0O WORD wAddress1 WORD wAddress2 EXPORTS WORD CALLBACK P100X_ActiveBoard WORD wBoardNo EXPORTS WORD CALLBACK P100X_WhichBoardActive void Page 9 OME PCI 1002 Software Manual for Windows EXPORTS void CALLBACK P100X_SetupTimer WORD wChannel WORD wCoef EXPORTS WORD CALLBACK P100X_Delay WORD wDownCount EXPORTS void CALLBACK P100X_Do WORD wOutData EXPORTS WORD CALLBACK P100X_Di WORD wDiData EXPORTS WORD CALLBACK P100X_SetChannelConfig WORD wAdChannel WORD wConfig EXPORTS WORD CALLBACK P100X_Polling WORD wAdVal EXPORTS WORD CALLBACK P100X_AdPolling float fAdVal EXPORTS WORD CALLBACK P100X_AdsPolling float fAdVal WORD wNum EXPORTS WORD CALLBACK P100X_AdsPacer float fAdVal WORD wNum WORD wSamplingDiv EXPORTS WORD CALLBACK P100
12. EGA either verbal or written OMEGA warrants only that the parts manufactured by it will be as specified and free of defects OMEGA MAKES NO OTHER WARRANTIES OR REPRESENTATIONS OF ANY KIND WHATSOEVER EXPRESS OR IMPLIED EXCEPT THAT OFTITLE AND ALL IMPLIED WARRANTIES INCLUDING ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE HEREBY DISCLAIMED LIMITATION OF LIABILITY The remedies of purchaser set forth herein are exclusive and the total liability of OMEGA with respect to this order whether based on contract warranty negligence indemnification strict liability or otherwise shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold by OMEGA is not intended to be used nor shall it be used 1 as a Basic Component under 10 CFR 21 NRC used in or with any nuclear installation or activity or 2 in medical applications or used on humans Should any Product s be used in or with any nuclear installation or activity medical application used on humans or misused in any way OMEGA assumes no responsibility as set forth in our basic WARRANTY DISCLAIM ER language and additionally purchaser will indemnify OMEGA and hold OMEGA harmless from any liability or damage whatsoever arising out of the use of the Product s in such a manner RETURN REQUESTS INQUIRIES Direct all warranty and
13. Global Const P100X_AdChannelError Global Const P100X_DaChannelError Global Const P100X_InvalidDelay Global Const P100X_DelayTimeOut Global Const P100X_InvalidData 12 Global Const P100X_TimeoutError Global Const P100X_ExceedBoardNumber Global Const P100X_NotFoundBoard Global Const P100X_OpenError Global Const P100X_FindTwoBoardError Global Const P100X_GetIntCountError Global Const P100X_InstalllrgError Global Const P100X_AllocateMemoryError HO 4 OW EENAA 2200 YO0040nNnN O O No no We UW We om ou al N 2 dl OOOND OF OW Function of Test Declare Function P100X_FloatSub Lib P100X DLL _ ByVal fA As Single ByVal fB As Single As Single Declare Function P100X_ShortSub Lib P100X DLL _ ByVal nA As Integer ByVal nB As Integer As Integer Declare Function P100X_GetDllVersion Lib P100X DLL As Integer Function of Driver Declare Function P100X_Driverlnit Lib P100X DLL _ wTotalBoards As Integer As Integer Declare Sub P100X_DriverClose Lib P100X DLL Declare Function P100X_GetDriverVersion Lib P100X DLL _ wDriverVersion As Integer As Integer Declare Function P100X_GetIrqNo Lib P100X DLL IrqNo As Integer _ As Integer Declare Function P100X_GetConfigAddressSpace Lib P100X DLL _ ByVal wBoardNo As Integer wAddrTimer As Integer _ wAddrDio As Integer wAddrAd As Integer As Integer Declare Function P100X_ActiveBoard Lib P100X DLL _ ByVal wBoardNo As Integer As Integer Declare Function P
14. Pacer float fAdVal WORD wNum WORD wSample o Parameter fAdVal Output Address of the A D data buffer Array of WORD data will be converted to voltage based on the settings of P100X_SetChannelConfig The user must allocate sufficient space for the buffer The user cans access the data after calling the function wNum Input number of AD conversions to be performed wSample Input AD sampling rate 2M wSample o Return P100X_NoError OK P100X_ExceedBoardNumber invalid board number P100X_FindBoardError cannot find the OME PCI 1002 board P100X_AdPollingTimeOut hardware timeout error Page 33 OME PCI 1002 Software Manual for Windows 4 5 Driver Functions 4 5 1 P100X_Driverlnit o Description This function will detect all OME PCI 1002 boards installed in the system This function must be called once before the other functions are called Syntax WORD P100X_Driverlnit WORD wTotalBoard Parameter wlotalBoard Output Address of wTotalBoard which will contain the number of OME PCI 1002 boards in the system wTotalBoard 0 gt Not found wTotalBoard 1 gt one OME PCI 1002 card in the system wTotalBoard n gt n OME PCI 1002 cards in the system Return P100X_NoError OK P100X_NoFoundBoard can not detect any OME PCI 1002 P100X_FindBoardError handshake check error P100X_DriverHandleError the P100X VxD open error for Windows 95 the P100X SYS open error for Windows NT P100X_Driv
15. T_AdStart P100X_INT_AdsStop P100X_GetIntCount P100X_GetBuffer P100X_GetFloatBuffer 2 3 4 O 6 The following keywords are used to describe the attributes of function parameters Keyword Parameter set by user Data value available from before calling function this parameter after calling Input Output Input Output Page 24 OME PCI 1002 Software Manual for Windows 4 1 The Configuration Code Table OME PCI 1002L Configuration Code Table Max Switching Frequency Configuration Code 1 A iw noS 0x0 8 125v 110 K S 0x03 OME PCI 1002H Configuration Code Table Max Switching Frequency Configuration Code 1 10V 44 KIS 0x10 100 0 1V 7 KIS 0x12 Page 25 OME PCI 1002 Software Manual for Windows 4 2 The Test Functions 4 2 1 P100X_FloatSub2 Description Calculates C fA fB in float format float 4 bytes floating point number This function is provided to test DLL linkage Syntax float P100X_FloatSub2 float fA float fB Parameter fA Input 4 bytes floating point value fB Input 4 bytes floating point value Return Returns the result value fA fB 4 2 2 P100X_ShortSub2 Description Calculates C nA nB in SHORT formats SHORT 16 bits signed number This function is provided to test DLL linkage Syntax short P100X_ShortSub2 Short nA Short nB Parameter nA Input 16 bit value nB Input 16 bit value Return Return
16. To wait for multiple objects use the WaitForMultipleObjects DWORD WaitForSingleObject HANDLE hHandle handle to object to wait for DWORD dwMilliseconds time out interval in milliseconds Page 43 OME PCI 1002 Software Manual for Windows 9 Program Architecture P100X_DriverInit P100X_InputByte P100X OutputByte P100X DriverClose Function Call into DLLs Development Toolkit Services Call into Kernel Mode Device Control Page 44 OME PCI 1002 Software Manual for Windows 6 Reporting Problems Technical support is provided at no charge you may contact us by telephone or email at Telephone 1 800 872 9436 Email das omega com When reporting problems please include the following information 1 Is the problem reproducible If so how 2 What platform and version are you using For example Windows 3 1 Windows for Workgroups Windows NT 4 0 etc 3 Part number of the product that you are using 4 If a dialog box with an error message was displayed please include the full text of the dialog box including the text in the title bar 5 If the problem involves other programs and or hardware devices please provide a complete description of those items 6 Other comments relative to this problem Your suggestions are welcome Page 45 usa WARRANTY DISCLAIMER OMEGA ENGINEERING INC warrants this unit to be free of defects in materials and workmanship for a period of
17. X_Installlrq HANDLE hEvent DWORD dwCount EXPORTS WORD CALLBACK P100X_GetBuffer DWORD dwNum WORD wBuf EXPORTS WORD CALLBACK P100X_GetFloatBuffer DWORD dwNum float fAdVal EXPORTS WORD CALLBACK P100X_GetIintCount DWORD dwVal EXPORTS WORD CALLBACK P100X_INT_AdStart WORD Ch WORD Gain WORD wrFreqDiv EXPORTS WORD CALLBACK P100X_INT_AdStop Page 10 OME PCI 1002 Software Manual for Windows 2 2 P100Xu C include lt math h gt Return voltage value or 100 0 if any error occurs or parameter is out of range FF HiLo 1 gt High Gain 0 gt Low Gain Gain 0 3 o float P100X_AD2F Word hex int HiLo int Gain float ZeroBase VoltageRange FullRange ZeroBase 2048 0 FullRange 2048 0 VoltageRange 10 0 Gain Gain 16 if Gain lt 0 Gain gt 3 return 100 0 if HiLo 0 Low Gain return hex ZeroBase FullRange VoltageRange pow 2 Gain else return hex ZeroBase FullRange VoltageRange pow 10 Gain Page ll OME PCI 1002 Software Manual for Windows 2 3 P100X BAS Attribute VB Name P100X return code Global Const P100X_NoError Global Const P100X_DriverHandleError Global Const P100X_DriverCallError Global Const P100X_AdControllerError Global Const P100X_ConfigCodeError Global Const P100X_DriverNoOpen Global Const P100X_AdPolling TimeOut Global Const P100X_FindBoardError
18. ber invalid board number 4 3 2 P100X Do Description This subroutine will write the 16 bit data to the DO digital output port This function addresses the current active OME PCI 1002 board Use the P100X_ActiveBoard to select the active board Syntax WORD P100X_Do WORD wDo Parameter wDo Input the 16 bit data sent to the digital output port Return P100X_NoError OK P100X ExceedBoardNumber invalid board number P100X FindBoardError cannot find OME PCI 1002 board Page 28 OME PCI 1002 Software Manual for Windows 4 4 The A D Fixed mode Functions 441 P100X_SetChannelConfig o Description This function will set the A D channel configuration code This function will also set the active A D channel for P100X_AdPolling P100X_AdsPolling and P100X_AdsPacer functions The function addresses the current active OME PCI 1002 board Use the P100X_ActiveBoard to select the active board eo Syntax WORD P100X_SetChannelConfig jWORD wChannel WORD wConfig o Parameter wChannel Input A D channel number wConfig Input Configuration code Refer to Sec 3 1 for details o Return P100X_NoError OK P100X ExceedBoardNumber invalid board number P100X_FindBoardError can not find the OME PCI 1002 board P100X_AdControllerError MagicScan controller hardware handshake error Page 29 OME PCI 1002 Software Manual for Windows 4 4 2 P100X_Polling Description Performs a single A D conve
19. e VoltageRange FullRange Single Begin ZeroBase 2048 FullRange 2048 VoltageRange 10 Gain Gain mod 16 If Gain lt 0 Or Gain gt 3 Then begin P100X_AD2F 100 exit end If HiLo O Then Low Gain Result hex ZeroBase FullRange VoltageRange Power 2 Gain Else Result hex ZeroBase FullRange VoltageRange Power 10 Gain End end Page 18 OME PCI 1002 Software Manual for Windows 3 Demo Result 3 1 Visual C PCI 1002 Polling DEMO x Total Boards in system f Which Board To Active EE Address amp IRQ Timer Addr fecon DDO Addr leczo AD Addr Jec30 IRO Level la Configuration Setting Card Type e Low Gain C High Gain Gain Code Channel a CH 01 Analog Input with polling demo program f PCI 1002 Digital 1 0 Demo X Digital Output hex Digital Input hex Cho 15 16455 Cho 15 aa55 Exit Digital I O with MFC demo program Page 19 OME PCI 1002 Software Manual for Windows 3 2 Visual Basic DIDO Demo Digital Output Set Choose a Board Number to Active Digital Input Status S i ae ee ee a O ees ee O F 3 A Digital l O demo program w AD Demo Pacer Card Type y Total JP1 Setting y Select Channel No EJ sampling Rate Input Range A tl Analog Input with pacer trigger demo program Page 20 OME PCI 1002 Software Manual for W
20. enError 16 P100X_FindTwoBoardError 17 P100X_GetIntCountError 18 P100X_InstalllrqError 19 P100X AllocateMemoryError 20 Function of Test function P100X_FloatSub fA Single fB Single Single stdCall function P100X_ShortSub nA Smallint nB Smallint SmallInt stdCall function P100X_GetDllVersion WORD stdCall Page 15 OME PCI 1002 Software Manual for Windows Function of Driver function P100X Driverlnit Var wT otalBoards Word WORD stdCall procedure P100X_DriverClose stdCall function P100X GetDriverVersion var wDriverVersion Word WORD stdCall function P100X_GetlrgNo Var IrqNo WORD WORD StdCall function P100X GetConfigAddressSpace wBoardNo Word var wAddrTimer Word var wAddrDio Word var wAddrAd Word WORD stdCall function P100X ActiveBoard wBoardNo Word WORD stdCall function P100X_WhichBoardActive WORD stdCall procedure P100X_ Setup Timer wChannel Word wCoef Word stdCall function P100X_Delay wDownCount Word Word StdCall Function of DI DO procedure P100X_Do wOutData Word stdCall function P100X_Di var wDiData Word WORD stdCall Function of AD function P100X_SetChannelConfig wAdChannel Word wConfig Word WORD stdCall function P100X_Polling var wAdVal Word WORD stdCall function P100X_AdPolling var fAdVal Single WORD stdCall function P100X_AdsPolling fAdVal PSingle wNum Word WORD stdCall function P100X_AdsPacer fAdVal PSingle wNum Word wSamplin
21. erCallError call P100X VxD return error call P100X SYS return error 4 5 2 P100X_DriverClose Description Releases all system resources This function should be called before terminating the program Syntax void P100X_DriverClose void Parameter None Return None Page 34 OME PCI 1002 Software Manual for Windows 4 5 3 P100X_GetConfigAddressSpace Description Get the I O address of OME PCI 1002 board n This function is for debugging purposes It is not normally necessary to call this function Syntax WORD P100X_GetConfigAddressSpace WORD wBoardNo WORD wAddrTimer WORD wAddrDio WORD wAddrAd Parameter wBoardNo Input OME PCI 1002 board number wAddrTimer wAddrDio wAddrAd Output Address of wAddrTimer wAddrDio wAddrAD stores the address of the Timer DI DO and A D Please refer to Hardware manual for additional details Return P100X_NoError OK P100X FindBoardError handshake check error P100X ExceedBoardError wBoardNo is invalidd 4 5 4 P100X WhichBoardActive Description Returns the board number of the active board Syntax WORD P100X_WhichBoardActive void Parameter None Return Returns the board number of the active board Page 35 OME PCI 1002 Software Manual for Windows 4 5 5 P100X ActiveBoard Description This function makes a board active This function must be called once before the D I O A D or D A functions are called Syntax WORD P100X_ActiveB
22. es Ge Reportine Pro A daemansaeasean EOE A A T dane OEE dhanierae Mantas ean Page 3 OME PCI 1002 Software Manual for Windows 1 Introduction The OME PCI 1002 Toolkit is a collection of DLLs and device driver for Windows 95 98 NT 2000 XP applications These DLLs are 32 bit and can be called by Visual C BC Visual BASIC Delphi and LabVIEW The OME PCI 1002 Toolkit consists of the following DLLs and device driver e P100X DLL P100X LIB gt for OME PCI 1002 card P100X VXD gt OME PCI 1002 Device driver for Windows 95 98 e P100X SYS gt OME PCI 1002 Device driver for Windows NT 2000 XP The DLLs perform a variety of tasks including Read software version Initialization Digital Input Output O O e A D conversion Page 4 OME PCI 1002 Software Manual for Windows 1 1 Software Installation Insert the CD ROM included with your OME PCI 1002 board and the following installation screen should auto start M OMEGA_B20030301 a ES SE OMEGA g Install Toolkits Softwares Manuals Q Browse CD ROM Contents J Contact Us Q View Readme txt View Our Web Site on the Internet Q View Our FTP Site on the Internet J Install Acrobat Reader 5 0 5 Follow the instructions on the screen to complete the software installation The software is designed to support the entire OME family of data acquisition hardware so during the installation you will be asked to specify your particular hardware OME PCI 1002 board
23. gDiv Word WORD stdCall Function of Interrupt function P100X_Installlrq Var hEvent LongInt dwCount LongInt WORD stdCall function P100X_GetBuffer dwNum LongInt wBuf PWord WORD stdCall function P100X_GetFloatBuffer dwNum Longint fAdVal PSingle Word StdCall function P100X_INT_AdStart Ch WORD Gain WORD wFreqDiv Word WORD stdCall function P100X_INT_AdStop WORD stdCall function P100X GetintCount var dwVal LongInt WORD stdCall implementation function 100X_FloatSub external P100X DLL name P100X_FloatSub function 100X_ShortSub external P100X DLL name P100X_ShortSub function 100X_GetDllVersion external P100X DLL name P100X_GetDllVersion function 100X_GetDriverVersion external P100X DLL name P100X_GetDriverVersion Page 16 OME PCI 1002 Software Manual for Windows function 100X_Driverlnit external P100X DLL name P100X_Driverlnit procedure 100X_DriverClose external P100X DLL name P100X_DriverClose function 100X_GetlrqNo external P100X DLL name P100X_GetlrgNo function 100X_GetConfigAddressSpace external P100X DLL name P100X_GetConfigAddressSpace function 100X_ActiveBoard external P100X DLL name P100X ActiveBoard function 100X_WhichBoardActive external P100X DLL name P100X_WhichBoardActive procedure 100X_SetupTimer external P100X DLL name P100X_Setup Timer function 100X Delay external P100X DLL name P100X_ Delay procedure P100X
24. indows 3 3 Delphi DI DO Demo Total P100 Boards Choose a board number to actie E O O O O sm gf S Eo O O O ma gf Digital l O demo program AD Demo Interrupt Total Boards Input Range Board to active Channel sampling Rate Analog Input with Interrupt demo program Page 21 OME PCI 1002 Software Manual for Windows 3 4 Borland C Builder E DI DO Demo Total Boards Choose a board number to active VES ES E5 E5 ES fg dg VES ES ES EE EE g gq Digital l O demo program Ei AD Demo Polling Total Boards Input Range Board to actue E Ho Folling Hex AdPolling flo at EEE Analog input with polling demo program Page 22 OME PCI 1002 Software Manual for Windows 4 Descriptions of Functions The DLL functions are divided into the following groups Test Functions D I O Functions A D Fixed mode Functions Driver Functions Interrupt Functions Test Functions P100X_FloatSub2 P100X_ShortSub2 P100X_GetDllVersion P100X_GetDriverVersion oe D I O Functions 1 P100X DI 2 P100X DO A D Fixed mode Functions P100X_SetChannelConfig P100X_Polling P100X_AdPolling P100X_AdsPolling P100X_AdsPacer aS i i Driver Functions 1 P100X_Driverlnit P100X_DriverClose P100X_GetConfigAddressSpace P100X_WhichBoardActive P100X_ActiveBoard P100X_GetlrqNo oe a Page 23 OME PCI 1002 Software Manual for Windows Interrupt Functions 1 P100X_Installlrq P100X_IN
25. k the card resources that is I O Port address IRQ number and DMA under Windows Page 7 OME PCI 1002 Software Manual for Windows 2 Declaration Files Please refer to user manual CallDLL pdf Driver AVB P100X BAS P100Xu BAS VC P100X H P100X LIB Delphi P100X PAS P100Xu PAS BCB AP100X H P100Xu C P100X LIB lt some device driver for Visual Basic Declaration file for Visual Basic Functions for Visual Basic lt for Visual C lt Header file lt Import library for VC only lt for Delphi lt Declaration file lt Functions for Delphi lt for Borland C Builder 3 0 lt Header file Functions for BCB lt Import library file for BCB only Page 8 OME PCI 1002 Software Manual for Windows 2 1 P100X H ifdef cplusplus define EXPORTS extern C _ declspec dllimport else define EXPORTS endit return code define P100X_NoError define P100X_DriverHandleError define P100X_DriverCallError define P100X_AdControllerError define P100X_ConfigCodeError define P100X_DriverNoOpen define P100X_AdPolling TimeOut define P100X_FindBoardError define P100X_AdChannelError define P100X_DaChannelError define P100X_InvalidDelay 10 define P100X_DelayTimeOut 11 define P100X_InvalidData 12 define P100X_TimeoutError 13 define P100X_ExceedBoardNumber 14 define P100X_NotFound
26. nic medium or machine readable form in whole or in part without the prior written consent of OMEGA ENGINEERING INC Where Do I Find Everything Need for Process Measurement and Control OMEGA Of Course Shop online at www omega com TEMPERATURE Dag Thermocouple RTD amp Thermistor Probes Connectors Panels amp Assemblies WA Wire Thermocouple RTD amp Thermistor lA Calibrators amp Ice Point References 14 Recorders Controllers amp Process Monitors WA Infrared Pyrometers PRESSURE STRAIN AND FORCE WA Transducers amp Strain Gages WA Load Cells amp Pressure Gages lA Displacement Transducers WA Instrumentation amp Accessories FLOW LEVEL lA Rotameters Gas Mass Flowmeters amp Flow Computers WA Air Velocity Indicators lA Turbine Paddlewheel Systems lA Totalizers amp Batch Controllers pH CON DUCTIVITY Dag pH Electrodes Testers Accessories WA Benchtop Laboratory Meters WA Controllers Calibrators Simulators amp Pumps WA Industrial pH amp Conductivity Equipment DATA ACQUISITION WA Data Acquisition amp Engineering Software lA Communications Based Acquisition Systems WA Plug in Cards for Apple IBM amp Compatibles lA Datalogging Systems 14 Recorders Printers amp Plotters HEATERS lA Heating Cable 14 Cartridge amp Strip Heaters lA Immersion amp Band Heaters WA Flexible Heaters lA Laboratory Heaters ENVIRON MENTAL MONITORING AND CONTROL lA Metering amp Contr
27. oard WORD wBoardNo Parameter wBoardNo Input The board number of the board to make active Return P100X_NoError OK P100X ExceedBoardError wBoardNo is invalid 4 5 6 P100X_GetlrqNo Description This function will get the IRQ number of the active OME PCI 1002 board installed in the system This function is not normally used by user applications Syntax WORD P100X_GetIrqNo WORD IrqNo Parameter IrqNo Output Address of IrqNo which contains the IRQ No allocated by the system Return P100X_NoError OK Page 36 OME PCI 1002 Software Manual for Windows 4 6 The Interrupt Functions 4 6 1 P100X_Installlrq Description This subroutine will install the interrupt handler for a specific IRQ n and set the maximum number of interrupts Refer to section 3 6 7 for more details on using interrupts Syntax WORD P100X_Installlrq HANDLE hEvent DWORD dwCount Parameter hEvent Input The user must use the CreateEvent to create the Event object and obtain its handle and pass the handle to this function dwCount Input Maximum number of counts for interrupt transfer Return P100X_NoError successful P100X_InstalllrqError failed installing the IRQ handler 4 6 2 P100X GetintCount Description This subroutine will read the interrupt transfer count Syntax WORD P100X_GetIntCount DWORD dwVal Parameter dwVal Output the address of dwVal which contains the value of inter
28. ol Instrumentation lA Refractometers lA Pumps amp Tubing 14 Air Soil amp Water Monitors 14 Industrial Water amp Wastewater Treatment lA pH Conductivity amp Dissolved Oxygen Instruments M3928 0203
29. orms multiple A D conversions on a single channel by polling The P100X_SetChannelConfig subroutine can be used to change the channel or configuration code This function addresses the current active OME PCI 1002 board Use P100X_ActiveBoard to select the active board Since software polling can be interrupted by the operating system the P100X_AdsPacer function is recommended when precisely reconstructing the waveform is desired Syntax WORD P100X_AdsPolling float fAdVal WORD wNum Parameter fAdVal Output starting address of the A D data buffer Array of float The data is converted to voltage based on the setting of the P100X_SetChannelConfig function The user must allocate sufficient space for the buffer The user can access the data after calling the function wNum Input number of A D conversions to be performed Return P100X_NoError OK P100X_ExceedBoardNumber Invalid board number P100X_FindBoardError Can not find the OME PCI 1002 board P100X_AdPolling TimeOut Hardware timeout error Page 32 OME PCI 1002 Software Manual for Windows 4 4 5 P100X_AdsPacer o Description This function performs multiple A D conversions on a single channel by pacer trigger The P100X_SetChannelConfig function can be used to change the channel or configuration code The function addresses the current active OME PCI 1002 board Use P100X ActiveBoard to select the active board eo Syntax WORD P100X_Ads
30. ree in France 0800 466 342 e mail sales omega fr Daimlerstrasse 26 D 75392 Deckenpfronn Germany TEL 49 0 7056 9398 0 FAX 49 0 7056 9398 29 Toll Free in Germany 0800 639 7678 e mail info omega de One Omega Drive River Bend Technology Centre Northbank Irlam Manchester M44 5BD United Kingdom TEL 44 0 161 777 6611 FAX 44 0 161 777 6622 Toll Free in United Kingdom 0800 488 488 e mail sales omega co uk It is the policy of OMEGA to comply with all worldwide safety and EMC EMI regulations that apply OMEGA is constantly pursuing certification of its products to the European New Approach 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 WARNING These products are not designed for use in and should not be used for patient connected applications OME PCI 1002 Software Manual for Windows Table of Contents le A Rte RN em pe SN pa Nn ere 1 1 Software astaan E T NE TE EO A O AT R RTT IN SS A E OEE E O E AA Ze Declaration Ple A ew T E TTE N NE OE A T A 2 1 PEO A o Oz A E A A A E In A aceasta iets 2r A A A A NP ae eee nT pt PEOOX E NS A A A O asoases E Des OU NAS tot itd De AA Sa AA ete E A ate cases acdsee eee werent A E cee oe eco ee ee eee eee eee 3 1 mV S E E cc guar
31. rsion on the active channel by software polling The P100X_SetChannelConfig subroutine can be used to change the channel or configuration code Use the P100X_ActiveBoard to select the active board Syntax WORD P100X_Polling word wAdVal Parameter wAdVal Output address of wAdVal which contains the A D data Data is returned as an integer value in the range 0 4095 Return P100X_NoError OK P100X ExceedBoardNumber invalid board number P100X FindBoardError can not find the OME PCI 1002 board P100X_AdPollingTimeOut hardware timeout error Page 30 OME PCI 1002 Software Manual for Windows 4 4 3 P100X_AdPolling Description This subroutine will perform a single A D conversion by polling The P100X_SetChannelConfig function can be used to change the channel or configuration code This function addresses the current active OME PCI 1002 board Use the P100X_ActiveBoard function to select the active board Syntax WORD P100X_AdPolling float fAdVal Parameter fAdVal Output address of fAdVal which contains the AD data The data is automatically converted to voltage based on the settings of P100X_SetChannelConfig Return P100X_NoError OK P100X ExceedBoardNumber invalid board number P100X_FindBoardError cannot find the OME PCI 1002 board P100X AdPollinglimeOut hardware timeout error Page 31 OME PCI 1002 Software Manual for Windows 444 P100X_AdsPolling Description Perf
32. rupt transferred count Return P100X_NoError successful P100X_GetIntCountError fail get interrupt count Page 37 OME PCI 1002 Software Manual for Windows 4 6 3 P100X_INT_AdStart Description This subroutine will start the interrupt transfer for a specific A D channel set the gain code and sample rate Syntax WORD P100X_INT_AdStart WORD Ch WORD Gain WORD wrFreqDiv Parameter Ch Input the A D channel Gain Input the Gain refer to Section 3 1 wFreqDiv Input the sampling rate is 2M wFreqDiv Return P100X_NoError successful P100X_INTStartError failure 4 6 4 P100X INT AdStop Description This subroutine will stop the interrupt transfer and remove the installed interrupt handler Syntax WORD P100X_ INT_AdStop void Parameter None Return P100X_NoError successful P100X_INTStopError failure Page 38 OME PCI 1002 Software Manual for Windows 4 6 5 P100X GetBuffer Description This subroutine will copy the transferred interrupted data into the user s buffer in word format Syntax WORD P100X_GetBuffer DWORD dwNum WORD wBufferl Parameter wNum Input The total number to transfer to User s Buffer wBuffer Output The address of wBuffer Array of word that will contain the hex A D value The user must allocate sufficient space for this buffer This function will fill the buffer with the data The user can access the data after calling this function
33. s the result value nA nB Page 26 OME PCI 1002 Software Manual for Windows 4 2 3 P100X_GetDliVersion Description Reads the DLL version of the P100X DLL Syntax WORD P100X_GetDllVersion void Parameter None Return Returns the version of the DLL for Device Driver return 0x200 gt Version 2 0 4 2 4 P100X_GetDriverVersion Description This subroutine will read the software version of the P100X VxD for Windows 95 or P100X SYS of Windows NT 2000 XP Syntax WORD P100X GetDriverVersion WORD wDriverVersion Parameter wDriverVersion Output address of wDriverVersion which contains the version of Device Driver wDriverVersion 0x200 gt Version 2 0 Return P100X_NoError OK P100X DriverHandleError P100X VxD open error for Windows 95 P100X SYS open error for Windows NT 2000 XP P100X_DriverCallError call P100X VxD return error call P100X SYS return error Page 27 OME PCI 1002 Software Manual for Windows 4 3 The DI O Functions 4 3 1 P100X Di Description This subroutine will read the 16 bit data from the Dl digital input port This function addresses the current active OME PCI 1002 board Use the P100X_ActiveBoard to select the active board Syntax WORD P100X_DI WORD wDi Parameter wDi Output address of wDi which contains the 16 bits of digital input data Return P100X_NoError OK P100X_FindBoardError cannot find the OME PCI 100X board P100X_ExceedBoardNum
Download Pdf Manuals
Related Search
OME PCI 1002
Related Contents
Full text - Revista Centro Agrícola SimpleBGC Software User Manual flexotron®800 flexotron®800: Electronic ventilation, air CLC Assembly Cell Closeable communication device and method of operating same Assa Abloy CL33700 TCPWI1 Specifications DeLOCK SATA 30cm RECHARGEABLE HAND TORCH LAH 55 A1 conseil départemental, mode d`emploi Whitehaus Collection WHNEDB3118-BSS Installation Guide Copyright © All rights reserved.
Failed to retrieve file