About the GXSW.DLL

You can download and install the GXSW package from Marvin Test Solutions web site. The package contains driver for all Marvin Test Solutions PXI switching boards and is supplied with the C programming language header file to describe its procedures. The header file GXSW.H can be found in the GXSW driver folder (C:\Program Files\ GXSW). Opening the file with a text editor and browsing will show you the many boards supported by the GXSW package. The GX6138 most relevant sections in this file are shown here:

/************************************************************
// GXSW General purpose functions
************************************************************/

VOID WINAPI GxSWGetErrorString(SHORT nError, PSTR pszMsg, SHORT nErrorMaxLen, LPSHORT pnStatus);
VOID WINAPI GxSWGetDriverSummary(PSTR pszSummary, SHORT nSummaryMaxLen,LPSHORTPDWORD pdwVersion, PSHORT pnStatus);

// GTXXXPanel() constants
// nMode for panel functions

#define GXSW_PANEL_MODELESS 0
#define GXSW_PANEL_MODAL 1

// Relay State

#define GXSW_STATE_OPEN 0
#define GXSW_STATE_CLOSE 1

//*************************************************************
// Gx6138 functions //*************************************************************

VOID WINAPI Gx6138Initialize(SHORT nSlot, PSHORT pnHandle, PSHORT pnStatus);
VOID WINAPI Gx6138Reset(SHORT nHandle, PSHORT pnStatus);
VOID WINAPI Gx6138Panel(PSHORT pnHandle, HWND hwndParent, SHORT nMode, HWND * phwndPanel, PSHORT pnStatus);
VOID WINAPI Gx6138GetBoardSummary(SHORT nHandle, LPSTR pszBoardSum, SHORT nSumMaxLen, PSHORT pnStatus);
VOID WINAPI Gx6138Close(SHORT nHandle, SHORT nChannel, PSHORT pnStatus);
VOID WINAPI Gx6138Open(SHORT nHandle, SHORT nChannel, PSHORT pnStatus);
VOID WINAPI Gx6138GetChannel(SHORT nHandle, SHORT nChannel, PSHORT pnState, PSHORT pnStatus);
VOID WINAPI Gx6138SetChannels(SHORT nHandle, LONG lHighChannelStates, LONG lLowChannelStates, PSHORT pnStatus);
VOID WINAPI Gx6138GetChannels(SHORT nHandle, PLONG plHighChannelStates, PLONG plLowChannelStates, PSHORT pnStatus);

// First and Last channels numbers

#define GX6138_CHANNEL_FIRST 1
#define GX6138_CHANNEL_LAST 38