Opto-isolated digital-i/o board with bit-pattern detection, 3 x 16-bit counters (8254) (alternatively: frequency measurement and pulse generator) (50 pages)
If there are any items missing or if an item is damaged, contact Meilhaus Electronic immediately. Before you install the board in your computer, read this manual carefully, especially the chapter describing board installation.
The ME-1000/64 can be expanded to be a 128 channel version at any time by using the ME-1001 extender board. System Requirements The ME-1000 can be installed into any computer with an Intel Pentium or compatible computer with a free standard PCI resp. CompactPCI slot. Introduction Page 6 Meilhaus Electronic...
Graphical programming tools Meilhaus VEE Driver System for HP VEE V 4.0 or higher, HP VEE Lab, Agilent VEE Pro and Agilent VEE OneLab Driver System for LabVIEW 4.0 or higher Meilhaus Electronic Page 7 Introduction...
*If the Windows version is supported by the appropriate board type (see readme files). Test Program For test issues a test program is provided. The appropriate test program can be found in a corresponding subdirectory of C:\MEILHAUS (Default). Condition: system driver correctly installed. Meilhaus Electronic Page 9 Installation...
All unused input channels should be grounded to avoid crosstalk. Important Note : The external connections to the board should only be made or removed in a powered down state. For the pin configuration of the 78pin female D-Sub see „Pinout” on page 43). Meilhaus Electronic Page 11 Hardware...
500 mA. The pin configuration of the D-Sub 78pin connec- tor can be found in Appendix „B Pinout“ on page 43. Important note: A port configured as output should never be switched by an input signal! Hardware Page 12 Meilhaus Electronic...
4.7 k Ω (recommended) can be added individually for each port. Note that when pull up resistors are used, the current out- =4,7 k Ω I put of the lines is decreased (e. g. if R =3,1 mA). Meilhaus Electronic Page 13 Hardware...
Page 14
RN9, 11,12, 15 Port B RN2, 13, 14, 16 Port C RN1, 3, 4, 6 Port D RN5, 7, 8, 10 Table 2: Assignment of resistor arrays ME-1000 Diagram 3: Position of the resistor arrays ME-1000 PCI Hardware Page 14 Meilhaus Electronic...
Page 15
Manual ME-1000 Rev. 1.4E RN10 ME-1000 Diagram 4: Position of the resistor arrays ME-1000 cPCI Meilhaus Electronic Page 15 Hardware...
= 0; //Configure port B as an input port return = me1000DIOSetPortDirection(iBoardNumber, PORTB, MEINPUT); if (return == 0) then me1000GetDrvErrMess("ME1000-Test"); endif; //Read in the low byte of port B return = me1000DIGetByte(iBoardNumber, PORTB, BYTE_0, ipByteValue); Meilhaus Electronic Page 17 Programming...
VEE documentation and the VEE online help index. 4.2.1 User Objects For convenient use of the driver, predefined „User Objects“ have been developed which internally call API functions. They can be called by the additional menu item „ME Board“ and be included Programming Page 18 Meilhaus Electronic...
VEE driver installation. If you call UOs under the „ME Board“ menu which are not installed, an error message oc- cures: File ´filename´ was not found. Error number: 700 If necessary, you can install the additional VEE components any time (see „ME-Power-CD“). Meilhaus Electronic Page 19 Programming...
VI. 4.3.2 Example Programs For demonstration purposes and for easier understanding, demo programs using the important virtual instruments (VIs) have been written. They can be called by the menu item „File - Open“. Programming Page 20 Meilhaus Electronic...
"me1000…". The function names were selected to be as descriptive as possible. Every function name incorporates several components represen- ting the different function groups (e. g. "DIO" for "Digital In/Out"). Meilhaus Electronic Page 21 Function Reference...
Page 22
To identify data types, the following letters will be used: i… or dw… 32 bit integer value s… or w… 16 bit short value c… or b… 8 bit character value p… pointer of data type (i, s, l or c) Function Reference Page 22 Meilhaus Electronic...
'0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess me1000GetDevInfo Description Function is used for: ME-1000/64 and ME-1000/128. This function is for experienced programmers providing detailed in- formation of the selected board. Function Reference Page 24 Meilhaus Electronic...
Page 25
<dwPortCountPLX> Number of port address locations occupied by the PCI controller <dwSerialNumber> Serial number of the board <dwBusNumber> Bus number of PCI bus (usally 0) <dwHWRevision> Hardware version of the board <dwVersion> Board type Meilhaus Electronic Page 25 Function Reference...
Page 26
The version number is returned as a 32 bit value. The upper 16 bits contain the main version number and the lower 16 bits contain the sub version number. E. g.: 00020001Hex indicates the version num- ber 2.01 Function Reference Page 26 Meilhaus Electronic...
Page 27
Definitions int me1000GetSerialNumber (int iBoardNumber, int *piSerialNumber;) Delphi: Function me1000GetSerialNumber (iBoardNumber: integer; Var piSerialNumber: integer): integer; Basic: Declare Function me1000GetSerialNumber Lib „me1000“ Alias "_VBme1000GetSerialNumber@8" (ByVal lBoardNumber As Long, ByRef lSerialNumber As Long) As Long Meilhaus Electronic Page 27 Function Reference...
(ByVal lBoardNumber As Long, ByVal lPortNo As Long, ByVal lDir As Long) As Long Parameters <BoardNumber>Board number for ME-1000 to be accessed, : 0, 2 : 1, n : n-1), see also page 21 Function Reference Page 28 Meilhaus Electronic...
Page 29
Function me1000DIGetBit (iBoardNumber, iPortNo, iBitNo: integer; Var piBitValue: integer): integer; Basic: Declare Function me1000DIGetBit Lib „me1000“ Alias "_VBme1000DIGetBit@16" (ByVal lBoardNumber As Long, ByVal lPortNo As Long, ByVal lBitNo As Long, ByRef lBitValue As Long) As Long Meilhaus Electronic Page 29 Function Reference...
Page 30
Read in a byte from a port defined as input. Important Note! To properly configure the port the function me1000DIOSetPortDirection must first be called for the selected port. Definitions int me1000DIGetByte (int iBoardNumber, int iPortNo, int iByteNo, int *piByteValue); Function Reference Page 30 Meilhaus Electronic...
Page 31
'0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess me1000DIGetWord Description Function is used for: ME-1000/64 and ME-1000/128. Port C and D only for ME-1000/128. Read in a 16 bit word from a port defined as input. Meilhaus Electronic Page 31 Function Reference...
Page 32
Only the lower 16 bits are significant. Return value If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess Function Reference Page 32 Meilhaus Electronic...
Page 33
Return value If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess. Meilhaus Electronic Page 33 Function Reference...
Page 34
Sets the state of a selected output line. Important Note! To properly configure the port the function me1000DIOSetPortDirection must first be called for the selected port. Definitions int me1000DOSetBit (int iBoardNumber, int iPortNo, int iBitNo, int iBitValue); Function Reference Page 34 Meilhaus Electronic...
Page 35
Function is used for: ME-1000/64 and ME-1000/128. Port C and D only for ME-1000/128. Writes a byte to a port defined as output. Important Note! To properly configure the port the function me1000DIOSetPortDirection must first be called for the selected port. Meilhaus Electronic Page 35 Function Reference...
Page 36
'0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess. me1000DOSetWord Description Function is used for: ME-1000/64 and ME-1000/128. Port C and D only for ME-1000/128. Writes a 16 bit word to a port defined as output. Function Reference Page 36 Meilhaus Electronic...
Page 37
0000Hex...FFFFHex (0...65535) Return value If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess Meilhaus Electronic Page 37 Function Reference...
Page 38
00000000Hex...FFFFFFFFHex (0...4294967295). Return value If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is returned. The cause of the error can be determined with the function me1000GetDrvErrMess Function Reference Page 38 Meilhaus Electronic...
Pointer to a string; the return value is the error code. <BufferSize> Buffer size in number of characters for <Errortext> will be allocated (recommended: max. 128 characters). Return value The function always returns the DLL global variable <DLLErrorCode> Meilhaus Electronic Page 39 Function Reference...
L: 55 mm, H: 100 mm Connectors all models: 78pin D-Sub female connector; additional for ME-1000/128: further 78pin D-Sub female connector on ME-1001 extender board Operating temperature 0…70 °C Storage temperature 0…50°C Relative humidity 20…55% (non condensing) Meilhaus Electronic Page 41 Specifications...
Page 42
Rev. 1.4E Manual ME-1000 CE Certification EMC Directive 89/336/EMC Emission EN 55022 Noise immunity EN 50082-2 Specifications Page 42 Meilhaus Electronic...
Rev. 1.4E Manual ME-1000 Accessories Optionally the following products are available: ME-AB-D78M 78pin D-Sub connector block (male) for ME-1000 and ME-1001 ME-AK-D78 78pin D-Sub cable (male - female), 2 m, for ME-1000, ME-1001 Accessories Page 44 Meilhaus Electronic...
Page 45
Service Department Fischerstraße 2 D-82178 Puchheim/Germany If you would like to send a board to Meilhaus Electronic for re- pair, please do not forget to add a full description of the pro- blems and as much information as possible, including operating system information.
Page 47
Driver Update 45 me1000GetDrvErrMess 39 me1000GetSerialNumber 27 Error Handling me1000GetDrvErrMess 39 Accessories 44 Example Programs 18 Appendix 41 Features 6 Block Diagram 11 Function reference 21 Connector block 44 General 21 Connector cable 44 General Functions Meilhaus Electronic Page 47 Index...
Page 48
Programming 18 ME Board Menu 19 User Objects 18 Model Overview 6 VxD driver 21 Operation Modes 12 WDM-Treiber 21 Package contents 5 Pinout 43 Programming order of operation 17 under High Level Languages 17 Index Page 48 Meilhaus Electronic...
Need help?
Do you have a question about the ME-1000 Series and is the answer not in the manual?
Questions and answers