Gx5733Initialize

Purpose

Initializes the GX5733 driver for the specified board slot.

Syntax

Gx5733Initialize (nSlot, pnHandle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 board.
pnHandle
PSHORT
Returned Handle for a GX5733 board.
pnStatus
PSHORT
Returned status: 0 on success, 1 on failure.

Comments

The Gx5733Initialize function verifies whether or not the GX5733 board exists in the specified PXI slot. The function does not change any of the board settings. The function uses the HW driver to access and program the board.

The Geotest HW device driver is installed with the driver and is the default device driver. The function returns a handle that for use with other Counter functions to program the board. The function does not change any of the board settings.

The specified PXI slot number is displayed by the PXI/PCI Explorer applet that can be opened from the Windows Control Panel. You may also use the label on the chassis below the PXI slot where the board is installed. The function accepts two types of slot numbers:

The returned handle pnHandle is used to identify the specified board with other GX5733 functions.

Example

The following example initializes a GX5733 boards at PCI bus slot 1.

 

SHORT nHandle, nStatus;

 

Gx5733Initilize(1, &nHandle, &nStatus);

if (nHandle==0)

{

printf("Unable to Initialize the board")

return;

}

 

See Also

GxPioGetErrorString, Gx5733Reset