Marvin GX5642 User Manual

Bi-directional differential lvds-ttl i/o board
Table of Contents

Advertisement

Quick Links

GX5642
Bi-directional
Differential LVDS-TTL
I/O Board
User's Guide
Last updated June 8, 2007
GEOTEST
MARVIN TEST SYSTEMS, INC.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GX5642 and is the answer not in the manual?

Questions and answers

Summary of Contents for Marvin GX5642

  • Page 1 GX5642 Bi-directional Differential LVDS-TTL I/O Board User’s Guide Last updated June 8, 2007 GEOTEST MARVIN TEST SYSTEMS, INC.
  • Page 3: Safety And Handling

    Copyright Copyright © 2003-2007 by Geotest, Marvin Test Systems, Inc. All rights reserved. No part of this document can be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Geotest.
  • Page 4: Trademarks

    GX5642 User’s Guide Trademarks Geotest – MTS Inc. ATEasy® C++ Builder, Borland C++, Pascal and Delphi Borland Corporation Microsoft Developer Studio, Microsoft Visual C++, Microsoft Visual Basic,, .NET, Microsoft Corporation Windows 95, 98, NT, ME, 2000 and XP All other trademarks are the property of their respective owners.
  • Page 5: Table Of Contents

    Table of Contents Safety and Handling ..............................i Warranty ..................................i If You Need Help ...............................i Disclaimer ..................................i Copyright ...................................i Trademarks ................................ii Chapter 1 - Introduction ..........................1 Manual Scope and Organization ..........................1 Manual Scope ............................... 1 Manual Organization ............................1 Conventions Used in this Manual ..........................
  • Page 6 Getting Started ................................ 11 Interfaces and Accessories ............................. 11 Packing List ............................... 11 Unpacking and Inspection ..........................11 System Requirements ............................12 Board Installation ..............................12 Before you Begin ............................... 12 Discharge Static Electricity ..........................12 Installing a Board ............................... 12 Plug &...
  • Page 7 Error Handling ..............................34 Driver Version..............................34 Distributing the Driver ............................34 Chapter 5 - Functions Reference ......................35 Introduction ................................35 GX5642 Functions ..............................36 Gx5642GetBoardSummary ............................. 38 Gx5642GetChannelConversionMode ........................39 Gx5642GetChannelDifferentialPort ........................40 Gx5642GetChannelDifferentialPortDirection ......................41 Gx5642GetChannelMode ............................42 Gx5642GetChannelOutputState ..........................
  • Page 8 Gx5642SetGroupConversionMode ......................... 64 Gx5642SetGroupDifferentialPort ........................... 65 Gx5642SetGroupDifferentialPortDirection ......................66 Gx5642SetGroupMode ............................67 Gx5642SetGroupOutputState ..........................68 Gx5642SetGroupTTLPort ............................69 Gx5642SetGroupTTLPortDirection ........................70 GxPioGetDriverSummary............................71 GxPioGetErrorString .............................. 72 Resource Errors ..............................72 General Parameter Errors ........................... 72 Parameter Errors ..............................73 Index ................................75...
  • Page 9: Chapter 1 - Introduction

    Manual Scope and Organization Manual Scope The purpose of this manual is to provide all the necessary information to install, use, and maintain the GX5642 instrument. This manual assumes the reader has a general knowledge of PC based computers, Windows operating systems, and some understanding of digital I/O.
  • Page 10 GX5642 User’s Guide...
  • Page 11: Chapter 2 - Overview

    TTL and Differential. Each channel can be individually set to operate in one of two modes: Conversion or Static I/O. In Static I/O mode the GX5642 supports 128 individual digital inputs or outputs, 64 TTL and 64 Differential. In Conversion mode the GX5642 support 64 individual Differential channels. The GX5642 can be configured via jumper to operate in one of two modes: Independent or Software Controlled.
  • Page 12: Applications

    (predefined defaults). In Static I/O mode the GX5642 support 128 individual digital inputs or outputs, 64 TTL and 64 Differential. In this mode each channel TTL port can be set as input TTL port or output TTL port. In this mode the channel Differential port can be set as input Differential port or output Differential port.
  • Page 13 Chapter 2 - Overview SW1-SW8 Figure 2-1: GX5642 Board Side View J1, J2 TTL I/O Connector Channels J3, J4 Differential I/O Connector Channels Jumper installed sets board to Independent mode, without jumper board is in Software Controlled mode. SW1-SW8 Switches to set conversion direction in independent mode, In software-controlled mode the switches states can be loaded by software command.
  • Page 14: Architecture: Software Controlled Mode (Jp2 Not Installed)

    Architecture: Software Controlled mode (JP2 not installed) Single I/O channel The GX5642 provides 128 digital Inputs or Outputs with direction control. Figure 2-2 shows a typical I/O channel block diagram when the board is in Software Controlled mode : Output Enable...
  • Page 15: Architecture: Independent Mode (Jp2 Installed)

    Chapter 2 - Overview Architecture: Independent mode (JP2 installed) Single I/O channel The GX5642 provides 128 digital Inputs or Outputs and direction. Figure 2-2 shows a typical I/O channel block diagram when the board is in Independent mode : Direction...
  • Page 16: Dip-Switches Settings

    GX5642 User’s Guide DIP-Switches Settings There are eight designated surface mount DIP-Switches, SW1 through SW8, located at the top of the GX5642 board. Each DIP-Switch has eight switches for a total of 64 individual DIP-Switches. When a switch is in the ON position the related channel’s direction is Differential to TTL.
  • Page 17: Setting Dip-Switches Sw5 And Sw6

    Chapter 2 - Overview Table 2-2: Setting DIP-Switches SW3 and SW4 Setting DIP-Switches SW5 and SW6 DIP-Switch SW5 DIP-Switch SW6 Ch # Switch # Position Conversion Ch # Switch # Position Conversion DIFF to TTL DIFF to TTL TTL to DIFF TTL to DIFF DIFF to TTL DIFF to TTL...
  • Page 18: Specifications

    GX5642 User’s Guide Specifications The following table outlines the specifications of the GX5642. Channel Specifications TTL I/O Levels Min. (V) Typ. (V) Max. (V) Input Low Input High Output Low Output High LVDS I/O Levels Min. (V) Max. (V) Positive-going differential input voltage threshold -0.2...
  • Page 19: Chapter 3 - Installation And Connections

    Getting Started This section includes general hardware installation procedures for the GX5642 board and installation instructions for the GX5642 (GXPIO) software. Before proceeding, please refer to the appropriate chapter to become familiar with the board being installed. To Find Information on..
  • Page 20: System Requirements

    GX5642 User’s Guide System Requirements The GX5642 Instrument board is designed to run on PXI compatible computer running Windows 9x, Windows Me, Windows NT, Windows 2000, XP and above. In addition, Microsoft Windows Explorer version 4.0 or above is required to view the online help.
  • Page 21: Plug & Play Driver Installation

    Chapter 3 - Installation and Connections Figure 3-1: Ejector handle position during module insertion 7. After you feel resistance, push in the ejector handles as shown in Figure 3-2 to secure the module into the frame. Figure 3-2: Ejector handle position after module insertion 8.
  • Page 22: Removing A Board

    GX5642 User’s Guide If the operating system was unable to find the driver (since the GX5642 driver was not installed prior to the board installation), you may click on the Have Disk button and browse to select the HW.INF file. The file should be located in the HW installation directory where the HW.INF is located, c:\program File\Geotest\HW, or the setup...
  • Page 23: Installation Of The Driver

    Note: When installing under Windows NT/2000/XP, you may be required to restart the setup after logging-in as a user with an Administrator privileges. This is required in-order to upgrade your system with newer Windows components and to install kernel-mode device drivers (HW.SYS and HWDEVICE.SYS) required by the GX5642 driver to access resources on your board.
  • Page 24: Installation Directories

    GX5642 User’s Guide Installation Directories The GX5642 driver files are installed in the default directory C:\Program Files\Geotest\GXPIO. You can change the default GXPIO directory to one of your choosing at the time of installation. During the installation, GXPIO Setup creates and copies files to the following directories:...
  • Page 25: Setup Maintenance Program

    Setup Maintenance Program You can run Setup again after GX5642 has been installed from the original disk or from the Windows Control Panel – Add Remove Programs applet. Setup will be in the Maintenance mode when running for the second time. The Maintenance window shown below allows you to modify the current GX5642 installation.
  • Page 26: Connectors And Jumpers

    GX5642 User’s Guide Connectors and Jumpers Figure 3-5 shows the available GX5642 board connectors and jumpers followed by their description: Figure 3-5: GX5642 Connectors and Jumpers Connector/Jumpers Description J1, J2 TTL I/O Connector Channels J3, J4 Differential I/O Connector Channels Installed Jumper sets the board to Independent mode, without jumper the board is in Software Controlled mode.
  • Page 27: Jp2 - Board Operation Mode Jumper

    Software Controlled mode. When the jumper is installed, the board operates Independent mode. Connectors – Default mode (J1 pins 27 and 28 Logic low) Connections to the GX5642 may be made with 68-pin VHDCI male plug connector. Shielded cables with matching connectors are available from Geotest.
  • Page 28: J2 - Ttl I/O Connector

    GX5642 User’s Guide J2 – TTL I/O Connector The following are connector pin assignments for J2 TTL I/O Connector with low level in J1 inputs pins 27 and 28: Pin# Signal Type Pin # Signal Type Pin # Signal Type...
  • Page 29: J3 - Differential I/O Connector Channels 0-31

    Chapter 3 - Installation and Connections J3 – Differential I/O Connector Channels 0-31 The following are connector pin assignments for J3 Differential I/O Channels 0-31 Connector: Signal Type Signal Type Signal Type Signal Type DIO+0 DIO+17 DIO-0 DIO-17 DIO+1 DIO+18 DIO-1 DIO-18 DIO+2...
  • Page 30: J4 - Differential I/O Connector Channels 32-63

    GX5642 User’s Guide J4 – Differential I/O Connector Channels 32-63 The following are connector pin assignments for J4 Differential I/O Channels 32-63 Connector: Signal Type Signal Type Signal Type Signal Type DIO+32 DIO+49 DIO-32 DIO-49 DIO+33 DIO+50 DIO-33 DIO-50 DIO+34...
  • Page 31: Connectors - National Instruments Compatibility Mode (J1 Pins 27 And 28 Logic High)

    Chapter 3 - Installation and Connections Connectors – National Instruments Compatibility mode (J1 pins 27 and 28 Logic High) Whenever J1 pins 27 and 28 are set to Logic High (5V Sense) J1 and J2 connectors signal assignments change. In this mode J1 connector will have an additional eight TTL I/O channels for a total of 40 channels.
  • Page 32: J2 - Ttl I/O Connector

    GX5642 User’s Guide J2 – TTL I/O Connector The following are connector pin assignments for J2 TTL I/O Connector with high level in J1 inputs pins 27 and 28: Pin# Signal Type Pin # Signal Type Pin # Signal Type...
  • Page 33: J3 - Differential I/O Connector Channels 0-31

    Chapter 3 - Installation and Connections J3 – Differential I/O Connector Channels 0-31 The following are connector pin assignments for J3 Differential I/O Channels 0-31 Connector with high level in J1 inputs pins 27 and 28: Signal Type Signal Type Signal Type Signal...
  • Page 34: J4 - Differential I/O Connector Channels 32-63

    GX5642 User’s Guide J4 – Differential I/O Connector Channels 32-63 The following are connector pin assignments for J4 Differential I/O Channels 32-63 Connector with high level in J1 inputs pins 27 and 28: Signal Type Signal Type Signal Type Signal...
  • Page 35: Connectors - Independent Mode (Jp2 Installed)

    Chapter 3 - Installation and Connections Connectors – Independent mode (JP2 installed) Whenever JP2 jumper is installed the board is working in independent mode. When the card is configured to Independent mode the PXI interface is disabled and all 64 channels operate in Conversion mode. In this mode each channel conversion operation is predefined using DIP-Switches.
  • Page 36: J2 - Ttl I/O Connector

    GX5642 User’s Guide J2 – TTL I/O Connector The following are connector pin assignments for J2 TTL I/O Connector with JP2 installed: Pin# Signal Type Pin # Signal Type Pin # Signal Type Pin # Signal Type TIO49 TIO50 TIO51...
  • Page 37: J3 - Differential I/O Connector Channels 0-31

    Chapter 3 - Installation and Connections J3 – Differential I/O Connector Channels 0-31 The following are connector pin assignments for J3 Differential I/O Channels 0-31 Connector with JP2 installed:: Signal Type Signal Type Signal Type Signal Type DIO+0 DIO+17 DIO-0 DIO-17 DIO+1 DIO+18...
  • Page 38: J4 - Differential I/O Connector Channels 32-63

    GX5642 User’s Guide J4 – Differential I/O Connector Channels 32-63 The following are connector pin assignments for J4 Differential I/O Channels 32-63 Connector with JP2 installed: Signal Type Signal Type Signal Type Signal Type DIO+32 DIO+49 DIO-32 DIO-49 DIO+33 DIO+50...
  • Page 39: Chapter 4 - Programming The Board

    Chapter 4 - Programming the Board Introduction This chapter contains information about how to program the GX5642 board using the GXPIO driver. The GXPIO driver contains functions to initialize, reset, and control the power-supply instruments. A brief description of the functions, as well as how and when to use them, is included in this chapter.
  • Page 40: Programming Gxpio Boards Using Ateasy

    Programming GXPIO Boards Using ATEasy The GXPIO package is supplied with a separate ATEasy driver for each board types. For example, the GX5642 is supplied with GX5642.DRV ATEasy driver. The ATEasy driver uses the GxPio.dll to program the board. In addition, each driver is supplied with an example that contains a program and a system file pre-configured with the ATEasy driver.
  • Page 41: Board Handle

    Chapter 4 - Programming the Board Figure 4-1: PXI/PCI Explorer Slot numbers are gathered by PXI/PCI Explorer using a PXISYS.INI file located in the Windows directory. Each PCI slot is identified by a unique combination of PCI Bus and Device numbers. If that file does not exist or not complete with all bus/devices assigned slot numbers, you can assign slot numbers to your PCI slots.
  • Page 42: Error Handling

    GX5642 User’s Guide Error Handling All the GXPIO function returns status - pnStatus - in the last parameter. This parameter can be later used for error handling. The status is zero for success status or less than zero for errors. When the status is error, the program can call the GxPioGetErrorString function to return a string representing the error.
  • Page 43: Chapter 5 - Functions Reference

    Chapter 5 - Functions Reference Introduction The GX5642 driver functions reference chapter is organized in alphabetical order. Each function is presented starting with the syntax of the function, a short description of the function parameters description and type followed by a Comments, an Example (written in C), and a See Also sections.
  • Page 44: Gx5642 Functions

    GX5642 User’s Guide GX5642 Functions The following list is a summary of functions available for the GX5642: Driver Functions Description General Gx5642Initialize Initializes the GX5642 driver for the specified PXI slot. Opens all the board relays. Gx5642Reset Gx5642GetBoardSummary Returns the board summary.
  • Page 45 Chapter 5 - Functions Reference Driver Functions Description Sets the specified group conversion mode. Gx5642SetGroupConversionMode Gx5642SetGroupDifferentialPort Sets the specified group differential Port value. Gx5642SetGroupDifferentialPortDirection Sets the specified group differential Port Direction. Gx5642SetGroupMode Sets the specified group mode. Sets the specified group output state. Gx5642SetGroupOutputState Gx5642SetGroupTTLPort Sets the specified group TTL Port value.
  • Page 46: Gx5642Getboardsummary

    Size of the buffer to contain the board info string. pnStatus PSHORT Returned status: 0 on success, negative number on failure. Comments The GX5642 summary string provides the following data from in the order shown: • Instrument Name (e.g., GX5642) • FPGA version (e.g. 0xA002) •...
  • Page 47: Gx5642Getchannelconversionmode

    Returns the specified channel Conversion Mode. Syntax Gx5642GetChannelConversionMode (nHandle, nChannel, pnMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnMode PSHORT Conversion Mode can be as follows: 0. GX5642_CHANNEL_CONVERT_DIFFERENTIAL_TO_TTL – convert differential signal to TTL level.
  • Page 48: Gx5642Getchanneldifferentialport

    Returns the specified channel Differential Port value. Syntax Gx5642GetChannelDifferentialPort (nHandle, nChannel, pbData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pbData PBOOL Differential Port value: 0. Logic low 1.
  • Page 49: Gx5642Getchanneldifferentialportdirection

    Syntax Gx5642GetChannelDifferentialPortDirection (nHandle, nChannel, pnDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnDirection PSHORT The channel Differential Port Direction can be as follows: 0. GX5642_CHANNEL_PORT_INPUT – channel port is set as input.
  • Page 50: Gx5642Getchannelmode

    Syntax Gx5642GetChannelMode (nHandle, nChannel, pnMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnMode PSHORT Channel operating modes are as follows: 0. GX5642_CHANNEL_MODE_CONVERSION – channels is set for conversion mode.
  • Page 51: Gx5642Getchanneloutputstate

    Syntax Gx5642GetChannelOutputState (nHandle, nChannel, pnState, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnState PSHORT Channel output states are as follows: 0. GX5642_CHANNEL_OUTPUT_DISABLE - channel output is disabled.
  • Page 52: Gx5642Getchannelttlport

    Returns the specified channel TTL Port value. Syntax Gx5642GetChannelTTLPort (nHandle, nChannel, pbData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pbData PBOOL TTL Port value: 0. Logic low 1.
  • Page 53: Gx5642Getchannelttlportdirection

    Syntax Gx5642GetChannelTTLPortDirection (nHandle, nChannel, pnDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnDirection PSHORT The channel TTL Port Direction can be as follows: 0. GX5642_CHANNEL_PORT_INPUT – channel port is set as input.
  • Page 54: Gx5642Getgroupconversionmode

    Syntax Gx5642GetGroupConversionMode (nHandle, nGroup, pdwMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwMode PDWORD Each of the 32 bits represents a channel in the group, bit 0 is the first channel in the group and bit 31 is the last channel in the group.
  • Page 55: Gx5642Getgroupdifferentialport

    Syntax Gx5642GetGroupDifferentialPort (nHandle, nGroup, pdwPortData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwPortData PDWORD Group’s differential ports values.
  • Page 56: Gx5642Getgroupdifferentialportdirection

    Syntax Gx5642GetGroupDifferentialPortDirection (nHandle, nGroup, pdwDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwDirection PDWORD Group’s differential Port Direction.
  • Page 57: Gx5642Getgroupmode

    Returns the specified group mode. Syntax Gx5642GetGroupMode (nHandle, nGroup, pdwMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwMode PDWORD Group’s Mode.
  • Page 58: Gx5642Getgroupoutputstate

    Syntax Gx5642GetGroupOutputState (nHandle, nGroup, pdwStates, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwStates PDWORD Group’s output state.
  • Page 59: Gx5642Getgroupttlport

    Syntax Gx5642GetGroupTTLPort (nHandle, pdwPortData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwPortData PDWORD Group’s differential ports values.
  • Page 60: Gx5642Getgroupttlportdirection

    Syntax Gx5642GetGroupTTLPortDirection (nHandle, nGroup, pdwDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pdwDirection PDWORD Group’s TTL Port Direction.
  • Page 61: Gx5642Initialize

    Returned status: 0 on success, negative number on failure. Comments The Gx5642Initialize function verifies whether or not the GX5642 board exists in the specified PXI slot. The function does not change any of the board settings. The returned handle pnHandle is used to identify the specified board with other GX5642 functions.
  • Page 62: Gx5642Loadgroupdirectionfromdipswitch

    Syntax Gx5642LoadGroupDirectionFromDIPSwitch (nHandle, nGroup, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pnStatus PSHORT Returned status: 0 on success, negative number on failure.
  • Page 63: Gx5642Reset

    Comments After calling this function all the channels will be disabled and in conversion mode of differential signal to TTL level. Example The following example initializes and resets the GX5642 board: Gx5642Initialize (1, &nHandle, &nStatus); Gx5642Reset (nHandle, &nStatus); See Also...
  • Page 64: Gx5642Resetgroup

    Syntax Gx5642ResetGroup (nHandle, nGroup, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) pnStatus PSHORT Returned status: 0 on success, negative number on failure.
  • Page 65: Gx5642Setchannelconversionmode

    Sets the specified channel Conversion Mode. Syntax Gx5642SetChannelConversionMode (nHandle, nChannel, nMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). nMode SHORT Conversion Mode can be as follows: 0. GX5642_CHANNEL_CONVERT_DIFFERENTIAL_TO_TTL – convert differential signal to TTL level.
  • Page 66: Gx5642Setchanneldifferentialport

    Sets the specified channel Differential Port value. Syntax Gx5642SetChannelDifferentialPort (nHandle, nChannel, bData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pbData PBOOL Differential Port value: 0. Logic low 1.
  • Page 67: Gx5642Setchanneldifferentialportdirection

    Syntax Gx5642SetChannelDifferentialPortDirection (nHandle, nChannel, nDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). nDirection SHORT The channel Differential Port Direction can be as follows: 0. GX5642_CHANNEL_PORT_INPUT – channel port is set as input.
  • Page 68: Gx5642Setchannelmode

    Syntax Gx5642SetChannelMode (nHandle, nChannel, nMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). nMode SHORT Channel operating modes are as follows: 0. GX5642_CHANNEL_MODE_CONVERSION – channels is set for conversion mode.
  • Page 69: Gx5642Setchanneloutputstate

    Syntax Gx5642SetChannelOutputState (nHandle, nChannel, nState, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). pnState PSHORT Channel output states are as follows: 0. GX5642_CHANNEL_OUTPUT_DISABLE - channel output is disabled.
  • Page 70: Gx5642Setchannelttlport

    Sets the specified channel TTL Port value. Syntax Gx5642SetChannelTTLPort (nHandle, nChannel, bData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). bData BOOL TTL Port value: 0. Logic low 1.
  • Page 71: Gx5642Setchannelttlportdirection

    Syntax Gx5642SetChannelTTLPortDirection (nHandle, nChannel, nDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nChannel SHORT Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63). nDirection SHORT The channel TTL Port Direction can be as follows: 0. GX5642_CHANNEL_PORT_INPUT – channel port is set as input.
  • Page 72: Gx5642Setgroupconversionmode

    Syntax Gx5642SetGroupConversionMode (nHandle, nGroup, dwMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwMode DWORD Each of the 32 bits represents a channel in the group, bit 0 is the first channel in the group and bit 31 is the last channel in the group.
  • Page 73: Gx5642Setgroupdifferentialport

    Syntax Gx5642SetGroupDifferentialPort (nHandle, nGroup, dwPortData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwPortData DWORD Group’s differential ports values.
  • Page 74: Gx5642Setgroupdifferentialportdirection

    Syntax Gx5642SetGroupDifferentialPortDirection (nHandle, nGroup, dwDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwDirection DWORD Group’s output state.
  • Page 75: Gx5642Setgroupmode

    Sets the specified group mode. Syntax Gx5642SetGroupMode (nHandle, nGroup, dwMode, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwMode DWORD Group’s Mode.
  • Page 76: Gx5642Setgroupoutputstate

    Syntax Gx5642SetGroupOutputState (nHandle, nGroup, dwStates, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwStates DWORD Group’s output state.
  • Page 77: Gx5642Setgroupttlport

    Syntax Gx5642SetGroupTTLPort (nHandle, nGroup, dwPortData, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwPortData DWORD Group’s output state.
  • Page 78: Gx5642Setgroupttlportdirection

    Syntax Gx5642SetGroupTTLPortDirection (nHandle, nGroup, dwDirection, pnStatus) Parameters Name Type Comments nHandle SHORT Handle for a GX5642 board. nGroup SHORT Group value is as follows: 0. GX5642_GROUP0 (channels 0 to 31) 1. GX5642_GROUP1(channels 32 to 63) dwDirection DWORD Group’s output state.
  • Page 79: Gxpiogetdriversummary

    PSHORT Returned status: 0 on success, negative number on failure. Comments The returned string is: "GXPIO Driver for GX5642. Version 2.10, Copyright © Geotest 2006.". Example The following example prints the driver version: CHAR sz[128]; DWORD dwVersion;...
  • Page 80: Gxpiogeterrorstring

    GX5642 User’s Guide GxPioGetErrorString Purpose Returns the error string associated with the specified error number. Syntax GxPioGetErrorString (nError , pszMsg, nErrorMaxLen, pnStatus) Parameters Name Type Comments nError SHORT Error number. pszMsg PSTR Buffer to the returned error string. nErrorMaxLen SHORT The size of the error string buffer.
  • Page 81: Parameter Errors

    Chapter 5 - Functions Reference Illegal operation mode Parameter is out of the allowed range Parameter Errors Invalid port Invalid word Invalid byte Invalid bit Invalid counter Invalid input load control Invalid counter or all terminal counts and clocks Invalid terminal count mode Invalid clock source Invalid clock internal number Invalid clock internal source...
  • Page 82 GX5642 User’s Guide...
  • Page 83: Index

    Index Index .NET ................. ii GX5641 ............1, 5, 32 GX5641 Functions ........... 36 Architecture Gx5641GetBoardSummary ........38 Gx5641GetChannelConversionMode ...... 39 Independent mode (JP2 installed) ......7 Gx5641GetChannelDifferentialPort ......40 Software Controlled mode (JP2 not installed) ..6 Architecture ............1, 6 Gx5641GetChannelDifferentialPortDirection ..
  • Page 84 GX5642 User’s Guide Differential I/O Connector Channels 0-31 ..21, 25 Gx5641SetGroupTTLPortDirection ......70 J3 ..............5, 18, 21 GXPIO ............... 1 Driver-Description ..........31 J3 ................25 Header-file ............31 J3 ................29 GxPio.bas..............31 GxPio.dll ............31, 32 Differential I/O Connector Channels 0-31 ...
  • Page 85 Index TTL I/O Connector ..........19 Setting DIP-Switches ..........8, 9 Setting DIP-Switches SW1 and SW2 ......8 TTL I/O Connector ..........20 Setting DIP-Switches SW3 and SW4 ......8 TTL I/O Connector ..........23 Setting DIP-Switches SW5 and SW6 ......9 TTL I/O Connector ..........
  • Page 86 GX5642 User’s Guide...

Table of Contents