High Level Language Programming; C Programming; Delphi Programming; Basic Programming - PEP CP380 Manual

Digital i/o board for compactpci applications
Table of Contents

Advertisement

CP380
4. Programming

4.1 High Level Language Programming

For high level language programming, the following files are required:
ME9x_32.DLL (CP380 family system driver DLL in the Windows system directory)
MEDLG32.DLL (Dialogue DLL in the Windows system directory)
ME9x.H, ME9x.PAS or ME9x.BAS (CP380 family header/include files matching
programming environment)
MEDEFS.H,
matching the programming environment)
ME9x.32.LIB, ME9x.BC.LIB (CP380 library file for Visual C++/Borland C)
Make sure that the paths required to find the above files are set correctly in the compiler
and linker.
4.1.1

C Programming

The header files (ME9x.H), including the definitions of the API function calls, have to be
linked into your project for Visual C++, version 4.0 or later. If macro definitions are used,
the header file MEDEFS.H must also be linked into the project. Please be sure to read
the notes in these files.
4.1.2

Delphi Programming

The TPU source files (ME9x.PAS), including the definitions of the API function calls,
have to be linked into your project for Delphi version 2.0 or later. If macro definitions are
used, the macro definition file (MEDEFS.PAS) must also be linked into the project.
Please be sure to read the notes in these files.
4.1.3

Basic Programming

The include files (ME9x.BAS), including the definitions of the API function calls, have to
be linked into your project for Visual Basic version 4.0 or later. If macro definitions are
used, the macro definition file (MEDEFS.BAS) must also be linked into the project.
Please be sure to read the notes in these files.
$
$
Important Note:
Interrupt service functions (e. g. _me94EnableInt) are not sup-
ported under Visual Basic.
4.1.4

Example Programs

To facilitate understanding of programming the boards, some example programs are
provided with source code. These example programs are automatically installed in the
ID 19313, Rev. 0100
MEDEFS.PAS or MEDEFS.BAS (CP380 family macro definitions
® PEP Modular Computers GmbH
Programming
Page 4 - 3

Advertisement

Table of Contents
loading

Table of Contents