Home
OME-TMC12 Software Manual
Contents
1. TMC12 A as follows step7 of Sec 1 1 2 m 14 10 51 PTMC12_Driverlnit PTMC1212_DetectBoards Dl of Board_1 wDoVal Dl of Board_2 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 2 DLL Driver The included software is a collection of subroutines for OME PCI TMC12 A cards for Windows 95 98 NT 2000 XP applications These subroutines are written with C language and perform a variety of digital I O operations The names of the subroutines in PCITMC12 DLL have logical names to simplify its usage It provides powerful easy to use subroutines for developing your data acquisition application Your program can call these DLL functions by VC VB Delphi and BORLAND C Builder easily To speed up your developing process some demonstration source program are provided Please refer to the following user manuals refer to step2 of Sec 1 1 2 for more information e PnPinstall pdf Step 3 of Sec 1 1 2 Install the PnP Plug and Play driver for PCI card under Windows 95 98 e Softinst pdf Step 3 of Sec 1 1 2 Install the software package under Windows 95 98 NT 2000 XP e CallDIl pdf Step 5 of Sec 1 1 2 Call the DLL functions with VC 5 VB5 Delphi3 and Borland C Builder 3 e ResCheck pdf Step 5 of Sec 1 1 2 Check the resources I O Port address IRQ number and DMA number for add on cards under Windows 95 98 NT OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 14 Th
2. boards in the system users will have to identify which board is board_1 Our software driver can support 32 boards max Therefore user can install 32 boards of OME PCI TMC12 A in one PC system The simplest way to find the board number is to use DioTest in VB demo program This demo program will send to D O amp Read from D I If user installs one 20 pin flat cable between CON2 amp CON3 the D I read back will be as same as D O So user can find the board number as follows 1 Install all OME PCI TMC12 A cards into this PC system 2 Install one 20 pin flat cable between CON2 amp CON3 of one OME PCI TMC12 A 3 Power on the PC 4 Run DioTest of VB demo program Sec 1 1 2 5 Key in board number to 1 6 Click R W D O 7 Check the value in Read From D T if it is equal to Write to D O the board number of the target OME PCI TMC12 A is 1 Otherwise you can go to step 5 for next board number PTMC12_Driverlnit RAA DAO PTMC12_DetectBoards Write to D O amp H5555 dwBoardNo 1 273 1 Read From DA Note If only one OME PCI TMC12 A exists the board number will be 1 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 18 2 2 Functions of Test 2 2 1 PTMC12_FloatSub e Description To perform the subtraction as fA fB in float data type This function is provided for testing DLL linkage e Syntax float PTMC12_FloatSub float fA float fB Parameter fA Input 4 bytes floating point
3. 1 5 Step 5 Muti Board Diognoetie 13 2 DEL D RE eege Eege 14 2 1 FIND THE BOARD EE EE 18 2 2 JUNCTIONS OF TEST deeg 19 2 2 1 PIMC Foa Ee 19 2 2 2 EE 19 2 2 3 PIMCGT 2A E 20 2 2 4 PTMCT2 EE 104 32 224 atai E AR 20 2 3 FUNCTIONS OF DRIVER INITIALIZATION s iic sos desbecins deca lesdactvaveesetesaes 21 2 3 1 PTIMET2 EE 21 2 3 2 PIMC TD te Ee NEE ei eancaldeatds 21 2 3 3 PIM GTZ Op n E 22 2 3 4 ee 23 2 3 5 PIMC LD Regdld Eed 24 2 3 6 PIMGT2 Clos eB0 r EE 25 2 3 7 Ebene 25 2 4 READ WRITE roOME PCLTMCTIOOA 26 2 4 1 PTIMCT2 WriteByte Ee Sanaa E S R E Ee 26 2 4 2 PCITMC12 Wile Wold cocci potcaletds een seein eds 27 2 4 3 PAM GT Z 2R2aAdBV1 225 225 220 r 3 66000 ele Ee 28 2 4 4 PEM CID Rea dW0r dde 3106 ee 29 2 5 INTERRUPT RELATED DELS eet EEN 30 2 5 1 PTMC12 _InstallCallBAackFUNC ccccccccccceccc Ee 30 2 5 2 PTMC12 RemoveAllCallBackFunc ccccccccceciceccceccicceiceee n 31 2 5 3 PIM Eege geehrt 32 2 5 4 PTMGI2 EE 32 2 6 READ WRITE TO PCI CONTROLLER sise esci cicicsccicecscececessscecscseccecsasesaeas 33 2 6 1 PTMC12 WritePceiDword EE 33 2 6 2 PTMETZ ReadPetDWOord 22222282 525222 eae NR at G AE ae AY 884 34 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 2 3 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee DEMO PROGRAM sisissccscsisccicsciccccescisccsceccacocccscccoussccseccseccsceccsscacedcdscccecssccasac ec 3 1 PROGRAM ARCHITECTURE ss
4. TMC12 A 2 4 1 PTMC12_WriteByte e Description Write one byte 8 bit of data to OME PCI TMC12 A e Syntax DWORD PTMC12_WriteByte dwBoardNo dwOffset Data Parameter dwBoardNo_ Input board number from 1 to N dwOffset Input offset address Data Input one byte of data 8 bit e Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function 4 PTMC12_WriteByte dwBoardNo 0x10 Data gt select the active 8254 refer to Sec 3 3 1 of OME PCI TMC12 A User s Manual 5 PTMC12_WriteByte dwBoardNo 0x14 Data gt write to D O 0 7 refer to Sec 3 3 4 of OME PCI TMC12 A User s Manual OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 26 2 4 2 PCITMC12_WriteWord Description Write one word 16 bit of data to OME PCI TMC12 A Syntax DWORD PTMC12_WriteWord dwBoardNo dwOffset Data Parameter dwBoardNo_ Input board number from 1 to N dwOffset Input offset address Data Input one word of data 16 bit Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExcee
5. 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 DISCLAIMER 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 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 SG 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
6. 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 including 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 OMEGA 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 OF TITLE 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
7. value fB Input 4 bytes floating point value e Return The value of fA fB 2 2 2 PTMC12_ShortSub e Description To perform the subtraction as nA nB in short data type This function is provided for testing DLL linkage e Syntax short PTMC12_ShortSub short nA short nB Parameter nA Input 2 bytes short data type value nB Input 2 bytes short data type value e Return The value of nA nB OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 19 2 2 3 PTMC12_IntSub e Description To perform the subtraction as iA iB in int data type This function is provided for testing DLL linkage e Syntax short PTMC12_InttSub int iA int iB Parameter nA Input 4 bytes int data type value nB Input 4 bytes int data type value e Return The value of iA iB 2 2 4 PTMC12_GetDllVersion e Description To get the version number of PTMC12 DLL e Syntax DWORD PTMC12_GetDllVersion void Parameter None e Return Return the DLL s version number For example 102 hex for version 1 02 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wren 20 2 3 Functions of Driver Initialization 2 3 1 PTMC12_Driverinit e Description This subroutine will initialize the kernel driver This function must be called first before calling these DLL functions given in Sec 2 3 Sec 2 5 e Syntax DWORD PTMC12_Driverlnit Parameter void e Return PCl_NoError OK PC
8. 29 00 FAX 33 0 1 30 57 54 27 Toll Free 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 TMC12 A Software User s Manual OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee Tables of Contents Tt INTRODUCTION DEE 4 1 1 INSTALLATION QUICK START EE 6 1 1 1 Step 1 Software InstallatiOh ccccccccccceccciccccceccceccrcceiceeceeee eee 6 1 1 2 Step 2 Check the installed software 8 1 1 3 Step 3 Hardware ele eieiei 10 1 1 4 Step EE 10 1
9. A User s Manual OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 33 2 6 2 PTMC12_ReadPciDword Description Read one dword 32 bit of data from PCI control register Syntax DWORD PCITMC12_ReadPciDword dwBoardNo Data Parameter dwBoardNo Input board number from 1 to N Data output one dword of data 32 bit Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note call PTMC12_DetectCards before calling this function call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards call PTMC12_OpenBoard before calling this function PTMC12_ReadPciDword dwBoardNo 0x4c Data gt read the interrupt status register refer to Sec 3 3 5 of OME PCI TMC12 A User s Manual O N gt OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 34 3 Demo Program There are many demo programs written in VC VB Delphi and BCB provided with the companion CD These demo programs will call the DLL PTMC12 DLL to access the hardware of OME PCI TMC12 A The VC demo program VB demo program Delphi demo program BCB demo program User mode Same for 95 98 NT 2000XP PTMC12 DLL Windrvr vxd Windrvr sys For 95 98 For Kernel mode The install shield will install kernel driver DLL driver amp application demo program to syst
10. I_DriverOpenError open kernel driver error 2 3 2 PTMC12 DetectBoards e Description This subroutine will detect all installed OME PCI TMC12 A boards e Syntax DWORD PTMC12_DetectBoards Parameter void e Return 0 No OME PCI TMC12 A is installed in this PC 1 only one OME PCI TMC12 A is installed in this PC board no 1 N Number of OME PCI TMC12 A cards installed in this PC board no 1 2 N e Note Call PTMC12_Driverlnit before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 21 2 3 3 PTMC12_OpenBoard e Description This subroutine will lock engage the OME PCI TMC12 A Then the engaged OME PCI TMC12 A is dedicated to this program until PTMC12_CloseBoard is called This function must be called first before calling these DLL functions given in Sec 2 3 Sec 2 5 e Syntax DWORD PTMC12_OpenBoard dwBoardNo dwintEnable e Parameter dwBoardNo Input board number 1 2 dwintEnable Input O no interrupt 1 using interrupt e Return PCl_NoError Ob PCl_BoardOpenError open OME PCI TMC12 A error may be locked by others PCl_BoardNoExceedFindBoards dwBoardNo gt N Note 1 call PTMC12_Driverinit before calling this function 2 call PTMC12_DetectCards to detect all OME PCI TMC12 A boards OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 22 2 3 4 PTMC12_ReadBoardStatus N gt a Description This subroutin
11. MC12_ Driverlnit void DWORD PTMC12_DetectBoards void DWORD PTMC12_OpenBoard DWORD dwBoardNo DWORD dwlInEnable DWORD PTMC12_ReadBoardStatus DWORD dwBoardNo DWORD PTMC12 ReadId DWORD dwBoardNo DWORD dwVendorld DWORD dwDeviceld DWORD dwSubVendorld DWORD dwSubDeviceld e DWORD PTMC12 CloseBoard dwBoardNo void PTMC12_ CloseAll void Functions of Read Write to OME PCI TMC12 A Refer to Sec 2 4 e DWORD PTMC12_WriteyteDWORD dwBoardNo DWORD dwOffset BYTE Data DWORD PTMC12 WriteWord DWORD dwBoardNo DWORD dwOffset WORD Data e DWORD PTMC12 ReadByteDWORD dwBoardNo DWORD dwoOffset BYTE Data e DWORD PTMC12 ReadWord DWORD dwBoardNo DWORD dwOffset WORD Data Functions of Interrupt Refer to Sec 2 5 e DWORD PTMC12 InstallCallBackFunc DWORD dwBoardNo DWORD dwInitialState void addrCallBackFunc e DWORD PTMC12 RemoveAllCallBackFunc void DWORD PTMC12 _ EnableInt DWORD dwBoardNo e DWORD PTMC12_DisableInt DWORD dwBoardNo Functions of Read Write to PCI Controller Refer to Sec 2 6 e DWORD PTMC12_ WritePciDWord DWORD dwBoardNo WORD Data e DWORD PTMC12 ReadPciDword DWORD dwBoardNo WORD Data OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 17 2 1 Find the Board Number The plug amp play BIOS will assign the proper base address to OME PCI TMC12 A If there is only one OME PCI TMC12 A user can identify this board as board_1 If there are two OME PCI TMC12 A
12. MC12_Driverlnit i PTMC12_DetectBoards i Write to D O EE l Read From DA Ee dwBoardNo 1 273 Note if the 20 pin flat cable is not installed the D I will be amp HFFFF OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 11 Step 3 run LedTest of VB demo program as follows step7 of Sec 1 1 2 PTMC12_Driverlnit PTMC12_DetectBoards LED xor Register gt amp HE OOO dwBoardNo 1 2 3 Click Write to LedXor amp check LED1 OFF LED2 OFF amp LED3 OFF Change amp HE000 to amp H6000 Click Write to LedXor amp check LED1 OFF LED2 OFF amp LED3 ON Change amp H6000 to amp HA000 Click Write to LedXor amp check LED1 OFF LED2 ON amp LED3 OFF Change amp H6000 to amp HA000 Click Write to LedXor amp check LED1 ON LED2 OFF amp LED3 OFF Change amp HA000 to amp HE000 Click Write to LedXor amp check LED1 OFF LED2 OFF amp LED3 OFF OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 1 1 5 Step 5 Muti Board Diagnostic Step 1 run TestId2 of VB demo program to read amp show IDs of two OME PCI TMC12 A as follows step7 of Sec 1 1 2 PCI TMC12 A BoardNo 1 PCI TMC12 A BoardNo 2 dwVendorlD 1085 dwYendorlD 10B5 dwDevicelD 9050 dwDevicelD 9050 dwSubYendorl 2129 dwSubYendorl 2129 dwSubDevicel 9912 dwSubDevicel 3912 SOS Step 2 run TestDio2 of VB demo program to read write D I O of two OME PCI
13. TMC12_ CloseAll OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 36 For multi task applications many user programs will control OME PCI TMC12 A So the program will open amp lock OME PCI TMC12 A before access the I O Then un lock OME PCI TMC12 A after access the I O as follows PTMC12_DriverInit PTMC12_ DetectBoards PTMC12_ OpenBoard PTMC12 ReadWord PTMC12_ CloseBoard PTMC12 OpenBoard PTMC12 ReadWord PTMC12 CloseBoard OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 37 For interrupt applications the program style is given as follows PTMC12_DriverInit PTMC12_ DetectBoards PTMC12_ OpenBoard PTMC12_InstallCallBackFunc PTMC12_EnablelInt PTMC12_ReadWord PTMC12_WriteWord PTMC12_DisablelInt PTMC12_CloseAll When the interrupt signal is active the kernel mode driver will call user s call back function once Refer to demo program WatchDog amp CountLow for more information OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 38 3 2 Report Problems 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 include the following information 1 Is the problem reproducible If so how 2 x What kind and version of Operat
14. User s Guide omega om Shop online at www omega com e mail info omega com OME TMC12 PCI Bus Digital 1 O Board Software Manual omega con 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
15. ameter Set by user Does user Get Data Value before calling this function from this parameter after calling this function Input Yes No Output No Yes Input Output Yes Yes Note Spaces need to be allocated for all of the parameters by the user The return codes of DLLs are defined as follows return code define PCI NoEtror 0 define PCI _DriverOpenError 1 define PCI DriverNoOpen 2 define PCI_GetDriverVersionError 3 define PCI InstalllrqError 4 define PCI ClearIntCountError 5 define PCI_GetIntCountError 6 define PCI_RegisterApcError 7 define PCI RemovelrqError 8 define PCI FindBoardError 9 define PCI ExceedBoardNumber 10 define PCI_ResetError 11 define PCL IrqMaskError 12 define PCL ActiveModeError 13 define PCI GetActiveFlagError 14 define PCL ActiveFlagEndOfQueue 15 define PCI BoardIsNotOpen 16 define PCI _BoardOpenError 17 define PCI BoardNoIsZero 18 define PCI BoardNoExceedFindBoards 19 define PCI_InputParameterError 20 define PCI IntInitialStateError 21 define PCI IntInitialValueError 22 define PCI TimeOut 23 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 16 The defined DLL are given as follows Functions of test Refer to Sec 2 2 float PTMC12 FloatSub float fA float fB short PTMC12_ShortSub short nA short nB int PTMC12_IntSub int iA int iB e DWORD PTMC12_GetDIIVersion void Functions of Driver Initialization Refer to Sec 2 3 e DWORD PT
16. 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 1 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 Ss 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 a registered 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 electronic 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 Ich Thermocouple RTD amp Thermistor Probes Connectors Panels amp Assemblies V Wire Thermocouple RTD amp Thermistor A Calibrators amp Ice Point Referen
17. anuals J PCI Bus DAQ Card J ISA Bus DAQ Card J Motion Card J Daughter Board J The Others OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 6 Step 3 click the first item PCI Bus DAQ Card E PCI 1002L H CO ong Pci 1202LH g Piso pio g Pci 16021602F PISO 813 d Pci 180x g Piso 725 g Pci Tmc12 g pop J PCI P16R16 PCI P8R8 Step 4 click the last item OME PCI TMC12 CU View User Manual PDF J Toolkit for DOS d Install Toolkit for Windows 95 98 J Install Toolkit for Windows NT EJ Install Toolkit for Windows 2000 Step 5 click the appropriate item example Install Toolkit for Windows NT Then the install shield will install kernel driver DLL driver amp application demo program to system All demo programs amp DLLs are same for 95 98 NT 2000 XP But the kernel driver is different for different systems as follows for windows 95 98 gt will copy WINDRVR VXD to C WIN9S SYSTEM VMM32 for windows NT 2000 gt will copy WINDRVR SYS to C WINNT SYSTEM32 DRIVERS for windows XP gt will copy WINDRVR SYS to C WINDOWS SYSTEM32 DRIVERS Note 2000 amp XP use the same driver The DLLs amp demo programs will not work if the kernel driver is not installed correctly The install shield will copy the correct kernel driver to correct position if you select correct O S 95 98 NT 2000 XP OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 7 1 1 2 S
18. ard before calling this function 2 5 4 PTMC12_Disablelnt Description Disable interrupt of OME PCI TMC12 A Syntax DWORD PTMC12_Disable dwBoardNo Parameter dwBoardNo Input board number from 1 to N Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 32 2 6 Read Write to PCI Controller 2 6 1 PTMC12_WritePciDword e Description Write one dword 32 bit of data to PCI controller e Syntax DWORD PCITMC12_WritePciDword dwBoardNo Data Parameter dwBoardNo_ Input board number from 1 to N Data Input one dword of data 32 bit Return 0 Write OK PCl_DriverNoOpen kernel driver not found PCl_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N e Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function 4 PTMC12_WritPciDword dwBoardNo 0x4c Data gt write to interrupt controller register refer to Sec 3 3 5 of OME PCI TMC12
19. ces A Recorders Controllers amp Process Monitors V Infrared Pyrometers PRESSURE STRAIN AND FORCE V Transducers amp Strain Gages Ip Load Cells amp Pressure Gages V Displacement Transducers A Instrumentation amp Accessories FLOW LEVEL Rotameters Gas Mass Flowmeters amp Flow Computers V Air Velocity Indicators A Turbine Paddlewheel Systems A Totalizers amp Batch Controllers pH CONDUCTIVITY V pH Electrodes Testers amp Accessories V Benchtop Laboratory Meters V Controllers Calibrators Simulators amp Pumps V Industrial pH amp Conductivity Equipment DATA ACQUISITION A Data Acquisition amp Engineering Software 4 Communications Based Acquisition Systems V Plug in Cards for Apple IBM amp Compatibles V Datalogging Systems A Recorders Printers amp Plotters HEATERS V Heating Cable V Cartridge amp Strip Heaters VV Immersion amp Band Heaters V Flexible Heaters V Laboratory Heaters ENVIRONMENTAL MONITORING AND CONTROL 4 Metering amp Control Instrumentation V Refractometers 4 Pumps amp Tubing A Air Soil amp Water Monitors A Industrial Water amp Wastewater Treatment V pH Conductivity amp Dissolved Oxygen Instruments M4042 0104
20. dFindBoards dwBoardNo gt N Note call PTMC12_DetectCards before calling this function call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards call PTMC12_OpenBoard before calling this function PTMC12_WriteWord dwBoardNo 0x10 Data gt select the active 8254 refer to Sec 3 3 1 of OME PCI TMC12 A User s Manual PTMC12_WriteWord dwBoardNo 0x14 Data gt write to D O 0 15 refer to Sec 3 3 4 of OME PCI TMC12 A User s Manual OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 27 2 4 3 PTMC12_ReadByte RwWN gt e Description Read one byte 8 bit of data from OME PCI TMC12 A Syntax DWORD PCITMC12_ReadByte dwBoardNo dwOffset Data Parameter dwBoardNo_ Input board number from 1 to N dwOffset Input offset address Data output one byte of data 8 bit Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note call PTMC12_DetectCards before calling this function call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards call PTMC12_OpenBoard before calling this function PTMC12_ReadByte dwBoardNo 0x14 Data gt Read D I 0 7 refer to Sec 3 3 3 of OME PCI TMC12 A User s Manual OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 28 2 4 4 PTMC12_ReadWord e Description Read one word 16 b
21. e install shield will install kernel driver DLL driver amp application demo programs All DLL driver amp demo programs are same for all windows operating systems 95 98 NT 2000 XP But the kernel drivers are different for different system as follows for windows 95 98 gt will copy WINDRVR VXD to C WIN9S SYSTEM VMM32 for windows NT 2000 gt will copy WINDRVR SYS to C WINNT SYSTEM32 DRIVERS for windows XP gt will copy WINDRVR SYS to C WINDOWS SYSTEM32 DRIVERS The DLL amp demo programs will not work if the kernel driver is not installed correctly The install shield will copy the correct kernel driver to correct position if you select correct O S 95 98 NT 2000 XP After the software driver is installed the related header file amp declaration files are given as follows Demo BCB4 PCITMC12 H PCITMC12 LIB Delphi4 PCITMC12 PAS VB6 PCITMC12 BAS VCPP6 PCITMC12 H PCITMC12 LIB demo program for Borland C Builder 4 lt Header file Linkage library for BCB4 only for Delphi 4 lt Declaration file for Visual Basic 6 lt Declaration file for Visual C 6 Header file Linkage library for VC 6 only OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wren 15 In this chapter we use some keywords to indicate the attribute of Parameters Keyword Is Par
22. e will show the lock status of the OME PCI TMC12 A board Syntax DWORD PTMC12_ReadBoardStatus dwBoardNo Parameter dwBoardNo Input OME PCI TMC12 A board number Return 0 this OME PCI TMC12 A is not locked by other program 1 this OME PCI TMC12 A is locked by other program Note call PTMC12_DriverInit before calling this function call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards call PTMC12_OpenBoard to lock the target OME PCI TMC12 A Then the locked OME PCI TMC12 A is dedicated to this program call PTMC12_CloseBoard to un lock the target OME PCI TMC12 A Then other program can call PTMC12_OpenBoard to lock this PCIl_TMC12 A board OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 23 2 3 5 PTMC12_Readid e Description This subroutine will show the IDs of detected OME PCI TMC12 A boards e Syntax DWORD PTMC12_ReadId dwBoardNo dwVendorld dwDeviceld dwSubVendorld dwSubdeviceld Parameter dwBoardNo Input OME PCI TMC12 A board number dwVendorlD output vendor ID of this board dwDevicelD output device ID of this board dwSubVendorlD output sub vendor ID of this board dwSubDevicelD output sub device ID of this board Return O this is a valid board no gt all return IDs are valid Other this is not a valid board no gt all return IDs are invalid e Note 1 call PTMC12_Driverlnit before calling this function 2 call PTMC12_D
23. eedFindBoards dwBoardNo gt N e Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 30 2 5 2 PTMC12_RemoveAllCallBackFunc Description Disable interrupt amp call back functions of all OME PCI TMC12 A installed in this PC Syntax DWORD PTMC12_InstallCallBackFunc Parameter void Return 0 Write OK PCl_DriverNoOpen kernel driver not found PCl_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 31 2 5 3 PTMC12_Enablelnt Description Enable interrupt of OME PCI TMC12 A Syntax DWORD PTMC12_Enable dwBoardNo Parameter dwBoardNo Input board number from 1 to N Return 0 Write OK PCl_DriverNoOpen kernel driver not found PCl_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N Note 1 call PTMC12_DetectCards before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBo
24. em All demo programs amp DLLs are same for 95 98 NT 2000 XP But the kernel drivers are different for different system as follows for windows 95 98 gt will copy WINDRVR VXD to C WIN9S SYSTEM VMM32 for windows NT 2000 XP gt will copy WINDRVR SYS to C WINNT SYSTEM32 DRIVERS The DLL amp demo programs will not work if the kernel driver is not installed correctly The install shield will copy the correct kernel driver to correct position if you select correct O S 95 98 NT 2000 XP Refer to CallDII pdf for more information about how to call the DLL functions with VC 5 VB5 Delphi3 and Borland C Builder 3 Refer to step5 of Sec 1 2 2 for more information OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 35 3 1 Program Architecture In general the first function called must be PTMC12_DriverInit it will initiate the kernel mode driver The second function called must be PTMC12_ DetectBoards it will find all OME PCI TMC12 A installed in this PC The PCL OpenBoard will open amp lock the target OME PCI TMC12 A until PCI_CloseBoard or PCI_CloseAll is called For single task applications only one user s program control OME PCI TMC12 A So the program will open amp lock OME PCI TMC12 A in the program is start amp un lock OME PCI TMC12 A in the program is exit as follows PTMC12 _DriverInit PTMC12_ DetectBoards omg 1 PTMC12 ReadWord PTMC12_ WriteWord P
25. esssssssseesereesssssestererressesterreesesseseerrorsesseseereerne 3 2 REPORT PROBLEMS ccccccccccccssssssesccccccccussuesescecccessuseuesesceccesesuueaeaececceseeaaea 1 Introduction The demo programs written in VC VB Delphi and BCB are provided in the companion CD These demo programs will call the DLL PCITMC12 DLL to access the hardware of OME PCI TMC12 The PCITMC12 DLL will call the kernel driver Windrvr vxd or Windrvr sys For VC demo program VB demo program Delphi demo program BCB demo program User mode Same for 95 98 NT 2000XP PCITMC12 DLL Windrvr vxd Windrvr sys For 95 98 For WinNT 2000 XP _ Kernel mode The install shield will install kernel driver DLL driver amp application demo program to system All demo program amp DLL are same for 95 98 NT 2000 XP But the kernel drivers are different for different systems as follows for windows 95 98 gt will copy WINDRVR VXD to C WIN9S SYSTEM VMM32 for windows NT 2000 gt will copy WINDRVR SYS to C WINNT SYSTEM32 DRIVERS for windows XP gt will copy WINDRVR SYS to C WINDOWS SYSTEM32 DRIVERS Note 2000 amp XP use the same driver OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 4 The DLLs amp demo programs will not work if the kernel driver is not installed correctly The install shield will copy the correct kernel driver to correct position if you select correct O S 95 98 NT 2000 XP T
26. etectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 ween 24 2 3 6 PTMC12_ CloseBoard e Description This subroutine will unlock the OME PCI TMC12 A then other program can use this OME PCI TMC12 A now e Syntax DWORD PTMC12_CloseBoard dwBoardNo e Parameter dwBoardNo Input OME PCI TMC12 A board number e Return PCl_NoError OK PCl_BoardlsNotOpen This OME PCI TMC12 A is not locked by others PCl_BoardNoExceedFindBoards dwBoardNo gt available board number e Note 1 call PTMC12_Driverlinit before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function 2 3 7 PTMC12_CloseAll e Description This subroutine will unlock all OME PCI TMC12 A s installed in this PC then other program can use these OME PCI TMC12 A s now e Syntax DWORD PTMC12_CloseAll Parameter void Return PCI_NoError OK PCI_BoardIsNotOpen This OME PCI TMC12 A is not locked by others PCI_BoardNoExceedFindBoards dwBoardNo gt available board number Note 1 call PTMC12_Driverlnit before calling this function 2 call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards 3 call PTMC12_OpenBoard before calling this function OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 wee 25 2 4 Read Write to OME PCI
27. he install shield also copy all related documentations of OME PCI TMC12 A to user s hard disk Refer to C allDIl pdf for more information about how to call the DLL functions with VC 5 VB5 Delphi3 and Borland C Builder 3 Refer to step 5 of Sec 1 1 2 for more information The software architecture is given as follows PTMC12_DriverInit PTMC12_ DetectBoards PTMC12_ OpenBoard PTMC12 ReadWord PTMC12_ WriteWord PTMC12_ CloseAll Note 1 OME PCI TMC12 A maybe OME PCI TMC12 or OME PCI TMC12A Refer to Sec 3 4 of OME PCI TMC12 A User s Manual not this manual for comparison of TMC12 amp TMC12A 2 PTMC12 DLL is designed for OME PCI TMC12 3 IfJ28 of OME PCI TMC12A is set to OME PCI TMC12 it can use PTMC12 DLL as same as OME PCI TMC12 OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 5 1 1 Installation Quick Start The OME PCI TMC12 can be used in Windows 95 98 NT 2000 XP The recommended installation steps are given in Sec 1 1 1 Sec 1 1 4 1 1 1 Step 1 Software Installation Step 1 insert the companion CD in the CD ROM drive Following screen should appear M OMEGA_B20031112 DHR SE OMEGA g Install Toolkits Software Manuals J Browse CD ROM Contents J Contact Us CO View Readme txt LJ View Our Web Site on the Internet EJ View Our FTP Site on the Internet LJ Install Acrobat Reader 5 0 5 Step 2 click the first item Toolkits Software M
28. ion Systems that you running For example Windows 3 1 Windows for Workgroups Windows NT 4 0 etc L What kinds of our products that you using Please see the product s manual 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 2 If the problem involves other programs or hardware devices what devices or version of the failing programs that you using 6 Other comments relative to this problem or any Suggestions will be welcomed After we received your comments we will take about two business days to testing the problems that you said And then reply as soon as possible to you Please check that we have received your comments And please keeping contact with us E mail das omega com Web Site http www omega com OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 39 WARRANTY 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 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 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
29. it of data from OME PCI TMC12 A e Syntax DWORD PCITMC12_ReadWord dwBoardNo dwOffset Data Parameter dwBoardNo_ Input board number from 1 to N dwOffset Input offset address Data output one byte of data 16 bit Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExceedFindBoards dwBoardNo gt N e Note call PTMC12_DetectCards before calling this function call PTMC12_DetectBoards to detect all OME PCI TMC12 A boards call PTMC12_OpenBoard before calling this function PTMC12_ReadWord dwBoardNo 0x14 Data gt Read D I 0 15 refer to Sec 3 3 3 of OME PCI TMC12 A User s Manual x N gt OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 29 2 5 Interrupt Related DLLs 2 5 1 PTMC12_InstallCallBackFunc e Description Install user s call back function to driver So if the interrupt signal is active driver will call this function once e Syntax DWORD PTMC12_InstallCallBackFunc dwBoardNo dwintType user_function e Parameter dwBoardNo_ Input board number from 1 to N dwintType Input 1 initial low amp active high 2 initial high amp active low user_function Input address of user s call back function e Return 0 Write OK PCl_DriverNoOpen kernel driver not found PClI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCl_BoardNoExc
30. mp ask user to provide Plug amp Play driver Refer to PnPInstall pdf step3 of Sec 1 1 2 for more information 1 1 4 Step 4 Hardware Diagnostic Step 1 run DllTest of VB demo program as follows step7 of Sec 1 1 2 Initial Steps ReadIDs PTMC12_ShortSub dwBoardNo 1 2 3 PTMC12_GetDiNersic III PTMC12_ReadBoardid P PTMC12_Driverlnit dwVendorld PTMC12_DetectBoards 1 dwDeviceld dwSubVendorld dwSubDeviceld Click Initial Steps first to check the kernel driver DLL amp PCITMC12 DetectCards Check the value of PCITMC12_DriverInit must be 0 Click ReadId to show the IDs of selected OME PCI TMC12 in this PC The IDs of OME PCI TMC12 A cards are as follows Vendor ID 10B5 Device ID 9050 Sub vendorID 2129 Sub deviceID 9912 Note The TMC12 amp TMC12A have identical IDs OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 10 Step 2 Install a 20 pin flat cable between CON2 amp Con3 of OME PCI TMC12 A run DioTest of VB demo program as follows step7 of Sec 1 1 2 PTMC12_Driverlnit RAA DAO PTMC12_DetectBoards Write to D O Wa dwBoardNo 1 2 3 1 Read From DA Click R W D I 0 to write to D O amp Read D I as follows write data is given in Write to D O PTMC12_Driverlnit D i j PTMC12_DetectBoards i Write to D O amp H5555 i Read From DA i 5555 dwBoardNo 1 2 3 Change amp H5555 to HAAAA amp Click KA D YO as follows PT
31. t need this file Step 4 Click PnPInstall to read this PDF file for plug amp play installation For Windows 98 2000 XP system will auto detect the OME PCI TMC12 amp ask you to install software driver Read this PDF file carefully if you are not familiar with plug amp play installation You will need it in next steps Step 5 Back to the previous directory amp click Manual as follows BB i CallDLL ResCheck pen Manual CallDll pdf gt how to call DLL by VC VB Delphi amp BCB ResCheck gt how to check the allocated system resource of OME PCI TMC12 Step 6 Back the previous directory amp click Demo as follows ef a m vc vepp6 Demo Bcb4 gt demo program for BCB 4 0 Delphi4 gt demo program for Delphi 4 0 VB6 gt demo program for VB 6 0 VC6 gt demo program for VC 6 0 C language VCPP gt demo program for VC 6 0 C language Step 7 click VB6 as follows DilTest SramTest TestDio2 DioTest gt Test DA O of OME PCI TMC12 DIllTest gt test DLL driver amp detect OME PCI TMC12 TestDio2 gt Write D O then read D I of two OME PCI TMC12 cards TestId2 gt gt Show IDs of two OME PCI TMC12 cards Step 8 shutdown amp power off your PC OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 9 1 1 3 Step 3 Hardware Installation Step 1 Install your OME PCI TMC12 A in the PC Step 2 Power on your PC Step 3 Now 98 2000 XP will find a OME PCI TMC12 card a
32. tep 2 Check the installed software Assume you use the default directory amp name of install shields the software will be installed in C DAQPRO as follows Step 1 click C OMEGA as follows File Edit View Favorites Tools Help Q rack k ys Search E Folders Ez Address C OMEGA File and Folder Tasks G J Gad ud O J Make a new folder PCI TMC12 PCI 1202 PISO813Lw PISO 813 BCPH_ENG Win2000 Win2000 dD riol iko tata ku Eben Step 2 click PCI TMC12 as follows File Edit View Favorites Tools Help Q Back amp ba Search Folders BE Address IC C OMEGAYPCI TMC12 File and Folder Tasks CJ CJ Kal J g Inf 3 Make a new folder Demo Driver Manual Readme txt dD e ee ee ets KE Demo gt demo program Driver gt DLL Inf gt for plug amp play gt windows 98 2000 XP need this information Manual gt user s manual amp other literature refer to chapter 3 for more information ReadMe gt Read this file for more information Step 3 click Inf as follows File Edit view Favorites Tools Help Q sack y Search Folders Gs Address C OMEGA PCI TMC12 InF File and Folder Tasks CI Make a new folder PnP Install pdf SoftInst pdf OME PCI TMC12 inf gt inf file for windows 98 2000 XP OME PCI TMC12 A Software User s Manual Ver 2 0 Dec 2002 PnPInstall gt read this file for plug amp play installation steps Note 95 amp NT 4 0 do no
Download Pdf Manuals
Related Search
Related Contents
El Epson EMP-732 es el compañero de presentaciones profesional GE E1250tw 12mp Touchscreen Digital Camera 5x W/ 3" Lcd Dell™ Vostro™ 400 Manual del propietario - Mini Tower Avaya Configuring IP Utilities User's Manual Manual de Instrucciones GREENTEL Serial Device Server User Manual H8DA(M)JA [轉換].ai - Anly Electronics Co., Ltd. 水質チェッカ WQC-22A 東亜DKKの製品カタログ OM, Flymo, L470, 96335105900, 2003 Copyright © All rights reserved.
Failed to retrieve file