Initializes the driver for the board at the specified PCI slot. The function returns a handle that can be used with other Gx6264 functions to program the board.
Gx6264Initialize (nSlot, pnHandle, pnStatus)
Name |
Type |
Description |
nSlotNumber |
SHORT |
Denotes the PCI slot number for location of GX6264 board. |
pnHandle |
LPSHORT |
Returned handle for the GX6264 board. The handle is set to zero on error or any other number (negative or positive) on success. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx6264Initialize function verifies whether or not the GX6264 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:
A combination of chassis number (chassis # x 256) with the chassis slot number. For example 0x105 (chassis 1 slot 5).
Legacy nSlot as used by earlier versions of HW/VISA. The slot number contains no chassis number and can be changed using the PXI/PCI Explorer applet (1-255).
The returned handle pnHandle is used to identify the specified board with other GX6264 functions.
The following example initializes a GX6264 boards at PCI bus slot 1.
SHORT nHandle, nStatus;
Gx6264Initilize(1, &nHandle, &nStatus);
if(nHandle==0)
{
printf("Unable to Initialize the board")
return;
}