Home

io board user manual for calling dlls

image

Contents

1. and TMC12 Lib Note The H and Lib files are different in VC and BCB Step 2 The source program must include the declaration file For example include TMC12 H Refer to Figure 2 5 1 E Unitl cpp Fils Ed Unitl cpp RSS ESR EEEEZESSEER ZENE EZSEZEEZEI include lt vcl h gt pragma hdrstop include Unitl a include TMC h pragma package smart init pragma link capin pragma resource dfm Word wTotalBoards Word wiet TShape PSp 16 TForml Forml __fastcall Trorml TrormlTComnponent Owner TForm Owner zh 55 Insert Figure 2 5 1 Include the declaration file Step 3 Select the menu items Project Add to Project Refer to Figure 2 5 2 Project Run Component Database Tools Add to Project ohitt F 1 1 Remove from Project Import Type Library Add to Repository Figure 2 5 2 Select the menu items Project Add to Project 17 Step 4 Change the field Files of type to Library file lib Refer to Figure 2 5 3 Step 5 Select the library to include For example TMC12 Lib Refer to Figure 2 5 3 Step 6 Click the button Open Refer to Figure 2 5 3 Add to project Lookin a Contig f ci ect EEE File name Tmc12 lib Files of type Library file lib Cancel Figure 2 5 3 Select the library to include Step 7 Select the menu items View
2. Project Manager Refer to Figure 2 5 4 View Project Run Component Dati Project Manager Ltrl Alt F 7 1 Project Source Project Makefile i Project Group Source Object Inspector Fl Figure 2 5 4 Select the menu items View Project Manager Step 8 Check the Project Manager to see if the library has been added into this project Refer to Figure 2 5 5 Project Manager e XK e New Remove Actvate EHEH Projecti EI Frojectl cpp H E Uniti i n SETHC12 lib FANTFrojs a TMC Te DEMO Bcbhs DIOVTMe 2 Figure 2 5 5 Check 1f the library has been added into this project Step 9 End 18 WARRANT Y 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 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 including but not limited to mi
3. 7 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 Table of Contents 1 2 3 3 1 3 2 3 3 3 4 INTRODUETIO N in iaia 4 DECLARATION FILES sesesscsesesesesesesesessocssoscscscsosesesesesecsoeososcsososesesesesesesessososcscseseseseseseseoeseoe 5 LINKEN erna a a 9 MISTING VISUAL GC Furedi E E E NE EEEE 9 Woo L ili libica 11 O RCNP OEB TE aaa 14 CSING DELP 8 eee ee eee 16 USING BORLAND C BUILDER ccccccecceccccccecceccececcuccesteceecesce
4. A Rotameters Gas Mass Flowmeters amp Flow Computers WA Air Velocity Indicators WA Turbine Paddlewheel Systems lA Totalizers amp Batch Controllers pH CONDUCTIVITY WA pH Electrodes Testers amp 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 lA Recorders Printers amp Plotters HEATERS WA Heating Cable WA Cartridge amp Strip Heaters WA Immersion amp Band Heaters WA Flexible Heaters WA Laboratory Heaters ENVIRONMENTAL MONITORING AND CONTROL lA Metering z Control Instrumentation WA Refractometers WA Pumps amp Tubing LA Air Soil amp Water Monitors WA Industrial Water amp Wastewater Treatment WA pH Conductivity amp Dissolved Oxygen Instruments M3953 0403
5. ORE 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 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 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 WA Thermocouple RTD amp Thermistor Probes Connectors Panels amp Assemblies WA Wire Thermocouple RID amp Thermistor lA Calibrators amp Ice Point References 4 Recorders Controllers amp Process Monitors WA Infrared Pyrometers PRESSURE STRAIN AND FORCE WA Transducers amp Strain Gages WA Load Cells amp Pressure Gages WA Displacement Transducers WA Instrumentation amp Accessories FLOW LEVEL W
6. User s Guide Gmega com Shop online at www omega com e mail info omega com OME SERIES DATA ACQUISITION CARDS Calling DLLs User 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 Espanol 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 5
7. cally when the user installs the software DLL files gt C Windows System for Windows 95 98 user Vxd files gt C Windows System for Windows 95 98 user DLL files 3 C WinNT System32 for Windows NT 2000 user Sys files C WinNT System32 Drivers for Windows NT 2000 user The SYS files need to be registered under Windows NT thus if the user copies these files manually they must refer to the file README TXT for the software driver to create the registry values 2 Declaration Files In order to use the DLL functions the declaration files for the programming language are required The user can find these declaration files under the driver folder The DLL and declaration files for Windows 95 98 Windows NT and Windows 2000 are all different so please exercise caution when choosing the files to incorporate into your program For example TMC12 Win95 Driver BCB3 TMC12 H gt Header file TMC12 LIB gt Import Library Delphi3 TMC12 PAS 72 Declaration file i TMC12 BAS gt Declaration file TMC12 H gt Header file TMC12 LIB gt Import Library Note The LIB file is different between the BCB and VC SO TMC12 Win95 E B CHeade e Demo ISKB LIB File Figure 2 1 The declaration file for Visual C 5 0 For example the user would find the declaration files TMC12 h and TMC12 Lib for Visual C 5 0 in t
8. ccecescescesescescescescesesceseuseuses 17 3 5 1 Introduction The driver for the OME data acquisition products includes one or more DLL files and VXD SYS files to be used by higher level computer languages The DLL files are written in Visual C and provide many functions to perform a variety of Analog input output Digital input output and Counter Timer tasks with the OME hardware The DLL files are in standard Win32 DLL format and can be used with Windows 95 98 NT 2000 XP With these functions the user does not need to program the lower level hardware controls The DLL files can easily be integrated into programs written in higher level computer languages A large variety of demo programs written in Visual C Delphi Borland C Builder and Visual Basic are provided The DLL files provide powerful easy to use subroutines for users to develop their data acquisition applications Analog input output Digital input output and RS 232 RS 485 Communication applications This manual describes how to call the DLL functions with Visual C 5 0 Visual Basic 5 0 Delphi 3 0 and Borland C Builder 3 0 The OME PCI TMC12 DAQ Card is used as an example Before the using the DLL the user must first install the software driver Please note the folder into which software is installed This folder will contain all the drivers demo programs and manuals In addition the DLL VXD and SYS files will be copied into the following folders automati
9. file to include For example the declaration file TMC12 BAS Refer to Figure 2 3 2 Step 5 Click the button Open Refer to Figure 2 3 2 Add Module KE Pow Existing Look in Sconig ES sd ct EE v l Files of type Basic Files bas Cancel Help M Don t show this dialog in the future Figure 2 3 2 Select the declaration file to include 14 Step 6 Check the project manager to verify that the module has been added successfully Refer to Figure 2 3 3 Project Demol x calo Demol DEMOL YBP E Forms E Modules 4 TMC12 TMC12 bas Figure 2 3 3 Check if the module has been added into the project Step 7 End 15 3 4 Using Delphi Step 1 Copy the declaration file into the user s project folder For example TMC12 PAS Step 2 Include code in the user s source program to use the declaration file For example Uses TMC 2 Refer to Figure 2 4 1 E Unit pas Iof x Uniti Var Forml TForml implementation ses TMC12 gt include TMC12 Pas file oh DM Var wTotalBoards Word wSet Word Pop Array 0 15 of TShape procedure TForml ButtonlClick Sender TObject hasrin 113 549 Insert Figure 2 4 1 To use the declaration file Step 3 End 16 3 5 Using Borland C Builder Step 1 Copy the declaration files into the user s project folder For example declaration files TMC12 H
10. he declaration files with Visual Basic and Delphi In addition using the header file and importing libraries with Visual C and Borland C builder is also described For more information about the DLL functions please refer to the software manual included with the Development Toolkit 3 1 Using Visual C Step 1 Execute the MSDEV BIN VCVARS32 BAT to setup the environment Step 2 Copy the declaration files into the user s project folder For example declaration files TMCI12 H and TMC12 Lib Note The H and Lib files are different in VC and BCB Step 3 The source program must include the declaration file For example include TMC12 H Step 4 Edit the source program Refer to demo programs Step 5 Edit the MAKE file Refer to file XXX mak for demo programs For example demol exe demol obj TMC12 lib link SUBSYSTEM windows OUT demol exe demol obj TMC12 lib DEFAULTLIB user32 lib gdi32 lib winmm lib comdlg32 lib comctl32 lib Demol obj demol c TMC12 h cl c DSTRICT G3 Ow W3 Zp Tp demol c Step 6 Uses NMAKE to make the user s project For example NMAKE f demol mak Step 7 End NOTE The Lib file 1s used at linking time and the DLL and Vxd are used at run time for Windows 95 98 The DLL and Sys files for Windows NT 10 3 2 Using MFC The key points are given below Step 1 Use MFC wizard to create source code Step 2 Copy the declaration files into the user s pr
11. he folder C Program Files DAS TMC12 Win95 Driver VC5 Note The Lib files are different for VC and BCB xpl oring Vb5 mC Demo B Driver 2 Beb3 O Delphi3 A vb5 A ves 0 Install O Manual a O InstallShield a Internet Explorer Figure 2 2 The declaration file for Visual Basic 5 0 For example the user would find the declaration file TMC12 BAS for Visual Basic 5 0 in the folder C Program Files DAS TMC12 Win95 Driver VB5 na Delphi3 EI TMCI2Wn95 E H E Demo ELI Driver i e Beb3 I Delphi3 Vb5 ven CI Install CI Manual 4 0 InstallShield a Internet Explorer 5KB Delphi Past Figure 2 3 The declaration file for Delphi 3 0 For example the user can find the declaration file TMC12 PAS for Delphi 3 0 in the folder C Program Files DAS TMC12 Win95 Driver Delphi3 l Exploring Bch3 All Folders A TCI 2 Wind H Demo BO Driver i 1 42 Bb CI Delphi3 CI Vb5 i L T Ves C Install Manual 3 04 InstallShield a Internet Explorer a A Tmel aj Tmc12 lib 3KB LIB File Figure 2 4 The declaration file for Borland C Builder 3 0 For example the user can find the declaration file TMC12 H and TMC12 Lib for Borland C Builder 3 0 in the folder C Program Files DAS TMC12 Win95 Driver BCB3 Note The Lib files are different for VC and BCB 3 Linking This chapter describes how to uses t
12. oject folder For example declaration files TMC12 H and TMC12 Lib Note The H and Lib files are different in VC and BCB Step 3 The source program must include the declaration file For example include TMC12 H Step 4 Select the menu items Project Add To Project Files Refer to Figure 2 2 1 Project Build Tools Window Help set Active Project t lormat r dja Add To Project New Dependencies Ci New Folder Settings Alt F Export Makefile HE Data Connection Insert Project into Workspace Ez Components and Controls Figure 2 2 1 Select the menu items Project Add To Project Files Step 5 Select the declaration file to include For example TMCI12 h Refer to Figure 2 2 2 Step 6 Click the button OK Refer to Figure 2 2 2 11 Insert Files into Project Al el E le testveDoc cpp ih MainFrrn h h testvcDoch Ih Resource h ej testvcView cop lej StdAte cop h testycview h Ih Std Ate DfT meiz TIL File name Tmet2 h Files of type C Files c cpp oo0c tlh tlh rc Cancel Insert into Jiestwc Figure 2 2 2 Select the declaration file to include 12 Step 7 Select the menu items Project Add To Project Files again Refer to Figure 2 2 3 Project Build Tools Window Help set Active Project t lormat r 4a Add To Project New De
13. pendencies Ci New Folder Settings Alt F Export Makefile HE Data Connection Insert Project into Workspace Ea Components and Controls Figure 2 2 3 Select the menu items Project Add To Project Files Step 8 Change the field Files of type to Library Files lib Refer to Figure 2 2 4 Step 9 Select the library file to include For example TMCI12 lib Refer to Figure 2 2 4 Step 10 Click the button OK Refer to Figure 2 2 4 Insert Files into Project Filename Tmoiz ib Files of type Library Files lib Cancel Insert into Jiestuc Figure 2 2 4 Change the field Files of type to Library Files lib Step 11 End NOTE The Lib file is used in linking time and the DLL and Vxd is used in run time for Windows 95 98 The DLL and SYS files for Windows NT 2000 13 3 3 Using Visual Basic Step 1 Copy the declaration file into the user s project folder For example TMC12 BAS Step 2 Select the menu items Project Add Module Refer to Figure 2 3 1 Demo Microsoft Visual Basic desig File Edit View Project Format Debug Bun T B ae E i Add corm 5 Add MDI Form p a Add Module Ge 183 Add Class Module Figure 2 3 1 Select the menu items Project Add Module Step 3 Select the page Existing Refer to Figure 2 3 2 Step 4 Select the declaration
14. s 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 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 BEF
15. shandling 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 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 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 i

Download Pdf Manuals

image

Related Search

Related Contents

  OCU 103 Bedienungsanleitung  施工説明書 取扱説明書  ニチベイ スライディングウォール60  第2回総会(平成20年7月30日開催)  Benutzerhandbuch  TK-C685E TK-C686E TK-C685WPE TK  U S E R M A N U A L  仕 様 - パナソニック  OEM PANEL THERMAL PRINTER User Manual – Rev  

Copyright © All rights reserved.
Failed to retrieve file