Initializes the GX1838 driver for the specified PXI slot.
Gx1838Initialize (nSlot, pnHandle, pnStatus)
Name |
Type |
Description |
nSlot |
SHORT |
GX1838 board slot number. |
pnHandle |
PSHORT |
Returned Handle for a GX1838 board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns a handle that for use with other GX1838 functions to program the board. The function does not change any of the board settings.
The specified PXI slot number can be retrieved 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 following example initializes a GX1838 boards at PXI bus slot 1.
SHORT nHandle, nStatus;
Gx1838Initilize(1, &nHandle, &nStatus);
if (nHandle==0)
{
printf("Unable to Initialize the board")
return;
}