Gx6192/Gx6256/Gx6864Initialize

Purpose

Initializes the driver for the board at the specified slot number. The function returns a handle that can be used with other GX6256 functions to program the board.

Syntax

Gx6256Initialize (nSlot, bSimulation, pnHandle, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
GX6256/GX6864/GX6192 board slot number on the PXI bus.
bSimulation
BOOL
Simulation mode flag. Set to TRUE to enable simulation mode.
pnHandle
PSHORT
Returned handle for the board. The handle is set to zero on error and <> 0 on success.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Gx6256Initialize function verifies whether or not the GX6256 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 Marvin Test Solutions 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 GX6256 functions.

 

Example

The following example initializes two GX6256 boards at slot 10 and 12 with simulation mode disabled.

 

SHORT nHandle1, nHandle2, nStatus;

Gx6256Initilize (10, FALSE, &nHandle1, &nStatus);

Gx6256Initilize (12, FALSE, &nHandle2, &nStatus);

if (nHandle1==0 || nHandle2==0)

{   printf(“Unable to Initialize the board”)

    return;

}

 

See Also

Gx6192/Gx6256/Gx6864Reset, GxSWGetErrorString